Page 1 of 1

error message while compiling for arduino mikro (leonardo)

Posted: Wed Aug 19, 2020 2:15 pm
by cappy0815
Hi all,

I am new at oXs and about to learn how to handle all that stuff.

My first project is a 4S LiPo sensor for my FrSky system.
First steps worked well unti I destroyed my test arduino mini pro.

Expected a bunch of more arduinos in my scratch box, I had to learn, there are only arduino micros (leonardo type)

So far ... so goog ... not a problem at all.

But while compiling I got an error message which turns out something is not declared.
I did not understand everything but it seems a timer is missing on this creepy board?

The message output is attached to this post.

Does anybody know what to do?

Thanks a lot
Cappy

Re: error message while compiling for arduino mikro (leonardo)

Posted: Wed Aug 19, 2020 5:37 pm
by mstrens
oXs needs an AVR328p processor. It is used on Uno, nano, pro mini but not on leonardo.

Re: error message while compiling for arduino mikro (leonardo)

Posted: Sat Oct 23, 2021 1:01 pm
by zatalian
I'm willing to give this a try... the compile errors are not that hard to correct. PCIF2 & PCIE2 should be replaced with PCIF0 en PCIE0 for the atmega32u4. If you want to debug you need to replace HardwareSerial with Stream...
I got to the point that i see some voltage readings in the serial monitor. Next i'm going to put together a real hardware setup with a frsky X receiver and see if it really works