2019-06-11 09:31 AM
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?
Solved! Go to Solution.
2019-06-13 07:40 AM
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.
2019-06-12 01:02 AM
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...).
2019-06-13 02:46 AM
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?
2019-06-13 07:40 AM
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.
2019-06-13 10:33 PM
Thanks, there are very useful to me.