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

FreeRTOS ans SAM3S4A

Posted by pc-mesnil on May 12, 2014

Hello, I would like to use FreeRTOS on a SAM3S4A chip. I see that there is 2 demo for the board of Atmel, but I could not modify it to work on a other Microcontroler that the SAM3SD8C. Do you know if it exist a demo project on atmel for generic processeur, or a specific one foe SAM3S4? Thanks in advance.


FreeRTOS ans SAM3S4A

Posted by rtel on May 12, 2014

The FreeRTOS Cortex-M port will run on any Cortex-M chip that has enough RAM. To get the kernel running it should just be a matter of ensuring the linker script is correct for the device being used. Getting a demo application running may require different start up code (if the chip family is changed), adding or removing demo tasks if the amount of RAM available is different, and updating FreeRTOSConfig.h settings that set the CPU speed and amount of heap available. A page is provided that includes information on doing this http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html - were you able to follow the instructions there? If not then you will need to provide information on the actual problem you are having in order for somebody to be able to suggest a solution.

Regards.


FreeRTOS ans SAM3S4A

Posted by pc-mesnil on May 13, 2014

I tried to start from the ATSAM3S-EK2 demo, and I get this error when I tried to run : >Atmel Studio was unable to start your debug session. >Please verify device selection, interface settings, target power and connections to the target device.

Timestamp: 2014-05-13 14:37:04.372 Severity: ERROR ComponentId: 20100 StatusCode: 131101 ModuleName: TCF (TCF command: Processes:launch failed.)

Unexpected Chip Identifier 0x28800960 (expected 0x29ab0a60).*

It seems that the only chip supported is SAM3SD8C. I don't know how to swich it to my device with is SAM3S4A.


FreeRTOS ans SAM3S4A

Posted by davedoors on May 13, 2014

I don't think your problem is connected to FreeRTOS at all, it is simply that you are telling Atmel Studio that you are connecting to a SAM3SD8C when you are actually connecting to a SAM3S4A. Change the device setting in the project.


FreeRTOS ans SAM3S4A

Posted by pc-mesnil on May 13, 2014

Thanks a lot Dave. You were right about the project target. But now my demo blinking LED does not compile on RTOS (it compile and blink if I do it manually on the main) because it need too much RAM: >Error 2 Program Memory Usage : 19800 bytes 7,6 % Full Data Memory Usage : 50736 bytes 103,2 % Full (Memory Overflow) RTOSDemo 0 0 RTOSDemo

Does someone can give me a clue on how reduce the size of the RAM, my soft is pretty simple, I need a lightest heart as possible.


FreeRTOS ans SAM3S4A

Posted by rtel on May 13, 2014

The following two links should provide the information you need to reduce the data size:

http://www.freertos.org/a00111.html http://www.freertos.org/FAQMem.html#RAMUse2

Hope that helps.

Regards.


FreeRTOS ans SAM3S4A

Posted by pc-mesnil on May 14, 2014

Ok, I appology for needing so much jelp, but thanks to your doc I succeed to reduce my ram consumption. Now the soft compile and run on my board, but stay stuck in the >xPortStartScheduler( void )

function, more precisely in the >prvPortStartFirstTask();

It could be a issue with portmap, but I can not figure what I should change to make it work.


FreeRTOS ans SAM3S4A

Posted by davedoors on May 14, 2014

Are the interrupt vectors installed? point #1 on http://www.freertos.org/FAQHelp.html


[ 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