Open RossAWaddell opened 2 years ago
Same error here with an atmega 168PA
@RossAWaddell , @AndresBefaco - Please tell me which board you have selected in the Tools > Boards menu. If you added a custom URL in File > Preferences and then used Boards Manager to install a package which provides that board, I need those details so I can install the same thing here, so I can reproduce the problem.
@PaulStoffregen I was able to resolve the compile issue based on info from the Pololu forum:
The latest version of our A-Star board configuration no longer configures GCC to compile for the ATmega328P, but instead configures it to compile for the ATmega328PB. Unfortunately, if you try to install TimerOne using the library manager, you will get an older version (1.1) which does not support the ATmega328PB.
The latest version of the TimerOne library available on GitHub does seem to support the ATmega328PB. You can download it and copy it manually into your Arduino libraries folder to use it.
I manually downloaded the latest version of your library and that resolved the compile error.
But to answer your questions:
I don't think I installed a package to add the Pololu A-Star boards, but they do now show up separately under Tools > Boards
@PaulStoffregen I used MiniCore by MCUDude: https://github.com/MCUdude/MiniCore Board168PA 16mhz external clock We also has been trying the 328PB for another project using the TimerOne library with the same compile error. I will see if this is a library version issue as was the case for @RossAWaddell
Just tried the library update and now it compile with no issue, both the atmega 168PA and 328PB. Thanks
I made a mistake, I was compiling the wrong code. Now I can compile only with the A-star Pololu board definition with the 328PB but it didn't with the MiniCore 168PA and 328PB boards. So maybe the issue is on the MiniCore board definition.
I have two machines each with Arduino IDE v1.8.13 but only on one did I allow it to update the board info (I was prompted to so when starting up the Arduino IDE) and I now get a compile error with a very simple sketch:
Sketch
Error message: