We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I built the application which contains the uC operating system, a USB library and the BSP for MCB2378 evaluation board. The compilation and linking processes pass without errors and I get the hex executable. When I download this application to the development board (using uLink2) and start the debug session, the code doesn’t reach main() function. After investigation I found out that code stucks in __main called for assembler initialization file. I can freely run and debug program until it reaches __main. There is no return from __main call.
Therefore I have following questions:
1. Is there any general cause of such behavior known?
2. Is there any way to debug code in __main?
I am looking forward to hear from you,
Greetings, Marcin
Are you using recent tools?
I did have that problem ealier this year with LPC23xx chips. The code always failed on the PLL code. If disabling the PLL, it failed somewhere in __main() without a possibility to debug.
I had to wait for updated tools.
I tried to run the application on LPC2378 rev '-' and rev 'A'. In both cases it failed.
Marcin
I was talking about the tools, not revision of the chip.
Do you use the current version of uVision3?
If yes, are you using the most recent version of the startup file?