0

We have worked with a company to design a custom board based on the Arduino Zero and have also had them do some programming for us.

In doing so, they have had to modify the following Arduino core libraries: variant.cpp, variant.h and wiring_analog.c.

Unfortunately, this causes problems with other projects using Arduino.

Is there a way to keep these libraries local to specific projects without modifying the original files?

  • you want to use the Arduino SAMD core with your board? create a board package which references the SAMD core – Juraj Jun 27 at 12:36
  • I'm wondering why they didn't define a new board type and use conditional compiling in the first place so that you could just use the new/modified files for everything. – st2000 Jun 27 at 12:36
  • for a mass sold board create a boards package for Boards Manager installation. For a customized board or a small series put the files in the hardware folder arduino.stackexchange.com/questions/54484/… – Juraj Jun 27 at 12:43
  • @Juraj - Yes, we are using the Arduino SAMD core (Arduino Zero Native USB). I will check out the link you provided. Thank you. – Jeff-Patriot Jun 27 at 12:49
  • it would be better to avoid the change in wiring_analog.c. what change is it? – Juraj Jun 27 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.