2019-10-05 09:17 AM
Stock hardware, and also updated with v35 ST-LINK/V3 firmware
Using MT25TL01G loader for either H750B-DISCO or H745I-DISCO External Loaders
Tried on two different machines
09:41:26 : UPLOADING ...
09:41:26 : Size : 131072 Bytes
09:41:26 : Address : 0x90000000
09:41:26 : Read progress:
09:41:31 : Error: Data read failed
09:41:51 : UPLOADING ...
09:41:51 : Size : 131072 Bytes
09:41:51 : Address : 0x90000000
09:41:51 : Read progress:
09:42:21 : Error: Data read failed
QSPI viable using my own apps, and stock demo.
Not sure the tool actually calls Init function, seen other issues where first read returns zeros, this case times out every time, never seen it read the memory.
2019-10-05 06:11 PM
19:58:56:826 : UPLOADING ...
19:58:56:827 : Size : 1024 Bytes
19:58:56:827 : Address : 0x90000000
19:58:56:827 : Read progress:
19:58:56:827 : Reading data...
19:58:56:827 : reset ap 0
19:58:56:855 : halt ap 0 Status = 0
19:58:56:855 : halt ap 1 Status = 32
19:58:56:855 : halt ap 2 Status = 32
19:58:56:855 : w ap 0 reg 15 PC (0x24000000)
19:58:56:855 : w ap 0 reg 17 MSP (0x24000500)
19:58:56:856 : w ap 0 reg 16 xPSR (0x01000000)
19:58:56:882 : w ap 0 @0x240017E0 0x00000200 bytes
19:58:56:887 : w ap 0 @0x24000000 0x00000004 bytes
19:58:56:887 : w ap 0 @0x24000004 0x000013B8 bytes
19:58:56:888 : Init flashloader...
19:58:56:892 : halt ap 0
19:58:56:892 : w ap 0 reg 0 R0 0x00000000
19:58:56:892 : w ap 0 reg 1 R1 0x00000000
19:58:56:892 : w ap 0 reg 2 R2 0x00000000
19:58:56:892 : w ap 0 reg 3 R3 0x00000000
19:58:56:893 : w ap 0 reg 4 R4 0x00000000
19:58:56:893 : w ap 0 reg 5 R5 0x00000000
19:58:56:893 : w ap 0 reg 6 R6 0x00000000
19:58:56:893 : w ap 0 reg 7 R7 0x00000000
19:58:56:893 : w ap 0 reg 8 R8 0x00000000
19:58:56:894 : w ap 0 reg 9 R9 0x00000000
19:58:56:894 : w ap 0 reg 10 R10 0x00000000
19:58:56:894 : w ap 0 reg 11 R11 0x00000000
19:58:56:894 : w ap 0 reg 12 R12 0x00000000
19:58:56:895 : w ap 0 reg 13 SP 0x00000000
19:58:56:895 : w ap 0 reg 14 LR 0x24000001
19:58:56:895 : w ap 0 reg 15 PC 0x20000935 <<<< NOT RIGHT ADDRESS Init=0x24000935
19:58:56:895 : w ap 0 reg 16 xPSR 0x01000000
19:58:56:896 : w ap 0 reg 17 MSP 0x240017B8
19:58:56:896 : w ap 0 reg 18 PSP 0x00000000
19:58:56:896 : run ap 0
19:59:01:000 : halt ap 0
19:59:01:001 : Init function fail with timeout
19:59:01:001 : r ap 0 reg 16 xPSR 0x41000003
19:59:01:020 : reset ap 0
19:59:01:098 : halt ap 0 Status = 0
19:59:01:105 : halt ap 1 Status = 32
19:59:01:105 : halt ap 2 Status = 32
19:59:01:105 : w ap 0 reg 15 PC (0x24000000)
19:59:01:106 : w ap 0 reg 17 MSP (0x24000500)
19:59:01:106 : w ap 0 reg 16 xPSR (0x01000000)
19:59:01:106 : Error: Data read failed
2019-10-06 02:05 PM
The Command Line version also has a heap of issues.
If the External Loader exports a "Read" function, the tool doesn't bother to load the loader before executing the "Init" function.
15:58:26:328 Database: Config 6 is active.
15:58:26:328 Device name : STM32H7xx
15:58:26:332 Flash size : 128 KBytes
15:58:26:334 Device type : MCU
15:58:26:334 Device CPU : Cortex-M7
15:58:26:336
15:58:26:336 Reading data...
15:58:26:337 r ap 0 @0x1FF095F0 0x00000004 byte
15:58:26:337
UPLOADING ...
15:58:26:338 File : h7dk.bin
15:58:26:339 Size : 4194304 Bytes
15:58:26:341 Address: : 0x94000000
15:58:26:342 Read progress:
15:58:26:343 Reading data...
15:58:26:343 Loader read... <<< Doesn't actually write anything to RAM
15:58:26:343 Init flashloader...
15:58:26:344 halt ap 0
15:58:26:344 w ap 0 reg 0 R0 0x00000000
15:58:26:345 w ap 0 reg 1 R1 0x00000000
15:58:26:345 w ap 0 reg 2 R2 0x00000000
15:58:26:346 w ap 0 reg 3 R3 0x00000000
15:58:26:346 w ap 0 reg 4 R4 0x00000000
15:58:26:346 w ap 0 reg 5 R5 0x00000000
15:58:26:347 w ap 0 reg 6 R6 0x00000000
15:58:26:347 w ap 0 reg 7 R7 0x00000000
15:58:26:347 w ap 0 reg 8 R8 0x00000000
15:58:26:348 w ap 0 reg 9 R9 0x00000000
15:58:26:348 w ap 0 reg 10 R10 0x00000000
15:58:26:349 w ap 0 reg 11 R11 0x00000000
15:58:26:349 w ap 0 reg 12 R12 0x00000000
15:58:26:349 w ap 0 reg 13 SP 0x00000000
15:58:26:350 w ap 0 reg 14 LR 0x00000000
15:58:26:350 w ap 0 reg 15 PC 0x24001621
15:58:26:350 w ap 0 reg 16 xPSR 0x01000000
15:58:26:351 w ap 0 reg 17 MSP 0x00000000
15:58:26:351 w ap 0 reg 18 PSP 0x00000000
15:58:26:351 run ap 0
15:58:31:000 halt ap 0
15:58:31:000 Init function fail with timeout <<< Surprise, it fails
15:58:31:001 r ap 0 reg 16 xPSR 0x41000003
15:58:31:004 reset ap 0
2019-10-06 02:14 PM
Command Line v2.0.0, also has memory address for Init mapped at 0x20000000 vs 0x24000000 space
UPLOADING ...
16:10:41:360 File : h7dk.bin
16:10:41:362 Size : 4194304 Bytes
16:10:41:363 Address: : 0x94000000
16:10:41:364 Read progress:
16:10:41:365 Reading data...
16:10:41:368 reset ap 0
16:10:41:369 run ap 0
16:10:41:369 halt ap 0
16:10:41:369 w ap 0 reg 15 (0x24000000)
16:10:41:370 w ap 0 reg 17 (0x24000500)
16:10:41:371 w ap 0 reg 16 (0x01000000)
16:10:41:372 w ap 0 @0x240036A0 0x00000200 bytes
16:10:41:373 w ap 0 @0x24000000 0x00000004 bytes
16:10:41:391 w ap 0 @0x24000004 0x00003278 bytes <<<< Code from loader written int AXI RAM
16:10:41:391 Init flashloader...
16:10:41:391 halt ap 0
16:10:41:392 w ap 0 reg 0 0x00000000
16:10:41:392 w ap 0 reg 1 0x00000000
16:10:41:393 w ap 0 reg 2 0x00000000
16:10:41:393 w ap 0 reg 3 0x00000000
16:10:41:394 w ap 0 reg 4 0x00000000
16:10:41:394 w ap 0 reg 5 0x00000000
16:10:41:394 w ap 0 reg 6 0x00000000
16:10:41:395 w ap 0 reg 7 0x00000000
16:10:41:395 w ap 0 reg 8 0x00000000
16:10:41:395 w ap 0 reg 9 0x00000000
16:10:41:396 w ap 0 reg 10 0x00000000
16:10:41:396 w ap 0 reg 11 0x00000000
16:10:41:397 w ap 0 reg 12 0x00000000
16:10:41:397 w ap 0 reg 13 0x00000000
16:10:41:397 w ap 0 reg 14 0x24000001
16:10:41:398 w ap 0 reg 15 0x20001621 <<<< Wrong Memory
16:10:41:398 w ap 0 reg 16 0x01000000
16:10:41:398 w ap 0 reg 17 0x24003678
16:10:41:399 w ap 0 reg 18 0x00000000
16:10:41:399 run ap 0
16:10:46:000 halt ap 0
16:10:46:000 Init function fail with timeout
16:10:46:001 r ap 0 reg 16 0x81000003
16:10:46:004 reset ap 0
2019-10-06 02:35 PM
If one of the *.stldr in the ExternalLoader (QSPI NOR) lacks an "SectorErase" function the GUI tool never starts properly, you get the splash screen, but app never loads.
2019-10-14 01:11 PM
@STOne-32 @Khouloud GARSI
Can someone from the STM32 Cube Programmer group please work with me to fix the tool so it works properly? The tool behaves differently with H7 targets and doesn't relocate some of the entry points properly from the .ELF/.STLDR side.
The ST-LINK Utilities (v4.5.0 GUI, v3.50 CLI) work better in this regard, the CLI seems to allow for >1MB interactions with a file.
2019-10-14 01:14 PM
Another custom having more luck with Cube Programmer, and less with ST-LINK Utilities, but this build wasn't working in Cube Programmer for me either.
https://community.st.com/s/question/0D50X0000BMFyt6SQD/stm32h750vbt6-xip-qspi-flash-not-working
I'm doing work with a number of FLASH parts and loaders
https://community.st.com/s/feed/0D50X0000BSaahHSQR
2019-10-15 03:40 AM
Hi @Community member ,
Thanks for highlighting this behavior and for your continuous presence on STCommunity.
I have highlighted this request internally. @Houda GHABRI is one of our Cube Programmer team interfaces. She may help you on this request.
Khouloud.
2019-10-15 04:51 AM
Hello Clive,
Thanks for your feedback.
This problem is already fixed in last CubeProgrammer version V2.2.0 published on ST WEB .
Can you please test an tell me if it is Ok?
Do not hesiate to contact me for furthers details.
regads,
Houda
2019-10-15 05:15 AM
Thank you, I will check this shortly.