2021-04-12 03:00 AM
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.
2021-04-12 03:08 AM
Also, in the same section,
Options for target > Debug > ST-Link Debugger > Settings > Debug Connect & Reset Options > Reset: HW RESET
2021-04-22 03:14 PM
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.