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 !
multi-files project with threads [Arduino]
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: multi-files project with threads [Arduino]
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
Giovanni