Page 1 of 1

chibios with arduino uno

Posted: Tue Apr 25, 2017 12:24 am
by hackem
i am windows user. and i m trying to make chibios on arduino uno with Chibios Studio

1) i found a demos on chibios/demo/AVR/ but i don't know how to try it ...


2) under linux i compile it by using command "make"
and after i can't flash it to arduino by "make program" , it doesn't work with usb cable ...


how can i resolve this ..

Re: chibios with arduino uno

Posted: Tue Apr 25, 2017 5:25 pm
by hackem
It's work on linux whit help on IRC channel

1) go to the demos
2) compile whith make
3) flash the arduino uno with make program
When the problem is : can't open device "/dev/ttyACM0
Change the makefile to the device to your arduino device

And it's done

Re: chibios with arduino uno

Posted: Tue Apr 25, 2017 7:47 pm
by tfAteba
Hi again,

Sorry for this evening, I had to leave the IRC because I went to a meating.

Effectively, you had the good reflex, the name of an USB device can differ from a computer to another ( /dev/ttyUSB0, /dev/ttyACM0 and so on...)

The last thing, I will soonly remove all warning that you have seen during the compilation.

Do not hesitate if you have any question.

Re: chibios with arduino uno

Posted: Wed Apr 26, 2017 3:47 pm
by hackem
Thinks ...
It works also with ChibiOS-Arduino https://github.com/greiman/ChibiOS-Arduino with modifying libraries/ChibiOS_AVR/src/utility/chthreads.c at line 397.
Replacing :
void chThdExit(msg_t msg) attribute((used));
With
void chThdExit(msg_t msg) __attribute__((used));

And it's easy to understand exemples

Re: chibios with arduino uno

Posted: Wed Apr 26, 2017 7:50 pm
by tfAteba
Hi Hackem,

Thanks you for your feedback.

I made modification to remove all warning that was appearing during compilation.

So you can update chibios sources! :)