TinyGo - Raspberry PICO - using SVD files to program #4940
Replies: 5 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:
|
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.
-
2.15.7. List of Registers (RP2040 Datasheet.pdf)
|
Beta Was this translation helpful? Give feedback.
-
Preparing the development of the RP2040 Internal Frequency Counter program: 2.15.6.2. Using the frequency counter (RP2040 Datasheet.pdf) :
|
Beta Was this translation helpful? Give feedback.
-
Preparing program to Overclock Raspberry Pico - RP2040:
Running at Raspberry Pico - RP2040:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
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.
As easy as PEEK and POKE on the Commodore 64!
Beta Was this translation helpful? Give feedback.
All reactions