LPC1769 Debug/Release errors

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1769 Debug/Release errors

680件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Sajuukthanatoskhar on Wed Dec 19 23:19:20 MST 2012
Hi all,
Having a seemingly weird issue here with my LPC1769 using the LPCXpresso (Rev B) evaluation board, hooked up over LPC-Link.
Essentially, i have a device hooked up to the board over IIC and when the code is compiled in debug mode, the code runs fine and the data received over the IIC communication is correct.
However, once the code is compiled in release mode, and the board is run externally to debug mode, either via usb power or external battery power, the code executes, what appears to be correctly, however the values received from the IIC communication are wrong.
Unfortunately i cannot post the code for the issues at hand due to an ND agreement, however, i was hoping there is an error experienced by other users such as this that i can use to try and debug the situation. Googling yielded nothing of use, but hopefully there is something i have overlooked.

Thanks
0 件の賞賛
返信
2 返答(返信)

661件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frame on Thu Dec 20 02:39:20 MST 2012
As a quick fix, you could try to match the optimization settings for you release version
with that of the debug version (probably "-O0").

If that helps, I suggest to delve deeper into the article recommended by TheFallGuy.
0 件の賞賛
返信

661件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Dec 20 02:17:05 MST 2012
There is a FAQ for that:
http://support.code-red-tech.com/CodeRedWiki/CompilerOptimization

Make sure you read the section on "Optimized code fails to execute correctly"
0 件の賞賛
返信