Quality RTOS & Embedded Software

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




Loading

Converting SAMX to SAMS

Posted by Richard on May 7, 2007
[moved from private mail]

Do you happen to have a port for using FreeRTOS with CrossWorks on an AT91SAM7S (preferrably 7S256, but any would be great)? I've been trying to start with the CrossWorks 7X port and modify it to work with the 7S, but I haven't been successful yet.

RE: Converting SAMX to SAMS

Posted by Richard on May 7, 2007
I'm not sure that any conversion is actually required, except maybe the linker file, but even then, looking at the SAM7X Rowley project it seems to include the SAM7S256 memory map file.

The IAR projects for the SAM7X and SAM7S both use exactly the same port files.

Did you start your new project by using the existing SAM7X project, or did you create a new project specifically for the SAM7S and then copy across the compiler settings?

What goes wrong (what are the symptoms) when you try to run the code on the SAM7S (flash won't program, tasks won't start, etc.)?


I would suggest:

+ Starting with the lwIP project.
+ Remove all the Ethernet stuff (lwIP code, emac drivers, etc).
+ Update partest.c so that it correctly controls the LED's on the hardware you are using. Test the function of the LED's from a simply "hello world" type program to ensure the function as expected, before adding any multitasking.
+ Then edit main() as below:


int main( void )
{
____/* Setup the ports - make sure there is no EMAC stuff in here! */
____prvSetupHardware();

____/* Setup the IO required for the LED's. */
____vParTestInitialise();

____vStartLEDFlashTasks( mainFLASH_PRIORITY );
____vTaskStartScheduler();

____/* Should never get here! */
____return 0;
}


Also - be sure to set configUSE_TICK_HOOK and config_USE_IDLE_HOOK to zero in the FreeRTOSConfig.h file to prevent the hook functions attempting to access the USB queues, as this would cause it to crash.

Regards.






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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists