Open main menu

DAVE Developer's Wiki β

Changes

Flash uSD with STM32CubeProgrammer
=== Flash uSD 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 BalenaEtcher. STM32CubeProgrammer makes use of several files generated by Yocto. For the sake of simplicity, the following procedure shows how to run it on the MVM so that it can access these files directly. Please note that, by default, STM32CubeProgrammer is not installed in the MVM. Please refer to the STM documentation for installation instructions.
* Execute First of all, execute the build with yocto, see Yocto to generate the required files. See [[DESK-MP1-L/Development/Building_the_Yocto_BSP | here]] for more info.
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mp1-l$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo-1 > repo
</pre>
* Open STM32CubeProgrammer Tool* Click , click on <code>Open file</code> , and select the <code>tsv</code> file <code>/home/dvdk/desk-mp1-l/build/tmp-glibc/deploy/images/desk-mp1/flashlayout_dave-image-qt5-weston/trusted/FlashLayout_sdcard_stm32mp157a-dcsb5000dd1r-trusted.tsv</code>.
[[File:DESK-MP1-L_STM32CubeProgrammer_load_tsv_file.PNG|750pxthumb|center|600px]]
* Click on <code>Browse</code> and select the directory with the artifacts generated by yocto Yocto <code>/home/dvdk/desk-mp1-l/build/tmp-glibc/deploy/images/desk-mp1/</code>.
[[File:DESK-MP1-L_STM32CubeProgrammer_open_folder.PNG|750pxthumb|center|600px]]
* Change On the target, change the S1 DIP-switch into <code>ON-ON-ON-OFF</code>.
[[File:DESK-MP1-L_DIP-Switch-USB-Boot.JPG|750pxthumb|center|600px]]
Connect the board with USB <-> USB OTG cable. TBD indicate the connector
* Connect Add the board with USB <-> USB OTG cable.device detected to the MVM:
* Add device detected into the MVM[[File:DESK-MP1-L_STM32CubeProgrammer_board_connection.png|thumb|center|600px]]
[[FileEstablish the connection with STM32CubeProgrammer tool:DESK* Select USB instead of ST-MP1-L_STM32CubeProgrammer_board_connectionLINK.* Make sure that the <code>Port</code> value is not <code>No DFU detected</code>. It should be something like <code>USB1</code>.* Click on <code>Connect</code>.png|750px]]
* Execute the connection with STM32CubeProgrammer tool** Select USB instead of ST[[File:DESK-LINK.** Check if the <code>Port</code> value aren't <code>No DFU detected</code> but for example <code>USB1</code>.** Click on <code>Connect</code>MP1-L_STM32CubeProgrammer_connect_board.PNG|thumb|center|600px]]
[[FileClick on <code>Download</code> for programming the microSD card.'''Attention''':DESK-MP1-L_STM32CubeProgrammer_connect_boardthe board resets after the first programming steps, so make sure that the device remains connected to the MVM during the process. Otherwise, repeat the connection steps.PNG|750px]]
* Click on <code>Download</code> for program the uSD with the tool** Attention[[File: the board resets after the first programming steps, check that the device remains connected to the MVM, otherwise connect it, it can happen 1/2 times only in the first stepsDESK-MP1-L_STM32CubeProgrammer_execute_download.PNG|thumb|center|600px]]
[[File:DESK-MP1-L_STM32CubeProgrammer_execute_downloadL_STM32CubeProgrammer_downloading.PNG|750pxthumb|center|600px]]
[[File:DESK-MP1-L_STM32CubeProgrammer_downloadingL_STM32CubeProgrammer_display_on_flashing_uSD.PNGJPG|750pxthumb|center|600px]]
[[File:DESK-MP1-L_STM32CubeProgrammer_display_on_flashing_uSD.JPG|750px]] * When programming ends , this message appears:
[[File:DESK-MP1-L_STM32CubeProgrammer_end_download_binary.PNG|750px]]
* Unplug the OTG cable.* Change , 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|750px]]
* Power on the board.If the procedure was completed properly, you will see the typical bootstrap messages on the console:
<pre class="mw-collapsible mw-collapsed workstation-terminal">
4,650
edits