Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: FREERTOS problem on gcc and LPC2138

2005-10-23 by rseku

I traced the problem further and I found, that the data_abort appears in
call to static void vErrorChecks( void *pvParameters );
first command : mov r12,sp where SP is 0x40002408 calls exception.
I also checked, that code before that mode was in supervisor mode,
and now is in user mode, as You mentioned Richard.

I would like also to stress that only change I made was Project 
properties regarding different processor type, and I removed 
prvHardwareSetup function, because it's implemented in startup function 
LPC210x_startup.s ( M = 4,P = 2,MAM enabled (use_MAM),VPBDIV =1


Regards
robert

Guillermo Prandi wrote:
> --- In lpc2000@yahoogroups.com, "FreeRTOS Info" <nospam@F...> wrote:
> 
>>>I wonder... what does this instruction aim for?:
>>>
>>>asm volatile ( "LDR LR, [LR, #+60]" );
>>>
>>>What is LR+60 pointing to? Why 60? Why not 56 or 64?
>>
>>The stack frame is always the same, and this is the offset to the 
> 
> return
> 
>>address once the context has been restored.
>>
>>Regards,
>>Richard.
>>
>>
>>http://www.FreeRTOS.org
>>
> 
> 
> Oh, I see... 60 = 15 (registers) x 4 (bytes per register).
> 
> Thanks, Richard.
> 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.