Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

portSAVE_CONTEXT SAM7S64

Posted by jonathan on April 27, 2006
Hi I try to make this work.

I that the lwip demo and remove all the emac + usb + lwip thing. I have change the board.h and all include file to use the sam7s64 one.

Now I have the same problem as other. I don't exit from the first call of portSAVE_CONTEXT macro in portmacro.h.

I have change the ld file to accomodate the memory size of the 64s board.

Ddoes any one here that have been able to get a demo working with freertos + at92sam7s64 + gcc ?

Dumarjo

RE: portSAVE_CONTEXT SAM7S64

Posted by Nobody/Anonymous on April 27, 2006
Which startup file did you use (could probably use the same as per the lwIP demo on the sam7x)?

Are you calling main() from Supervisor mode?

Did you setup the stacks as per the sam7x demo?

RE: portSAVE_CONTEXT SAM7S64

Posted by jonathan on April 27, 2006
I use the complete example but just strip down the lwip + usb + emac stuff.

Dumarjo

RE: portSAVE_CONTEXT SAM7S64

Posted by Nobody/Anonymous on April 27, 2006
Have you taken out the idle hook function? This will cause a crash if the usb task is not running as it tries to send data on the usb as part of the demo.

RE: portSAVE_CONTEXT SAM7S64

Posted by jonathan on April 27, 2006
I have remove the content of it. but still there.

it's verry strange. I have found un complete package from this forum from scott miller. I try it and dosen't work more. I never get back from the restor context. I light up a led in the begining of the macro and another on after it and the second one don't light up.

with this demo, now my board is resetting.

i really don't know what to do with this now !!!

Dumarjo

RE: portSAVE_CONTEXT SAM7S64

Posted by Nobody/Anonymous on April 27, 2006
try sending your files to richard to look at

RE: portSAVE_CONTEXT SAM7S64

Posted by jonathan on April 27, 2006
this is what i have done. Thanks for your help.

Dumarjo

RE: portSAVE_CONTEXT SAM7S64

Posted by Rainer on April 28, 2006
if i understood well, you are using the linker scripts from the lwip demo with an AT91SAM7S64.
my guess is this will not work.
the reason is: the SAM7X, for which the ld script was made, has lots more ram and flash. thus, a couple things will be set at addresses that don't really exist on your SAM7S64 (actually, there might be an address overlap to lower addresses)
so the point is: you have to use a ld script for sam7s64 with the right ram and rom sizes set



RE: portSAVE_CONTEXT SAM7S64

Posted by Richard on April 28, 2006
It seems you are not configuring the processor flash or clocks.

Take a look at the boot.s file included with the lwIP demo. You will see that it calls a function AT91F_LowLevelInit(). I have added this to the files you sent me and now everything you sent is working.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS