Page 1 of 1

multi-files project with threads [Arduino]

Posted: Tue Dec 23, 2014 12:00 am
by Porcinet
Hi all,

Im interrested by someone who already did project with more than 1 file (.cpp) on arduino with ChibiOS.

My problem is that i cant share data between 2 threads on different file (extern doesnt change anything).
Compiler error : dataX undeclared on fileX ...
It works well with 1 file.

(sorry for my english)
Thanks !

Re: multi-files project with threads [Arduino]

Posted: Tue Dec 23, 2014 8:43 am
by Giovanni
This is not related to ChibiOS, probably your extern declarations are not placed appropriately and the compiler does not see them where the data is accessed.

Giovanni