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

Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by tomkcook on February 20, 2017

Sorry for a newbie question.

I'm trying to set up a FreeRTOS project for an ATSAM3X8E mcu, building on Linux using the Atmel arm-none-eabi toolchain. There's no demo project for this combination. Does anyone know of a reasonable guide to doing it?

I've got a basic project building using the Atmel toolchain but without FreeRTOS - a makefile generated using the Atmel pack-utils. There's also the CORTEXATSAM3XAtmel_Studio demo. As far as I can tell, Atmel Studio uses GCC under the hood, so it should be fairly straightforward to get this building under Linux - right?

If not, what's my best strategy? Should I start from the bare project generated by pack-utils and start trying to paste FreeRTOS into it? Or should I start from the Atmel Studio project and port it to the Linux toolchain?

Thanks for any advice. Tom


Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by dibosco on February 20, 2017

Yes, Atmel studio uses gcc.

I work on Linux (although use Crossworks - which is also gcc based) and when getting stuff going on Linux I look at the Atmel Studio project, examine exactly what files it uses and then copy them into a new project.

This kind of thing I have done:

https://interactive.freertos.org/hc/en-us/community/posts/210025726-SAM3S-EK2-For-Rowley-Crossworks-inc-FAT-file-system-

IIRC the Atmel Studio project files make it reasonably plain which files belong in the project.

If you know your way round make files then I would think it should be easy for you to do this. If you don't know your way around make files, I can thoroughly recommend Crossworks for ARM that runs natively on Linux and is a really excellent IDE; makes it easy, even for duffers like me, to get projects up and running quite quickly.

Rob


Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by dibosco on February 20, 2017

Sorry for double post


Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by tomkcook on February 21, 2017

Thank you. Makefiles are not a problem, especially not with a template from the bare-metal project the pack-utils generate. In fact I've got it building, though the board hasn't come back to be tested yet.

Thanks for your help.


Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by tomkcook on February 21, 2017

What I've got at the moment is a reasonably generic port of the CORTEXATSAM3XAtmel_Studio demo from the ATSAM3X-EK demo board to a ATSAM3X8E part on a custom board building under GCC.

Would FreeRTOS be interested in having this contributed back to the project?


Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by dibosco on February 21, 2017

Most definitely. Stick it here:

https://interactive.freertos.org/hc/en-us/community/topics

In the Atmel section of course! :D

Are you using a JTAG debugger to do anything more than load the code with Linux on this (ie are you debugging with the JTAG interface)? I'm a little interested in how you're doing it if so. Unless it's Eclipse based, in which case I don't care! ;~)


Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by tomkcook on March 3, 2017

Sorry, I haven't got that far yet. I'm not planning to use JTAG for loading code; the mcu is connected to raspberry pi through its UART and I'm going to use the SAM3X bootloader to load the code over that. I'll be looking into JTAG debugging - if I make progress, I'll let you know.


Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by tomkcook on March 3, 2017

Also, when you say, "Stick it here," that site doesn't have an obvious way to upload files...


Beginners question - setting up an ATSAM3X project under GCC/Linux

Posted by dibosco on March 3, 2017

Sign in, go the relevant forum, create a new post and it will be dead obvious.


[ 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