2020-07-22 10:39 AM
HI all,
I'm using STM32L073 MCU and STMCube IDE (Version: 1.1.0) for a project, facing a strange situation when I'm flashing hex generated in release mode, it started doing malfunction, whereas while flashing MCU directly from IDE in release mode its working fine even with hex generated under debug mode working fine.
anyone suggest why and when such issue occurs.
looking forward for the positive feedback
Thanks in advance
Regards:
Sonu Verma
2020-07-22 11:10 AM
Generate a checksum/crc across the image so you can see if it is the same.
The debugger may enable clocks, fiddle with GPIO, or internal settings to meet its needs, your code might have dependencies on these, and if the processor runs or starts more slowly.
Dump peripheral registers, starting with RCC, to see if you can identify differences on/off the debugger.
Check BOOT0 pins.
Add general diagnostics/telemetry so you can understand the failure mode, or identify changes in behaviour and code flow.