cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to program or debug external nor flash (h743 eval)

ranran
Senior II

Hello,

Till now, I've debuged my application on internal flash with stm32h743 eval.

Now, I try to use external falsh.

But as I describe below both IAR debugging and stm32programmer fail with the external flash using the stm32cubeh7 example and the eval board.

1. I changed the following code:

-SCB->VTOR = 0x08000000
 +SCB->VTOR = 0x60000000

and also changed in .icf file.

 But on pressing "download and debug", there is no stopping in main breakpoint. Nothing happens.

  

2. I then checked in IAR -> debugger -> download

The "override default .board file" was not checked, so I checked the box.

($TOOLKIT_DIR$\config\flashloader\ST\FlashSTM32H753xI.board )

Note that on checking the contents of FlashSTM32H753xI it shows 2 banks of 0x08000000 (which is the internal flash, not the external !)

 Then, on pressing "download and debug" nothing happens and I don't see it stopped in main() breakpoint.

3. The next thing I tried is to use stm32programmer

I build for .out file, I then chose the correct external flash "M29W128GL_STM32H743I-EVAL", I erased the full chip , created .bin file, but on doing download it to 0x6000000 with vierfy.

Seems that erase and download is done without errors, but verification fails:

14:31:55:587 : Memory Programming ...
14:31:55:587 : Opening and parsing file: C:\projects\mcu\software\en.stm32cubeh7\STM32Cube_FW_H7_V1.3.0\Projects\proj\RHS\oper\EWARM\STM32H743_EVAL\Exe\Project.bin
14:31:55:588 : File : C:\projects\mcu\software\en.stm32cubeh7\STM32Cube_FW_H7_V1.3.0\Projects\proj\RHS\oper\EWARM\STM32H743_EVAL\Exe\Project.bin
14:31:55:588 : Size : 130031 Bytes
14:31:55:588 : Address : 0x60000000 
14:31:55:588 : Erasing Segment <0> Address <0x60000000> Size <130031>Bytes
14:31:55:588 : Erasing memory corresponding to segment 0:
14:31:55:589 : Memory erase...
.....
14:31:58:219 : run ap 0 
14:31:58:220 : halt ap 0 
14:31:58:220 : r ap 0 reg 0 0x00000001
14:31:58:228 : r ap 0 @0x60000000 0x00000400 bytes
14:31:58:228 : Error: Verification issue at address 0x60000000 (byte = 0xFF)
14:31:58:228 : Error: Download verification failed

 Note that although the readme says to flash ""M29W128GL_STM32H743I-EVAL", in the EVAL guide it shows in schematic PC8F128M29EWLA.

As you can see in the log, the verification failed.

Note that erasing external full chip is successful.

Thank you,

ran

14 REPLIES 14

0690X000006CzEvQAK.jpg

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

0690X000006CzFtQAK.jpg

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

0690X000006CzFeQAK.jpg

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ranran
Senior II

Thanks a lot !!!!

ranran
Senior II

Hi,

I tried it with both IAR and stm32programmer and it failed in both.

Can someone try it with one of this tools (stm32programmer or IAR) ?

Thanks,

ran