1

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?

6
  • you want to use the Arduino SAMD core with your board? create a board package which references the SAMD core Commented Jun 27, 2019 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. Commented Jun 27, 2019 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/… Commented Jun 27, 2019 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. Commented Jun 27, 2019 at 12:49
  • 1
    @Juraj - I am not sure what changes were made. I have sent an email to the Software Engineer to inquire. I'll report back when I know. Commented Jun 27, 2019 at 13:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.