Problem the software doesn’t start.

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

Problem the software doesn’t start.

772件の閲覧回数
fofotiz
Contributor II

Hello,

I am currently working on a software based on NXP5504 with IAR and J-link

I  have a strange issue. If i launch the software from the development tool, then the software start.

But if the software is launch in stand alone mode (not in debug mode from the development tool), then the software doesn’t start.

The +3V3 power supply is correct. The external Reset Pin is not used.

Do you have any idea about the possible cause of this issue ?

 

Regards,

ラベル(1)
タグ(1)
0 件の賞賛
返信
3 返答(返信)

765件の閲覧回数
frank_m
Senior Contributor III

Not very much specific information, but you can try the following approaches.

1. Is it the same firmware, i.e. not one a debug and the other a release build ?  If it is not the same, check for differences. 

2. Check the startup code. I know at least one toolchain that has implemented an infinite wait loop in the reset handler, to catch the debugger. Such debug versions don't run standalone.

3. There might be real issues, probably related to timing. Often, this is clock setup or Flash init (speed and waitstates). You can add instrumentation code (GPIO toggle, UART, ...) to see were it gets stuck without a debugger, and gradually narrow down the responsible code line(s).

0 件の賞賛
返信

760件の閲覧回数
converse
Senior Contributor V

One more thing to check - do you use printf or other semihosting calls that require a debugger attached?

753件の閲覧回数
frank_m
Senior Contributor III

Yes, IMHO actually the most likely reason.

0 件の賞賛
返信