Tuesday, July 16, 2024

New RP2040 CMSIS Pack

Arm’s Common Microcontroller Software Interface Standard (CMSIS) initiative aims to standardise device support across many different vendors’ Cortex-M–based microcontrollers, and to provide simple software interfaces to the processor and its peripherals. Arm’s Windows-based µVision development environment uses CMSIS “pack” files to understand how to build and debug code on a given microcontroller.

To better integrate with the Arm ecosystem, we’re releasing a new CMSIS Device Family Pack (DFP) with support for Raspberry Pi Pico and Raspberry Pi Pico W. With this new DFP, you can now use these boards seamlessly with all of Arm’s CMSIS tools, including µVision. Our DFP includes the following:

  • header files, startup code, and other support files
  • software packages providing device-specific functionality
RP2040 front and back view

Instructions

To get started with the pack, download the latest version from GitHub. If you haven’t already installed µVision, follow Arm’s instructions here to install it. Then, follow the steps below to install the pack and run the examples:

  1. Open the µVision pack installer. Select File > Import, and import the pack you downloaded from GitHub.
  2. Click on the refresh button to refresh the page; the pack should now be installed.
  3. Click on Boards in the left hand window, and then search for Pico. Click on either Pico or Pico W, depending on which board you are using.
  4. Click Examples in the right hand window and select the copy action next the the Breath_LED example for your board:


  5. Select the folder you want to copy it into. Click OK to copy the example into the folder.
  6. Once the project loads, open main.c to view the code.
  7. If you’re using the Pico W example, set YourWifiSSID and YourWifiPassword to appropriate values for your WiFi network. Alternatively, delete these lines from the example if you don’t want to connect to WiFi:


  8. Click Build (F7) to build the project – don’t worry about the Warning: L6306W on Pico W.
  9. To use a Raspberry Pi Debug Probe for debugging, update your Debug Probe to the latest firmware. Then, select Project > Options for target ‘Pico’ > Debug, then set Use to CMSIS-DAP debugger and click OK.


  10. To run the code, click Start/Stop Debug Session (Ctrl+F5), then hit Run (F5).


  11. To view printouts from the device, select View > Serial Windows > Debug (printf) Viewer. This will receive printouts over the SWD interface, so there’s no need to connect UART to your Pico.

For more information on using µVision, please refer to the comprehensive User’s Guide provided by Arm.

The post New RP2040 CMSIS Pack appeared first on Raspberry Pi.



from News - Raspberry Pi https://ift.tt/R8GKNqh

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home