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

Problem With FreeRTOS V9.0 and Demo CORTEX_M4F_ATSAM4E_Atmel_Studio

Posted by redhunt on April 24, 2017

Hello.

I'm developing with Atmel SAM4E-EK (I bought the EK). When I opened the Demo that include FreeRTOS V9.0 of this Evaluation Kit and I compiled and it runs well.

After I modify ethernet Tasks and runs all ok. But when I add any ASF component From ASF Wizard, like UART (STDIO ASF) or TWI in the time to compile always throw me errors. If i remove the ASF component added it compiles ok again. I test all the things and I searched in google anything that it's help me but I donĀ“t know what to do. Can anyone test this thing and tell me if it's runs ok??.

Note: At the moment of add or remove any component must be commented line #include of the file asf.h or remove ASF component "Raw Ethernet MAC", because the PHY ethernet MAC is include in ASF Ksz8051mnl component.

The error of Atmel Studio are "unknown type name 'portBASE_TYPE'" and others but i think all errors come from this error. This type is in "portmacro.h" but the include folder and all references is include in project. The most rare thing is when remove the new ASF component all runs well again.

Thanks for you support.

Best Regards.


Problem With FreeRTOS V9.0 and Demo CORTEX_M4F_ATSAM4E_Atmel_Studio

Posted by rtel on April 24, 2017

That error can occur if FreeRTOS header files are included in the wrong order: FreeRTOS.h must always be included before task.h, queue.h, etc. and FreeRTOSConfig.h and portmacro.h must NEVER be included manually (they are included in the correct order within FreeRTOS.h).

FreeRTOS is part of the ASF, but your project already has it included, so make sure you are not accidentally bringing in a second copy of FreeRTOS when you add the ASF components.

Are any of the ASF components you are bringing in using FreeRTOS too? I would suggest bringing in the ASF components one at a time until you find the one that is causing the problem.


Problem With FreeRTOS V9.0 and Demo CORTEX_M4F_ATSAM4E_Atmel_Studio

Posted by redhunt on April 24, 2017

Hi again.

Thanks for your quick response. I only add the ASF STDIO and it fails. I revised all includes and i thinks all is OK. I removed this ASF and compiled ok. I test with ASF USART and it fail in the same point. I will try again, and if I found something I post here. Thanks.

Best Regards.


Problem With FreeRTOS V9.0 and Demo CORTEX_M4F_ATSAM4E_Atmel_Studio

Posted by redhunt on May 1, 2017

Hi again

I found the issue few days before, but I didn't have time to publish the issue. I found that in the moment of compile time the error comes from a file called "serial.h" and the ASF component add other file called "serial.h" for use the UART or USART. The file called "serial.h" located in "FreeRTOSv9.0.0FreeRTOSDemoCommoninclude" is in conflict with the file added for ASF component "serial.h". If you rename or remove file "serial.h" included in Common include of FreeRTOS the Software compiles and run OK.

How I don't use this file I can remove it and all runs ok with UART from ASF component.

Is it the file important for other thing?? or Can I remove safely this file??

Best Regards.


Problem With FreeRTOS V9.0 and Demo CORTEX_M4F_ATSAM4E_Atmel_Studio

Posted by rtel on May 1, 2017

It can be removed.


[ 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