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

IAR AVR 5.40 warning

Posted by Zal Zalak on February 3, 2010
Hello

I compiler freeRTOS demo project for AVR with IAR ver 5.40 ,but the compiler generates 1 warning at line 422 of tasks.c file:
pxTopOfStack = ( portSTACK_TYPE * ) ( ( ( unsigned long ) pxTopOfStack ) & ( ( unsigned long ) portBYTE_ALIGNMENT_MASK ) );

this is warning message of compiler:
Warning[Pe1053]: conversion from integer to smaller pointer E:\freeRTOS_AVRProj\freeRTOS\tasks.c 422

Please help me to edit this line and file for removing this warning.

best regards
Zal




RE: IAR AVR 5.40 warning

Posted by MEdwards on February 3, 2010
Try changing the tow (unsigned long) casts to (unsigned portSTACK_TYPE) or just (portSTACK_TYPE) if it is already unsigned. Post back if this works or not.

RE: IAR AVR 5.40 warning

Posted by Zal Zalak on February 6, 2010
The above change will not work !

please help me Mr barry.




RE: IAR AVR 5.40 warning

Posted by Bernardo on February 9, 2010
To solve it you can cast to unsigned int instead of unsigned long, it works and it should be correct because pointers are two bytes in size, as so the correct cast is to a two-byte wide type.


[ 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