EmbDev.net

Forum: ARM programming with GCC/GNU tools LPC1768 + Rowley CrossWorks 1.7 Reset Problem

Author: Prakash Rajolli (Company: Coinel Technology Solutions) (prakash)
Posted on:

Hello,

I have used start up files and xml files of
http://electronix.ru/forum/index.php?s=e6d164ca26c...
for led toggle. Its working fine in debug mode but after resetting, the
control not goes to the main function.

It would be great if anyone could share light on this

-Prakash
Author: A. K. (prx)
Posted on:

Usually the Crossworks startup code contains a forever loop immediately
after reset to allow the debugger to connect before the code continues.
Unless some macro is set. The result is exactly the behaviour you
observe: The code runs when started by the debugger/IDE, but not
without.

Likely topic #1 in Rowleys FAQ. I've already suggested to replace the
forever loop by a limited loop (acknowledged). Same result with debugger
- but just a delay without.
Author: Prakash Rajolli (Company: Coinel Technology Solutions) (prakash)
Posted on:
Attached files:

Hello,

Thanks for your responses.

In have attached the LED toggle code. Its working fine with JTAG. After
resetting through IDE (Target->Reset Macraigor Wggler), also its working
fine. But after hard resetting its not working.

And same source files are working through Keil workspace, after hard
reset.

I would really appreciate your help.

-Prakash
Author: A. K. (prx)
Posted on:

Please take a look at Rowleys LPC1700_Startup.s. The issue is explained
in some details right at the top of this file, beyond the copyright
statement.
Author: Prakash Rajolli (Company: Coinel Technology Solutions) (prakash)
Posted on:

Thanks for your response,

I have defined STARTUP_FROM_RESET in "preprocessor defnitions". But its
not working.
Author: A. K. (prx)
Posted on:

Did you recompile everything, startup code included? Verify that the
reset loop is not included by analyzing the result.
Author: Prakash Rajolli (Company: Coinel Technology Solutions) (prakash)
Posted on:

Ya I recompiled and flash the code on target.
I ensured that the Reset loop is not included.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.


webmaster@embdev.netContactAdvertising on EmbDev.net