• AVR Freaks

Helpful ReplyLockedError in V1.22 and not in V1.21

Author
picy2620
Senior Member
  • Total Posts : 110
  • Reward points : 0
  • Joined: 2009/11/13 08:12:47
  • Location: Germany
  • Status: offline
2013/11/01 04:20:29 (permalink)
5 (1)

Error in V1.22 and not in V1.21

Hello everyone,
 
if i compile my freeRTOS code (7.5.0) or the demo example, in XC32 V1.22 there is the error: (which is not in V1.21)
 
AppData\Local\Temp\ccEdIr6h.s: Assembler messages:
AppData\Local\Temp\ccEdIr6h.s: Error: .size expression for xPortStartScheduler does not evaluate to a constant
make[2]: *** [build/default/production/port_asm.o] Error 1
 
the relating code in port_asm.S:
 
  .set  noreorder
 .set   noat
  .ent  xPortStartScheduler
vPortStartFirstTask:
 /* Simply restore the context of the highest priority task that has been
 created so far. */
 portRESTORE_CONTEXT
 .end xPortStartScheduler
 
The function is declared : portBASE_TYPE xPortStartScheduler( void ) PRIVILEGED_FUNCTION;
In the release readme of the XC32, there is no information about this new error.
Has anyone else this error and maybe a solution?
 
thanks for your help!
#1
M@rcel
Senior Member
  • Total Posts : 51
  • Reward points : 0
  • Joined: 2004/05/03 11:53:07
  • Status: offline
Re:Error in V1.22 and not in V1.21 2013/11/01 04:53:24 (permalink)
+1 (1)
fwiw:
 
FreeRtos V7.5.2 (using pic32MX795F512H) compiles and runs just fine using XC32 v1.22.
#2
picy2620
Senior Member
  • Total Posts : 110
  • Reward points : 0
  • Joined: 2009/11/13 08:12:47
  • Location: Germany
  • Status: offline
Re:Error in V1.22 and not in V1.21 2013/11/01 07:26:20 (permalink)
+1 (1)
i have moved to 7.5.3 and the error went away. I dont know what exactly
was going on.
 
thanks Marcel
#3
M@rcel
Senior Member
  • Total Posts : 51
  • Reward points : 0
  • Joined: 2004/05/03 11:53:07
  • Status: offline
Re:Error in V1.22 and not in V1.21 2013/11/01 09:49:31 (permalink)
+1 (1)
picy2620

i have moved to 7.5.3 and the error went away. I dont know what exactly
was going on.

thanks Marcel
Thank you for the feedback :)

#4
just4u78
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2013/11/27 08:41:19
  • Location: 0
  • Status: offline
Re:Error in V1.22 and not in V1.21 2013/11/27 08:52:30 (permalink) ☄ Helpfulby aminos 2014/05/27 07:42:13
+3 (3)
Modify port_asm.s as follow
 
------------------------------------------------------------------------------------------------
.set  noreorder
.set   noat
 .ent  xPortStartScheduler → vPortStartFirstTask
vPortStartFirstTask:
portRESTORE_CONTEXT
.end xPortStartSchedulervPortStartFirstTask
--------------------------------------------------------------------------------------------------
#5
UFAnders
New Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2010/05/28 10:28:11
  • Location: San Francisco
  • Status: offline
Re:Error in V1.22 and not in V1.21 2014/01/27 14:11:58 (permalink)
0
I can confirm this fixes the issue for me! I'm running XC32 v1.31 and FreeRTOS 7.1.0.
 
=D

--
Anders Nelson
Microchip FAE 2008-2011
#6
Jump to:
© 2019 APG vNext Commercial Version 4.5