cyberrecon wrote on Saturday, August 20, 2016:
Hello,
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/FreeRTOS_CLI.o' failed RTOSDemo C:\Users\...\FreeRTOS_Labs_160112\FreeRTOS-Plus\Demo\FreeRTOS_Plus_TCP_and_FAT_ATSAM4E\Debug\Makefile 912
Error unknown type name 'portTickType' RTOSDemo C:\Users\...\FreeRTOS_Labs_160112\FreeRTOS-Plus\Demo\FreeRTOS_Plus_TCP_and_FAT_ATSAM4E\src\ASF\thirdparty\freertos\freertos-7.3.0\source\include\list.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 Include="..\..\Source\FreeRTOS-Plus-TCP\protocols\FTP\FreeRTOS_FTP_server.c">
<SubType>compile</SubType>
<Link>src\FreeRTOS+TCP\protocols\FreeRTOS_FTP_server.c</Link>
</Compile>
and modified the cycle_counter.c
file to fix the ‘undeclared s attribute’ error:
__attribute__((optimize("Os")))
__attribute__ ((section(".ramfunc")))
void portable_delay_cycles(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.
Thanks