SparkFun SAMD21 Mini Compilation issue

Hi guys,

I am trying to compile Christopher Schirner's PPMEncoder (Arduino library) for my new SparkFun SAMD21 Mini Breakout board.
My Arduino IDE version is v 1.8.19 and my OS is Win 10.

As indicated by SparkFun
(SAMD21 Mini/Dev Breakout Hookup Guide - SparkFun Learn)

I have:

  • installed the Arduino SAMD Boards (32-bits ARM Cortex-M0+) in the Boards Manager v 1.8.12
  • copied the Additional Boards Manager URL in the text box
  • installed SparkFun SAMD Boards in the Boards Manager v 1.8.2

Interestingly enough, I have two possibilties for the choice of the board:
(1) Sparkfun SAMD (32-bits ARM Cortex-M0+) Boards / SparkFun SAMD21 Mini Breakout
or
(2) Sparkfun SAMD (32-bits ARM Cortex-M0+) Boards (in sketchbook) / SparkFun SAMD21 Mini Breakout

  • If I choose board (1) the compiler does not recognise the register names TCNT1, OCR1A, etc...
  • if I choose board (2) the compiler cannot find the sam.h file

What should I do?

Thank you for the help.
Paul

Please provide the link to the library.
According to Arduino Library Reference the library is not supports SAMD21 boards:

Those sound like internal registers of one of the AVR chips. You're not using one of those chips. Maybe Christopher Schirner's PPMEncoder (Arduino library), whatever that is, is not compatible with SAMD21 chips?

From @b707 's link above:

This library is compatible with the avr architecture

SAMD21 is not an AVR chip. AVR chips are 8-bit chips designed by ATMEL:

SAMD21 is a 32-bit chip, also designed by ATMEL, but based on ARM designed CPU.

Hi b707. Thank you for your answer. Do you know where I can find a program that encodes a PPM signal compatible with the SAMD21 ?

Thanks Paul.

Unfortunately I don't know

No problem, I found one.Thanks for having spent some of your time guiding me.
Regards,
Paul

You should share a link to the library you found. Other forum members in the future with the same problem would benefit.