Problem the software doesn’t start.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem the software doesn’t start.

1,398 次查看
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 回复数

1,391 次查看
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 项奖励
回复

1,386 次查看
converse
Senior Contributor V

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

1,379 次查看
frank_m
Senior Contributor III

Yes, IMHO actually the most likely reason.

0 项奖励
回复