Skip to main content
Namita
Associate III
May 18, 2022
Question

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

  • May 18, 2022
  • 5 replies
  • 1147 views

kindly Feedback

This topic has been closed for replies.

5 replies

KnarfB
Super User
May 18, 2022

Many different reasons possible, no silver bullet.

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

hth

KnarfB

Tesla DeLorean
Guru
May 18, 2022

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Super User
May 18, 2022

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

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
May 18, 2022

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Piranha
Principal III
May 18, 2022

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