cancel
Showing results for 
Search instead for 
Did you mean: 

undefined reference to `osalThreadSleepS'

berardo
Associate II
Posted on October 31, 2013 at 12:20

Hello,

i have a question.

Bulding CAN code based on example for SPC56ELx produce this error:

build/obj/can.o: In function `canStart':

can.c:(.text_vle.canStart+0x2c): undefined reference to `osalThreadSleepS'

collect2: ld returned 1 exit status

make: *** [build/out.elf] Error 1

CAN configuration it is same that example.

But i have added Chibios.

I have replaced osalThreadSleepS(1) with osalThreadSleepSeconds(1) in :

C:\SPC5Studio\eclipse\plugins\org.chibios.spc5.components.spc5hal_1.0.0.201310031641\component\lib\src

But it seem  not correct.

Why compiler don't find function

osalThreadSleepS

?  there are conflicts with Chibios?

#osalthreadsleeps #can
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on November 08, 2013 at 10:18

Hello,

Thanks for reporting, it is a confirmed bug, the problem will be fixed in next release.

The workaround is to edit the file C:\SPC5Studio\eclipse\plugins\org.chibios.spc5.components.osal.spc56elxx_1.0.0.xxxxx\component\lib\src\osal.c

And change

inline void osalThreadSleepS(systime_t time) {

with

void osalThreadSleepS(systime_t time) {

Giovanni

View solution in original post

1 REPLY 1
Posted on November 08, 2013 at 10:18

Hello,

Thanks for reporting, it is a confirmed bug, the problem will be fixed in next release.

The workaround is to edit the file C:\SPC5Studio\eclipse\plugins\org.chibios.spc5.components.osal.spc56elxx_1.0.0.xxxxx\component\lib\src\osal.c

And change

inline void osalThreadSleepS(systime_t time) {

with

void osalThreadSleepS(systime_t time) {

Giovanni