LPC1768 + Rowley CrossWorks 1.7 Reset Problem

OP (Company: Coinel Technology Solutions) #1838385
Hello,

I have used start up files and xml files of
http://electronix.ru/forum/index.php?s=e6d164ca26ca991f502cf99e05f29e72&act=attach&type=post&id=38499
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
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.
OP (Company: Coinel Technology Solutions)
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
Attached files:

Reply

A question of your own? This thread is over 16 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.