cancel
Showing results for 
Search instead for 
Did you mean: 

How the STM32CubeProgrammer working?

SChen.11
Associate III

Hi, I use STM32CubeProgrammer to download file into dk2 board. I am confuse about the tsv file. Could you give more detail this file and programming steps description? How can i modify it to download files into my custom board. And I can not found the AN5275 file.Could you support it?

1 ACCEPTED SOLUTION

Accepted Solutions
Bernard PUEL
ST Employee

Here is attached an extract of an online training that should be available soon on st.com. It shows the principle of the cube programmer.

To answer your question, partition 0x01 and 0X03 are used to indicate the binary to be used to flash the memory (serial boot). Only trusted boot is supported by the cube Programmer here (so you cannot replace it with basic boot).

More details about programmer and tsv format:

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout

If the memory to flash is an sdcard, there are many alternatives to flash them (here are 2 easy ones):

Note: Basic boot is not a "normal" boot for a product (many features are not available in basic boot). The normal boot is trusted one even if you don't care about security.

View solution in original post

4 REPLIES 4
PatrickF
ST Employee

Hello,

Tsv file details for STM32CubeProgrammer are available in wiki. You could also refer to Tsv example for EV1 or DK2 boards provided in started package

For your custom board, TF-A and u-Boot binaires (especially the ones which are loaded in RAM/DDR to allow access to the Flash, e.g.ID=0x1 for FSBL/TF-A and ID=0x3 for SSBL/u-Boot ) need to be recompiled (from developer package) with relevant modification into the Device Tree, linked to your board HW, in order to have TF-A able to load u-Boot into DDR and then u-Boot accessing the Flash and communicate with STM32CubeProgrammer using USB (e.g. different pin muxing for Flash, no STPMIC1, etc...).

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

I am confuse about below two lines code in tsv file.

#Opt	Id	Name	Type	IP	Offset	Binary
-	0x01	fsbl1-boot	Binary	none	0x0	tf-a-stm32mp157a-dk1-trusted.stm32
-	0x03	ssbl-boot	Binary	none	0x0	u-boot-stm32mp157a-dk1-trusted.stm32

I use basic mode tsv to programming into dk2 board. But these two files are trusted mode. Can I use the basic file to replace those? Another question is, Could I use SPL and u-boot.img to replace as 0x1 and 0x3?

Bernard PUEL
ST Employee

Here is attached an extract of an online training that should be available soon on st.com. It shows the principle of the cube programmer.

To answer your question, partition 0x01 and 0X03 are used to indicate the binary to be used to flash the memory (serial boot). Only trusted boot is supported by the cube Programmer here (so you cannot replace it with basic boot).

More details about programmer and tsv format:

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout

If the memory to flash is an sdcard, there are many alternatives to flash them (here are 2 easy ones):

Note: Basic boot is not a "normal" boot for a product (many features are not available in basic boot). The normal boot is trusted one even if you don't care about security.

Thanks, there are very useful to me.