Quality RTOS & Embedded Software

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


RTOSDemo Build with Atmel Studio 7

Posted by cyberrecon on August 20, 2016


Total beginner here. I'm trying to compile the RTOSDemo provided here. I'm using Atmel Studio 7 and trying to generate the ELF file for the ATSAM4E16E. Note that at this point, I am simply trying to generate the binary file and nothing else. I have run into minor snags which required some changes but I am not stuck at this issue:

~~~ Severity Code Description Project File Line Error recipe for target 'src/ASF/thirdparty/freertos/freertos-7.3.0/source/FreeRTOSCLI.o' failed RTOSDemo C:Users...FreeRTOSLabs160112FreeRTOS-PlusDemoFreeRTOSPlusTCPandFATATSAM4EDebugMakefile 912 Error unknown type name 'portTickType' RTOSDemo C:Users...FreeRTOSLabs160112FreeRTOS-PlusDemoFreeRTOSPlusTCPandFAT_ATSAM4EsrcASFthirdpartyfreertosfreertos-7.3.0sourceincludelist.h 109 ~~~

There are 11 additional similar errors since it doesn't seem to find the definition for portTickType which appears to be in portmacro.h.

The only changes I made so far were in the makefile to fix the case of the 'ftp_server.c' file:

~~~ compile srcFreeRTOS+TCPprotocolsFreeRTOSFTPserver.c ~~~

and modified the cycle_counter.c file to fix the 'undeclared s attribute' error:

~~~ attribute((optimize("Os"))) attribute ((section(".ramfunc"))) void portabledelaycycles(unsigned long n) ~~~

However I couldn't find any post relating to this portTickType error. Could any one suggest any solution so the project compiles properly with Atmel Studio 7? Let me know if you need more information.


RTOSDemo Build with Atmel Studio 7

Posted by rtel on August 20, 2016

Sorry I don't know what it is you are trying to compile. The error message is for an old FreeRTOS file that it is building in the src/ASF/thirdparty/freertos/freertos-7.3.0/source directory - that is where Atmel Studio will put FreeRTOS files if you have the Atmel Software Framework (ASF) add FreeRTOS to a project for you. However, the project on the page you link to does not do that, and instead includes a much newer version of FreeRTOS in the FreeRTOS/Source directory, as per the normal FreeRTOS distribution.

You should be able to download the FreeRTOS labs source files (which will be updated to a new version imminently), open FreeRTOS-PlusDemoFreeRTOSPlusTCPandFAT_ATSAM4ERTOSDemo.atsln solution file from within Atmel Studio, then build without any problems - and the file you are having a problem building in your first post is not part of that project.

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

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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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