TinyGo - Raspberry PICO - using SVD files to program #4940
Replies: 2 comments
-
Accessing the SVD file and looking for the already defined registers, I was able to successfully perform my first test. (https://github.com/cmsis-svd/cmsis-svd-data/blob/main/data/RaspberryPi/rp2040.svd) "The CMSIS (Common Microcontroller Software Interface Standard) is a set of APIs, software components, tools, and workflows that help to simplify software re-use, reduce the learning curve for microcontroller developers, speed-up project build and debug, and thus reduce the time to market for new applications." "The CMSIS System View Description format(CMSIS-SVD) formalizes the description of the system contained in ARM Cortex-M processor-based microcontrollers, in particular, the memory-mapped registers of peripherals." Accessing the RP2040 Voltage Regulator Registers: `---- Opened the serial port COM6 ---- Get PICO Voltage Regulators registers: VREG (Voltage Regulator) Register Value: 0x000010C1 |
Beta Was this translation helpful? Give feedback.
-
RP240 Datasheet: https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf 2.10. Core Supply Regulator "RP2040 includes an on-chip voltage regulator, allowing the digital core supply (DVDD) to be generated from an external, nominally 1.8V to 3.3V, power supply. In most cases, the regulator’s input supply will share an external power source with the chip’s digital IO supply IOVDD, simplifying the overall power supply requirements." 2.10.6. List of Registers "The VREG_AND_CHIP_RESET registers start at a base address of 0x40064000 (defined as VREG_AND_CHIP_RESET_BASE |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm very happy today. Because I finally learned how to program TinyGo on the Raspberry Pico using SVD files. It's amazing how much easier it is to access and manipulate registers.
With questions and answers to and from ChatGPT, I learned how this programming works.
Beta Was this translation helpful? Give feedback.
All reactions