cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 workspace generated bz STM32CubeMX for IAR & Keil doesn't work!

Moamen Ayman
Associate III

 Hello I have generated a workspace using STM32CubeMX V4.27 for STM32H743ZI.

-With IAR v8.3 when I try to download the firmware I always get an error at the beginning ''Do you want to perform mass erase to unlock the device'' when I press okay another warning comes ''write failed (CPU data abort) at Memory address 0x2004FD98'' then it halts and I have to cancel it.

I still can press debug without download but when the debug session starts and I press next statement nothing moves

-With Keil uV5 I can download the firmware and it works fine on the NUCLEO board but I can't debug, the same happens as with IAR debugger.

I attached the generated codes.

Thanks in advance.

1 REPLY 1

Check the debugger settings in Keil, make sure it is set to download before debugging.

Uncheck "run to main()" and see if it stops at the ResetHandler, if it does then might be issues with SystemInit() function.

Update the ST-LINK firmware to current. The STM32 Cube Programmer should have version 31

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