FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [August 2017 Threads] Port for Atmel SAM4SD32CPosted 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 SAM4SD32CPosted 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 SAM4SD32CPosted 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 SAM4SD32CPosted 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 SAM4SD32CPosted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|