Quality RTOS & Embedded Software

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


Loading

Port for Atmel SAM4SD32C

Posted by sircorono on August 22, 2017

Hi I'm working for the first time with FreeRTOS using a testboard from Atmel (ATSAM4S-XPRO) with the ARM processor SAM4SD32C (Atmel Studio 7.0, FreeRTOS 9.0) http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=ATSAM4S-XPRO

I've added the FreeRTOS framework but I don't know which port I have to use. I tried different ones, but all gave an error. My guess was to use the GCC->ARMCM4MPU. Then there are compiler errors: http://imgur.com/jMaVOk8

When I switch from Thumb mode to ARM mode, there are other errors: http://imgur.com/hroRLnN

Both modes don't work! Do I need a different port? Or is FreeRTOS not working with this controller?

Thanks! Sebastian


Port for Atmel SAM4SD32C

Posted by rtel on August 22, 2017

Hi I'm working for the first time with FreeRTOS using a testboard from Atmel (ATSAM4S-XPRO) with the ARM processor SAM4SD32C (Atmel Studio 7.0, FreeRTOS 9.0) http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=ATSAM4S-XPRO

If that part has a floating point unit then use the port layer in FreeRTOS/Source/portable/GCC/ARMCM4F, otherwise use the port layer in FreeRTOS/Source/portable/GCC/ARMCM3 (even though it is an M4 part).

When I switch from Thumb mode to ARM mode, there are other errors: http://imgur.com/hroRLnN

That part does not have an ARM mode, just THUMB2.


Port for Atmel SAM4SD32C

Posted by sircorono on August 23, 2017

Hi According to this page, the controller has a FPU: http://www.microchip.com/wwwproducts/en/ATSAM4SD32C

However, the ARM_CM4F port does not work: http://imgur.com/iPWuD3T

But the ARM_CM3 works, thanks for the help. I didn't try this because I have a Cortex M4.

Sebastian


Port for Atmel SAM4SD32C

Posted by rtel on August 23, 2017

From the screenshot you provided I can see that you are not using the correct compiler settings. If you tell the compiler you don't have a floating point unit then it will not allow floating point instructions. Double check the compiler settings to ensure you both specify that hardware floating point is present, and which hardware floating point unit the device has - these must be on the command line sent to the compiler.


Port for Atmel SAM4SD32C

Posted by sircorono on August 24, 2017

Hi

Found it here: http://www.atmel.com/Images/Atmel-42144-SAM4E-FPU-and-CMSIS-DSP-LibraryAP-NoteAT03157.pdf

-mfpu=fpv4-sp-d16 -mfloat-abi=softfp was missing.

Thanks for the help.


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


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner