STM32F429 / STM32G491 What is the difference in external loader?
Hi,
I can't get the external loader to work in STM32G491.
For the test, I replaced the bodies of the Init()/Erase()/Write() function with LED blinking. I did this to check if the functions are called correctly. For debugging, I used STM32_Programmer_CLI to check the writing of single bytes.
If I try to write the STM32F429 I get this log.
19:50:54:384 -------------------------------------------------------------------
19:50:54:384 STM32CubeProgrammer v2.9.0
19:50:54:384 -------------------------------------------------------------------
19:50:54:384
19:50:54:388 Log output file: !log.txt
19:50:54:390 Command line: -log !log.txt
19:50:54:390
19:50:54:395
Operation [2]: -vb 3
19:50:54:406
Operation [3]: -c port=swd freq=500 reset=HWrst
19:50:54:447 ST-LINK SN : 55FF67065065565040110987
19:50:54:450 ST-LINK FW : V2J45S0
19:50:54:453 Board : --
19:50:54:455 Voltage : 2.92V
19:50:54:481 SWD freq : 480 KHz
19:50:54:484 Connect mode: Under Reset
19:50:54:486 Reset mode : Hardware reset
19:50:54:491 Device ID : 0x419
19:50:54:495 Revision ID : Rev Y
19:50:54:530 Reading data...
19:50:54:536 r ap 0 @0x40023C14 0x00000004 bytes Data 0x0FFFAAED
19:50:54:539 Reading data...
19:50:54:542 r ap 0 @0x1FFF7A22 0x00000004 bytes Data 0xFFFF0800
19:50:54:545 Database: Config 0 is active.
19:50:54:547 flash loader C:/STM32CubeProgrammer/bin/FlashLoader/0x419.stldr is loaded
19:50:54:552 Reading data...
19:50:54:557 r ap 0 @0x40023C14 0x00000004 bytes Data 0x0FFFAAED
19:50:54:559 Reading data...
19:50:54:563 r ap 0 @0x1FFF7A22 0x00000004 bytes Data 0xFFFF0800
19:50:54:565 Database: Config 0 is active.
19:50:54:567 Device name : STM32F42xxx/F43xxx
19:50:54:572 Reading data...
19:50:54:574 r ap 0 @0x1FFF7A22 0x00000004 bytes Data 0xFFFF0800
19:50:54:577 Flash size : 2 MBytes
19:50:54:579 Device type : MCU
19:50:54:582 Device CPU : Cortex-M4
19:50:54:585 BL Version : 0x70
19:50:54:590
19:50:54:591
Operation [4]: -el "c:\STM32CubeProgrammer\bin\ExternalLoader\F429_EXL.stldr"
19:50:54:603 external loader c:\STM32CubeProgrammer\bin\ExternalLoader\F429_EXL.stldr is loaded
19:50:54:614
Operation [5]: -w8 0x90000000 0xAA 0xBB 0x55 0xCC 0x11 0x22 0x33
19:50:54:627
Downloading 8-bit data...
19:50:54:631 Buffer program...
19:50:54:637 halt ap 0
19:50:54:637 w ap 0 reg 15 PC (0x20000000)
19:50:54:642 w ap 0 reg 17 MSP (0x20000500)
19:50:54:647 w ap 0 reg 16 xPSR (0x01000000)
19:50:54:669 w ap 0 @0x20008360 : 0x00000200 bytes, Data 0x00000000...
19:50:54:674 w ap 0 @0x20000000 : 0x00000004 bytes, Data 0x0000BE00...
19:50:55:684 w ap 0 @0x20000004 : 0x00007F28 bytes, Data 0x00000000...
19:50:55:698 Loader write range...
19:50:55:700 w ap 0 @0x20008360 : 0x00000008 bytes, Data 0xCC55BBAA...
19:50:55:705 W B1 in RAM @0x20008360 size 0x00000008 : 0005ms
19:50:55:708 Init flashloader...
19:50:55:711 halt ap 0
19:50:55:714 w ap 0 reg 0 R0 0x00000001
19:50:55:722 w ap 0 reg 1 R1 0x00000000
19:50:55:743 w ap 0 reg 2 R2 0x00000000
19:50:55:751 w ap 0 reg 3 R3 0x00000000
19:50:55:757 w ap 0 reg 4 R4 0x00000000
19:50:55:760 w ap 0 reg 5 R5 0x00000000
19:50:55:765 w ap 0 reg 6 R6 0x00000000
19:50:55:770 w ap 0 reg 7 R7 0x00000000
19:50:55:774 w ap 0 reg 8 R8 0x00000000
19:50:55:777 w ap 0 reg 9 R9 0x00000000
19:50:55:781 w ap 0 reg 10 R10 0x00000000
19:50:55:785 w ap 0 reg 11 R11 0x00000000
19:50:55:789 w ap 0 reg 12 R12 0x00000000
19:50:55:793 w ap 0 reg 13 SP 0x00000000
19:50:55:796 w ap 0 reg 14 LR 0x20000001
19:50:55:801 w ap 0 reg 15 PC 0x20000985
19:50:55:805 w ap 0 reg 16 xPSR 0x01000000
19:50:55:808 w ap 0 reg 17 MSP 0x20008328
19:50:55:813 w ap 0 reg 18 PSP 0x00000000
19:50:55:817 run ap 0
19:50:57:748 halt ap 0
19:50:57:754 r ap 0 reg 0 R0 0x00000001
19:50:57:760 w ap 0 reg 0 R0 0x90000000
19:50:57:765 w ap 0 reg 1 R1 0x00000008
19:50:57:770 w ap 0 reg 2 R2 0x20008360
19:50:57:774 w ap 0 reg 3 R3 0x00000002
19:50:57:779 w ap 0 reg 4 R4 0x00000000
19:50:57:784 w ap 0 reg 5 R5 0x00000000
19:50:57:788 w ap 0 reg 6 R6 0x00000000
19:50:57:792 w ap 0 reg 7 R7 0x00000000
19:50:57:796 w ap 0 reg 8 R8 0x00000000
19:50:57:804 w ap 0 reg 9 R9 0x00000000
19:50:57:809 w ap 0 reg 10 R10 0x00000000
19:50:57:814 w ap 0 reg 11 R11 0x00000000
19:50:57:819 w ap 0 reg 12 R12 0x00000000
19:50:57:823 w ap 0 reg 13 SP 0x00000000
19:50:57:827 w ap 0 reg 14 LR 0x20000001
19:50:57:831 w ap 0 reg 15 PC 0x20000A25
19:50:57:837 w ap 0 reg 16 xPSR 0x01000000
19:50:57:841 w ap 0 reg 17 MSP 0x20008328
19:50:57:845 w ap 0 reg 18 PSP 0x00000000
19:50:57:848 run ap 0
19:50:58:966 r ap 0 reg 0 R0 0x00000001
19:50:58:970 Write elapsed time: 3270ms
19:50:58:971 Reading data...
If I try to write the STM32G491 I get this log.
19:54:29:059 -------------------------------------------------------------------
19:54:29:059 STM32CubeProgrammer v2.9.0
19:54:29:059 -------------------------------------------------------------------
19:54:29:060
19:54:29:062 Log output file: !log.txt
19:54:29:065 Command line: -log !log.txt
19:54:29:065
19:54:29:070
Operation [2]: -vb 3
19:54:29:082
Operation [3]: -c port=swd freq=500 reset=HWrst
19:54:29:176 ST-LINK SN : 50FF71064977535538100587
19:54:29:181 ST-LINK FW : V2J45S7
19:54:29:184 Board : --
19:54:29:186 Voltage : 3.22V
19:54:29:213 SWD freq : 480 KHz
19:54:29:216 Connect mode: Under Reset
19:54:29:217 Reset mode : Hardware reset
19:54:29:222 Device ID : 0x479
19:54:29:228 Revision ID : Rev Z
19:54:29:246 Reading data...
19:54:29:249 r ap 0 @0x1FFF75E0 0x00000004 bytes Data 0xFFFF0200
19:54:29:251 Database: Config 0 is active.
19:54:29:255 flash loader C:/STM32CubeProgrammer/bin/FlashLoader/0x479.stldr is loaded
19:54:29:262 Reading data...
19:54:29:265 r ap 0 @0x1FFF75E0 0x00000004 bytes Data 0xFFFF0200
19:54:29:267 Database: Config 0 is active.
19:54:29:270 Device name : STM32G491xx
19:54:29:271 Reading data...
19:54:29:273 r ap 0 @0x1FFF75E0 0x00000004 bytes Data 0xFFFF0200
19:54:29:277 Flash size : 512 KBytes
19:54:29:279 Device type : MCU
19:54:29:280 Device CPU : Cortex-M4
19:54:29:283 BL Version : 0xD2
19:54:29:287
19:54:29:288
Operation [4]: -el "c:\STM32CubeProgrammer\bin\ExternalLoader\F429_EXL.stldr"
19:54:29:299 external loader c:\STM32CubeProgrammer\bin\ExternalLoader\F429_EXL.stldr is loaded
19:54:29:312
Operation [5]: -w8 0x90000000 0xAA 0xBB 0x55 0xCC 0x11 0x22 0x33
19:54:29:322
Downloading 8-bit data...
19:54:29:326 Buffer program...
19:54:29:333 halt ap 0
19:54:29:334 w ap 0 reg 15 PC (0x20000000)
19:54:29:339 w ap 0 reg 17 MSP (0x20000500)
19:54:29:346 w ap 0 reg 16 xPSR (0x01000000)
19:54:29:351 Loader write range...
What does this mean?
Does STM32_Programmer not loading the external loader into RAM?
Does the processor not executing the run command?
Does the processor have interrupts disabled ?
I am using STM32CubeIDE Version: 1.17.0
I need external loader for TouchGfx in configuration W25Q128VS (QSPI mode) + STM32G491RE
