2022-08-27 08:33 AM
Hi, I miograting to Kirkstone distro on mu custom board and i have this issue with programming the board:
and i cannot understrand what this error mean, can somebody explain it where i am wrong? because on Dunfell it worked perfect.
the Yocto compiling on linux server and i programming with my windows pc
STM32Programmer output:
18:29:04 : USB speed : High Speed (480MBit/s)
18:29:04 : Manuf. ID : STMicroelectronics
18:29:04 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
18:29:04 : SN : 003B00213439511334383734
18:29:04 : DFU protocol: 1.1
18:29:04 : Board : --
18:29:04 : Device ID : 0x0500
18:29:05 : Start Embedded Flashing service
18:29:05 : Memory Programming ...
18:29:05 : Opening and parsing file: tf-a-stm32mp153a-ground4-mx-usb.stm32
18:29:05 : File : tf-a-stm32mp153a-ground4-mx-usb.stm32
18:29:05 : Size : 220.82 KB
18:29:05 : Partition ID : 0x01
18:29:05 : Download in Progress:
18:29:07 : File download complete
18:29:07 : Time elapsed during download operation: 00:00:01.363
18:29:07 : RUNNING Program ...
18:29:07 : PartID: :0x01
18:29:07 : Start operation done successfully at partition 0x01
18:29:07 : Memory Programming ...
18:29:07 : Opening and parsing file: fip-stm32mp153a-ground4-mx-trusted.bin
18:29:07 : File : fip-stm32mp153a-ground4-mx-trusted.bin
18:29:07 : Size : 1.14 MB
18:29:07 : Partition ID : 0x03
18:29:07 : Download in Progress:
18:29:08 : File download complete
18:29:08 : Time elapsed during download operation: 00:00:01.454
18:29:08 : RUNNING Program ...
18:29:08 : PartID: :0x03
18:29:08 : Reconnecting the device ...
18:29:11:157 : Reconnected
18:29:11:162 : USB speed : High Speed (480MBit/s)
18:29:11:162 : Manuf. ID : STMicroelectronics
18:29:11:162 : Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2000, @Name /STM32MP153AAA Rev.B,
18:29:11:162 : SN : 003B00213439511334383734
18:29:11:162 : DFU protocol: 1.1
18:29:11:162 : Board : --
18:29:11:162 : Device ID : 0x0500
18:29:11:162 : Device name : STM32MP153AAA Rev.B
18:29:11:162 : Device type :
18:29:11:162 : Device CPU :
18:29:11:162 : Start operation done successfully at partition 0x03
18:29:11:162 : sending a set alternate setting request with index: 1
18:29:11:162 : receiving packet
18:29:11:164 : UpLoading data
18:29:11:164 : sending a set alternate setting request with index: 0
18:29:11:164 : Flashlayout Programming ...
18:29:11:164 : Running Flashlayout Partition ...
18:29:11:164 : sending a dfu end of download request
18:29:11:175 : sending a set alternate setting request with index: 1
18:29:11:175 : receiving packet
18:29:11:175 : UpLoading data
18:29:11:184 : sending a set alternate setting request with index: 0
18:29:11:184 : Request detach value = 1
18:29:11:185 : Reconnecting the device ...
18:29:11:185 : Reconnecting...
18:29:11:627 : Reconnected
18:29:11:632 : USB speed : High Speed (480MBit/s)
18:29:11:632 : Manuf. ID : STMicroelectronics
18:29:11:632 : Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2000, @Name /STM32MP153AAA Rev.B,
18:29:11:632 : SN : 003B00213439511334383734
18:29:11:632 : DFU protocol: 1.1
18:29:11:632 : Board : --
18:29:11:632 : Device ID : 0x0500
18:29:11:632 : Device name : STM32MP153AAA Rev.B
18:29:11:632 : Device type :
18:29:11:632 : Device CPU :
18:29:11:632 : Flashlayout partition started successfully
18:29:11:632 : Error: unable to get the associate alternate setting of partition ID: 0xf1
18:29:11:667 : Error: please make sure that your alternate settings have string descriptors with the right format
18:29:11:689 : virtual partition with index: 0xF1 was not found
18:29:11:689 : Error: unable to upload data from virtual partition
18:29:11:717 : Received PhaseID == 0xFF, system is going to reboot
console output:
NOTICE: CPU: STM32MP153AAA Rev.B
NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15
INFO: PMIC version = 0x21
NOTICE: Reset reason (0x14):
INFO: Pad Reset from NRST
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000
INFO: FCONF: Reading firmware configuration information for: stm32mp_io
INFO: Using USB
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.6-stm32mp1-r1.0(debug):devtool-patched
NOTICE: BL2: Built : 10:45:05, Aug 25 2022
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000Khz
INFO: Memory size = 0x10000000 (256 MB)
INFO: DFU USB START...
INFO: phase ID :3, Manifestation 3 at c7122d46
INFO: Send detach request
INFO: Receive DFU Detach
INFO: DFU USB STOP...
INFO: BL2: Loading image id 31
INFO: Loading image id=31 at address 0x2ffff000
INFO: Image id=31 loaded: 0x2ffff000 - 0x2ffff226
INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x2ffff000
INFO: FCONF: Reading firmware configuration information for: dyn_cfg
INFO: FCONF: Reading firmware configuration information for: stm32mp1_firewall
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffc5000
INFO: Image id=4 loaded: 0x2ffc5000 - 0x2ffd9820
INFO: BL2: Skip loading image id 21
INFO: BL2: Skip loading image id 22
INFO: BL2: Loading image id 23
INFO: Loading image id=23 at address 0xc0500000
INFO: Image id=23 loaded: 0xc0500000 - 0xc051d330
INFO: BL2: Loading image id 26
INFO: Loading image id=26 at address 0x2ffc0000
INFO: Image id=26 loaded: 0x2ffc0000 - 0x2ffc4038
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: Image id=5 loaded: 0xc0100000 - 0xc01ece98
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffc5000
INFO: SPSR = 0x1d3
NOTICE: SP_MIN: v2.6-stm32mp1-r1.0(debug):devtool-patched
NOTICE: SP_MIN: Built : 10:45:05, Aug 25 2022
INFO: ARM GICv2 driver initialized
INFO: ETZPC: UART1 (3) could be non secure
INFO: ETZPC: SPI6 (4) could be non secure
INFO: ETZPC: HASH1 (8) could be non secure
INFO: ETZPC: CRYP1 (9) could be non secure
INFO: ETZPC: I2C6 (12) could be non secure
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
serial_stm32 serial@40010000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
U-Boot 2021.10-stm32mp-r1 (Aug 25 2022 - 13:31:27 +0000)
CPU: STM32MP153AAA Rev.B
Model: STMicroelectronics custom STM32CubeMX board - openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15
Board: stm32mp1 in trusted mode (st,stm32mp153a-ground4-mx)
DRAM: 256 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 0 MHz
- DDR : 533 MHz
WDT: Started with servicing (32s timeout)
NAND: 0 MiB
MMC: STM32 SD/MMC: 1
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
invalid MAC address 0 in OTP 00:00:00:00:00:00
Net: No ethernet found.
Hit any key to stop autoboot: 0
Boot over usb0!
DFU alt info setting: done
crq->brequest:0x0
#
UPLOAD ... done
Ctrl+C to exit ...
#
FlashLayout received, size = 649
DOWNLOAD ... OK
Ctrl+C to exit ...
#
UPLOAD ... done
Ctrl+C to exit ...
partitions : Writing GPT: success!
done
Erasing fip-b on mmc 1: done
Erasing u-boot-env on mmc 1: done
DFU alt info setting: done
crq->brequest:0x0
*~*~*~*~*~*~*~*~UPDATE*~*~*~*~*~*
when I just unplug and plug back the usb cable and push "download" button again stm32programmer continue to program all the partitions
Solved! Go to Solution.
2022-08-30 12:41 AM
I Updated the STM32Programmer from 2.10 to 2.11 and it fixed the issue:grinning_face_with_sweat:
2022-08-30 12:41 AM
I Updated the STM32Programmer from 2.10 to 2.11 and it fixed the issue:grinning_face_with_sweat:
2024-05-17 03:09 AM
I moved to STM32Programmer 2.16.0 and still have the same problem!