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] [February 2010 Threads] IAR AVR 5.40 warningPosted 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 warningPosted 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 warningPosted by Zal Zalak on February 6, 2010 The above change will not work !
please help me Mr barry.
RE: IAR AVR 5.40 warningPosted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|