cancel
Showing results for 
Search instead for 
Did you mean: 

Hex file generated in release mode doing malfunction

SoonuVerma
Associate II

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

1 REPLY 1

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.

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