Open main menu

DAVE Developer's Wiki β

Changes

Flash uSD with STM32CubeProgrammer
|}
=== Flash uSD Flashing the microSD card with STM32CubeProgrammer === Another way is to use the [https://www.st.com/en/development-tools/stm32cubeprog.html STM32CubeProgrammer] tool, which has a little different approach than BalenaEtcheras it allows to program the card '''without removing it from the target'''. Furthermore, STM32CubeProgrammer makes use of several files generated by Yoctoinstead of the WIC image. For the sake of simplicity, the following procedure shows how to run it STM32CubeProgrammer on the MVM so that it can access these files directly. Please note that, by By default, STM32CubeProgrammer is not installed in the MVM. Please refer to the STM documentation for installation instructions. In principle, the same procedure can be executed on a Windows host as well.
First of all, execute the build with Yocto to generate the required files. See [[DESK-MP1-L/Development/Building_the_Yocto_BSP | here]] for more info.
On the target, change the S1 DIP-switch into <code>ON-ON-ON-OFF</code>.
[[File:DESK-MP1-L_DIP-Switch-USB-Boot.JPG|thumb|center|600px300px]]
Connect the board with USB <-> USB OTG cable. TBD indicate the connector
When programming ends, this message appears:
[[File:DESK-MP1-L_STM32CubeProgrammer_end_download_binary.PNG|750pxthumb|center|600px]]
Unplug the OTG cable, power off the target, and change the DIP-switch into <code>ON-OFF-ON-OFF</code>.
[[File:DESK-MP1-L_DIP-Switch-uSD-Boot.JPG|750pxthumb|center|300px]]
Power on the board. If the procedure was completed properly, you will see the typical bootstrap messages on the console:
4,650
edits