greiman / ChRt

ChibiOS/RT for Arduino AVR, SAMD, Due, Teensy 3.x, Teensy 4.0.
88 stars 26 forks source link

Both ChRt.c and ChRt.cpp in src ? (makes Atmel Studio failing) #5

Closed PhiJu5 closed 6 years ago

PhiJu5 commented 6 years ago

In Arduino world, a .c file is ignored. Removing ChRt.c from src, ChBlink builds and run in Arduino IDE. Import ChBlink in Atmel Studio works only if the (not usefull ?) ChRt.c is removed before import (because Atmel sutdio does handle both .c and .c++ files). Regards.

greiman commented 6 years ago

ChRt.c is not ignored by the Arduino IDE. Any program will run without ChRt.c since it only provides LED blink codes for Hard faults, Bus erors, and Usage faults.

It is mostly helpful during my debug.

I may rename it in the future.