EmbeddedRelated.com
Forums

LPC1768 + Rowley CrossWorks 1.7 Reset Problem

Started by Prakash Rajoli August 31, 2010
Hello,

I have used start up files and xml files of
http://electronix.ru/forum/index.php?s164ca26ca991f502cf99e05f29e72&act=attach&type=post&id8499
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

An Engineer's Guide to the LPC2100 Series

On 31/08/2010 05:57, Prakash Rajoli wrote:
> 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
>
I knew what this questions was going to be asking just from the title,
number 1 FAQ. Try reading the comments in the start up file, and the
Rowley FAQ (i.e. reading stuff) and you will soon find there is a
RESET_FROM_STARTUP option you can define.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.

Thanks for your fast response.

 I used lpc2148 start up file for lpc2148 board it was working fine when I defined RESET_FROM_STARTUP. But in lpc 1768 startup file there is nothing used as RESET_FROM_STARTUP.

-Prakash
--- On Tue, 8/31/10, FreeRTOS Info wrote:

From: FreeRTOS Info
Subject: Re: [lpc2000] LPC1768 + Rowley CrossWorks 1.7 Reset Problem
To: l...
Date: Tuesday, August 31, 2010, 10:42 AM

 

On 31/08/2010 05:57, Prakash Rajoli wrote:

> Hello,

>

> I have used start up files and xml files of

> http://electronix.ru/forum/index.php?s164ca26ca991f502cf99e05f29e72&act=attach&type=post&id8499

> 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

>

I knew what this questions was going to be asking just from the title,

number 1 FAQ. Try reading the comments in the start up file, and the

Rowley FAQ (i.e. reading stuff) and you will soon find there is a

RESET_FROM_STARTUP option you can define.

Regards,

Richard.

+ http://www.FreeRTOS.org

Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com

Certified by TÜV as meeting the requirements for safety related systems.
On 31/08/2010 06:21, Prakash Rajoli wrote:
> Thanks for your fast response.
>
> I used lpc2148 start up file for lpc2148 board it was working fine when I defined RESET_FROM_STARTUP. But in lpc 1768 startup file there is nothing used as RESET_FROM_STARTUP.
>

Using a text editor or debugger, look at what the option does in the
LPC2148 file (prevents the code sirting in a tight loop, I think), then
replicate it in the LPC1768 file.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.

go to Project -> Properties -> "Arm Flash Debug" "your solution"
->Linker Options ->Entry Point: enter "main"

regards

Am 31.08.2010 06:57, schrieb Prakash Rajoli:
>
> Hello,
>
> I have used start up files and xml files of
> http://electronix.ru/forum/index.php?s164ca26ca991f502cf99e05f29e72&act=attach&type=post&id8499
>
> 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
>

On 31/08/2010 08:07, Kai Klein wrote:
> go to Project -> Properties -> "Arm Flash Debug" "your solution"
> ->Linker Options ->Entry Point: enter "main"

Hmm. I've never tried this, but from your description it sounds like
you are going to have a project that skips the C and run time set up
code. If I'm write, that is a bad idea.
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.

>
> regards
>
> Am 31.08.2010 06:57, schrieb Prakash Rajoli:
>>
>> 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
>>
>
>
>
>
>
>
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
On 02/09/2010 09:04, Prakash Rajoli wrote:
> 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

Are you just asking the same question again - after you were advised how
to rectify the problem?

I was silly enough to download your files, and cannot see
STARTUP_FROM_RESET defined anywhere.

Maybe you are just asking for somebody else to do it for you?
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.

look for
PreprozessorOptions and enter STARTUP_FROM_RESET;
for Release Configuration

regards
kai
Am 02.09.2010 10:04, schrieb Prakash Rajoli:
>
> 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
>

I have done same thing only. But no use:(

-Prakash