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

Got SAM3S-EK2 port working with Crossworks

Posted by DiBosco on January 20, 2013
I have managed to take the Atmel Studio version of FreeRTOS and get it working with Crossworks. It's a little bit cobbled together because I have put absolute paths in for all the include files, so I mist improve that. Also, it seemed to specify that the clock was 4MHz, so I have put in some code from previous run-to-complete software I wrote to use the external crystal and changed this line:

/* FIXME: should be generated by sock */
uint32_t SystemCoreClock = CHIP_FREQ_CPU_MAX;

Not sure what "sock" means. Would be good to initialise the clock to use the external crystal and step up to 64MHz properly without putting in my code maybe?

So, once I have improved the paths set-up, it would be nice to have it available for other Crossworks users to use. How can/should I package this up to make available for others? Would it be good to wait until I have knitted in my SD card/HSMCI code into it too?

Rob

RE: Got SAM3S-EK2 port working with Crossworks

Posted by Richard on January 20, 2013
The Atmel Studio project uses the Atmel CMSIS libraries. Both Atmel Studio and CrossWorks use GCC so you should be able to use most of the same files. CrossWorks probably has its own start up file, but you can get that to call the SystemInit() (I think that is the name anyway) function you will see called from the Atmel start up files. SystemInit() configures the clocks and sets SystemCoreClock accordingly.

Once you have completed it it would be great if you could post it to the FreeRTOS Interactive site. Here is the Atmel formum:
http://interactive.freertos.org/forums/103473-atmel

Thanks and regards.

RE: Got SAM3S-EK2 port working with Crossworks

Posted by DiBosco on January 20, 2013
Hi Richard,

It's already working actually, I just created a new project from scratch, imported all the source files to the new project and had to add all the header file paths to the project. (There's a lot of them!). Crossworks takes care of all the startup stuff and as you say, they're both GCC, so that takes care of an awful lot of stuff.

I've changed the paths to be relative and am adding SD card/FAT support as I have that working on a run-to-complete program; I think people would find that rather useful. Will also add some other stuff I have working from run-to-complete software such as DMA for UART and SPI, I'm just working on making sure I understand the syntax for adding to queues from interrupts. :)


RE: Got SAM3S-EK2 port working with Crossworks

Posted by Richard on January 21, 2013
“Will also add some other stuff I have working from run-to-complete software such as DMA for UART and SPI, I'm just working on making sure I understand the syntax for adding to queues from interrupts. :)”


This is already done for you on the SAM3/4 devices:

http://www.atmel.com/images/doc42049.pdf

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