STM32Prog CLI and OTP Disply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-04 3:53 AM
Hi,
i currently trying to interact via shellscript and stm32cubeprog cli with my stm32mp157 board.
I can run and load tfa and than uboot. But when i want to read otp, my operations get stuck.
What is the correct call for this?
In my Script is use the following :
.../STM32_Programmer_CLI --connect port=usb1 -tm 20000 serial --verbosity 1 -tm 5000 --write ./tfa_und_uboot_slow.tsv --go 0x03 -otp displ
This is my TSV:
#Opt Id Name Type IP Offset Binary
- 0x01 fsbl1-boot Binary none 0x0 ./tf-a-slow-usb.stm32
- 0x03 ssbl-boot Binary none 0x0 ./uboot-slow-usb.stm32
${PROGRAMMER_BINARY} --write ./tfa_und_uboot_slow.tsv --go 0x03 -otp displ
This is the output:
-------------------------------------------------------------------
STM32CubeProgrammer v2.8.0
-------------------------------------------------------------------
Warning: Timeout is forced to 5000 ms
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 0046002A3139510B38313636
FW version : 0x0110
Device ID : 0x0500
Device name : STM32MP1
Device type : MPU
Device CPU : Cortex-A7
Start Embedded Flashing service
Memory Programming ...
Opening and parsing file: tf-a-slow-usb.stm32
File : tf-a-slow-usb.stm32
Size : 213310 Bytes
Partition ID : 0x01
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:00.375
RUNNING Program ...
PartID: :0x01
Error: an error occured while setting virtual partition 0xF1 alternate setting
Error: Start operation failed at partition 0x01
Error: TSV flashing service failed
RUNNING Program ...
Address: : 0x3
Error: Start operation failed
Error: Connection to target must be established before performing any OTP command.
Many thanks for any hints :)
- Labels:
-
STM32CubeProgrammer
-
STM32MP15 Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-05 1:40 AM
Hi,
please try:
.../STM32_Programmer_CLI -c port=usb1 -w ./tfa_und_uboot_slow.tsv -otp displ
Works with a similar command line on my STM32MP157F-DK2 board with a simple '2 binaries' TSV file as yours.
#Opt Id Name Type IP Offset Binary
- 0x01 fsbl1-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp157f-dk2-usb.stm32
- 0x03 fip-boot Binary none 0x0 fip/fip-stm32mp157f-dk2-trusted.bin
Ensure your board is in DFU mode (empty flash or BOOT pins=0b000).
If issues, please check board UART console log.
Are you sure that your TF-A and uBoot are working ?
Regards.
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-09 2:46 AM
Hi Patrick,
i tried, but no i get stucked in the TF-A:
Now i get the following Message:
WARNING: VDD unknown
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: Using USB
INFO: Instance 2
INFO: Boot used partition fsbl1
ERROR: Boot interface 6 not supported
PANIC at PC : 0x2ffca199
Exception mode=0x00000016 at: 0x2ffca199
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-10 6:53 AM
Also some tries later i get into uboot ( when i connect on UART4 )
There is following message:
RUNNING Program ...
PartID: :0x03
Reconnecting the device ...
On the console:
scanning usb for storage devices... 0 Storage Device(s) found
partitions : done
Phase=END
DFU alt info setting: done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-22 8:17 AM
Hi,
I think your TF-A and uBoot are not correctly setup regarding your custom HW.
May I suggest to look at following articles:
https://wiki.st.com/stm32mpu/wiki/How_to_configure_U-Boot_for_your_board
https://community.st.com/s/article/FAQ-STM32MP1-Bring-up-procedure
https://community.st.com/s/article/FAQ-STM32MP1-bring-up-troubleshooting-guide
note that if you use CubeProgrammer with UART instead of USB, you should also use a different TF-A binary than for USB (ending with ...uart.stm32 instead of ...usb.stm32).
See https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout#Using_STM32Programmer_over_UART
Regards.
