In the release mode of MCUXpresso, the program can compile successfully but cannot run.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In the release mode of MCUXpresso, the program can compile successfully but cannot run.

Jump to solution
927 Views
1054144848
Contributor II

In the release mode of MCUXpresso, the program can compile successfully but cannot run. Whether it is downloaded directly to the board by the emulator or downloaded to the board with the bootloader after changing the address, it cannot run. How can I solve this problem?

1 Solution
843 Views
BlackNight
NXP Employee
NXP Employee

Usually the main difference is the optimization level:

pastedImage_1.png

I suggest you turn off optimizations and debug it. And you might set the debug level to -g3 too.

I hope this helps,

Erich

PS: Debug vs. Release? | MCU on Eclipse 

View solution in original post

2 Replies
844 Views
BlackNight
NXP Employee
NXP Employee

Usually the main difference is the optimization level:

pastedImage_1.png

I suggest you turn off optimizations and debug it. And you might set the debug level to -g3 too.

I hope this helps,

Erich

PS: Debug vs. Release? | MCU on Eclipse 

843 Views
1054144848
Contributor II

Thank you, this is very useful.

0 Kudos