Skip to main content
simosilva
Senior
Apr 12, 2021 10:00 AM UTC
Question

STM32H745I-DISCO bad CM4 flash initialization in MDK-ARM Keil project

Opening the blank new MDK-ARM project in Keil uVision 5, the CM4 cannot be flashed.

I found that the error is on the Flash RAM address wich is equal for CM4 and CM7

i solved going (into Keil uVision) to Project > Options for target xxxxx-CM4 > Debug > (continue under)

on the top right ST-link Debugger selected click on Settings > Flash Download and in the RAM for Algorithm you must set:

CM7 --> Start: 0x20000000   Size: 0x00001000

CM4 --> Start: 0x10000000   Size: 0x00001000

This is the configuration found on all the Examples, but is not the default generating the code from CubeMX

Originally, these value were the same for CM4 and CM7 target ( Start: 0x20000000   Size: 0x00001000), the big problem is that instead of reporting something like "bad address" the Keil IDE reports "missing .axf", i found digging and digging..

Please correct in the CubeMX generator.

Have a good day.

This topic has been closed for replies.

2 replies

simosilva
simosilvaAuthor
Senior
Apr 12, 2021 10:08 AM UTC

Also, in the same section,

Options for target > Debug > ST-Link Debugger > Settings > Debug Connect & Reset Options > Reset: HW RESET

Khouloud OTHMAN
Associate
Apr 22, 2021 10:14 PM UTC

Hello @simosilva​ ,

Thanks for posting your feedback and suggestions. I see your point and will bring it up internally to be reviewed.

I'll keep you posted with the updates.

Thank you for your contribution.

Khouloud.