Problem the software doesn’t start.

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

Problem the software doesn’t start.

774 Views
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,

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

767 Views
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 Kudos
Reply

762 Views
converse
Senior Contributor V

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

755 Views
frank_m
Senior Contributor III

Yes, IMHO actually the most likely reason.

0 Kudos
Reply