Ultratronics V1 Pro - Ardunio Due for Repetier (Programming Port) - Compilation errors

Windows 10, Arduino 1.6.13, SAMS 1.6.11 installed, modified boards.txt and variants added to folder shown in readme.txt. Repetier Firmware Configutator 1.0.0dev (https://www.repetier.com/firmware/dev/index.php).

Board selected as above, COM7 Programming Port. Compilation errors are:-

C:\Users\#####\AppData\Local\Temp\arduino_build_783006/core\core.a(wiring_analog.c.o): In function `analogWrite':

C:\Users\#####\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/wiring_analog.c:349: undefined reference to `g_pinStatus'

C:\Users\#####\AppData\Local\Temp\arduino_build_783006/core\core.a(wiring_digital.c.o): In function `pinMode':

C:\Users\#####\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/wiring_digital.c:82: undefined reference to `g_pinStatus'

C:\Users\#####\AppData\Local\Temp\arduino_build_783006/core\core.a(wiring_digital.c.o): In function `digitalWrite':

C:\Users\#####\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/wiring_digital.c:113: undefined reference to `g_pinStatus'

C:\Users\#####\AppData\Local\Temp\arduino_build_783006/core\core.a(wiring_digital.c.o): In function `digitalRead':

C:\Users\#####\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/wiring_digital.c:136: undefined reference to `g_pinStatus'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Due for Repetier (Programming port).

Tried with #define FEATURE_WATCHDOG 1 and 0 in configuration.h no difference.

When I use Ardunio Due (Programming Port) I have no issues.  Pointers please...


Comments

  • Looks like the issue has been located, again, can't claim any credit other than asking the question slightly differently.


    Further to that, the following line needs to be added to C:\Users\#####\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.#\variants\arduino_due_reptier\variants.cpp to make it the same as the arduino_due_x\variants.cpp

    Line 295 uint8_t g_pinStatus[PINS_COUNT] = {0};                        /// Added 

  • I see that newer Arduino version need that, while my version is a older copy. Have added it for next update.

    But there is no need any more to use that version on current arduino versions. Only reason was watchdog and that is now universal covered in arduino.
Sign In or Register to comment.