cancel
Showing results for 
Search instead for 
Did you mean: 

Release bin file is not working but the Debug bin file of Same project is working .which setting configuration is needed ?

Namita
Associate II

kindly Feedback

5 REPLIES 5
KnarfB
Principal III

Many different reasons possible, no silver bullet.

Try to switch gradually from Debug to Release, file by file or setting by setting.

hth

KnarfB

Custom board?

BOOT0 pulled LOW?

You should be able to use debugger on either image, does it get stuck in some while (1) loop?

Instrument Error_Handler and HardFault_Handler properly so you can see those failures.

Watch poor coding that can cause the optimizer to remove chunks of code.​

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

Also check for any code that's disabled in Release - eg, side-effects in debug prints, asserts, etc ...

https://community.st.com/s/question/0D53W00001Z7cTgSAJ/release-bin-file-is-not-working-but-the-debug-bin-file-of-same-project-is-working-which-setting-configuration-is-needed-

SW4STM32 is very obsolete. Try using CubeIDE, Keil or IAR, something with an audience and support of STM32L4 parts.

If a simple project toggling PC10 try showing or attaching code.

stm32l496retg custom board, per prior post history. A schematic of what you've built/wired would provide context.

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

Mostly such issues mean that the code is broken and the issues just doesn't show up or goes unnoticed in debug configuration.