First issue resolved - now there's an error when I try to verify in IDE

Evening all, first post here. I'm trying to use Arduino to flash my 3d printer (xyz davinci 1.0) with repetier but the Arduino software doesn't want to connect to the Arduino due inside the 3d printer. I'm following some fairly clear instructions on GitHub, which tell me to go to tools>board>Arduino due (native usb port), however this option isn't available in the drop-down. I've tried to add it by going to file>preferences>additional boards manager URLs, but any that I add in there (I'm not entirely sure which is the correct one) either don't make anything appear in the boards manager, or if they do, they come up with an error message when I try to install them. Any ideas what is going wrong here?

Thanks in advance

Fred

Hi, @fredsterrr
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

This will help with advice on how to present your code and problems.

What OS and IDE version are you using?


Tom.. :grinning: :+1: :coffee: :australia:

Thanks for the welcome!

I'm using Arduino 1.8.19, on windows 10 pro version 2.0.19.0

I should say tonight is my first venture into Arduinos, so I've got the sum total of about 4 hours experience with them!

Sorry I've just looked at your screenshot in detail - the 'arduino due (native)' option is the one I want, according to the GitHub instructions I'm following.

Hi,
Have you been able to load the DUE with any code?
Programming port is the usual one you use.

Tom... :grinning: :+1: :coffee: :australia:
PS I'm not familiar with 3d printer uploads.

Nope, haven't been able to make any connection with it. The two due options in your screenshot aren't showing on mine. Were they on yours by default or did you have to download them?

Right I'm typing from my laptop now so time for some screenshots:


Should there be some more options in here? Screenshots I've seen online have at least 2 or 3, is that by default or would they have been added in by the person using it?


Hope these help, let me know if there's anything else you want to see. Still got the new user, one image per post rule!

Fred

check this page Arduino duo install

Thanks, I've tried that, but when the download completes there are no additional options in the boards manager. The following text appears in the black box at the bottom of the IDE:

unknown protocol: c
unknown protocol: c
Error downloading https://downloads.arduino.cc/packages/package_index.json
Malformed Additional Board Manager URL 'C:\Users\fred.trevvett\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hardware\sam\1.6.8\variants\arduino_due_x': unknown protocol: c
Malformed Additional Board Manager URL 'C:\Users\fred.trevvett\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hardware\sam\1.6.8\cores\arduino\USB': unknown protocol: c
Could not find boards.txt in C:\Users\fred.trevvett\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hardware\sam\1.6.8. Is it pre-1.5?
WARNING: Error loading hardware folder C:\Users\fred.trevvett\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hardware\sam
No valid hardware definitions found in folder sam.
Malformed Additional Board Manager URL 'C:\Users\fred.trevvett\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hardware\sam\1.6.8\variants\arduino_due_x': unknown protocol: c
Malformed Additional Board Manager URL 'C:\Users\fred.trevvett\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hardware\sam\1.6.8\cores\arduino\USB': unknown protocol: c
Could not find boards.txt in C:\Users\fred.trevvett\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hardware\sam\1.6.8. Is it pre-1.5?
WARNING: Error loading hardware folder C:\Users\fred.trevvett\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hardware\sam
No valid hardware definitions found in folder sam.

Aha, interesting thing I just noticed, it would appear that there is a different procedure for boards developed by a third party, which mine clearly is. (Source: https://docs.arduino.cc/learn/starting-guide/cores) However, I've got no idea how to identify it, I'll post a pic in a minute from my phone. I have also found a list of links relating to third party boards, which can be plugged into the 'additional boards manager URLs' field in preferences. Hopefully once the board is identified I can just use one of them.

By the way, the github page I am following is GitHub - esp8266/Arduino: ESP8266 core for Arduino - just thought I'd post the link in case you can see any clues on there.

Thanks

Good news - I've installed Arduino 1.5.8 (this is what a guy was using on an old Youtube tutorial) and the Arduino DUE (Native USB Port) option is there!

However, I went to compile it, checked for errors and this came up:

Arduino: 1.5.8 (Windows 8), Board: "Arduino Due (Native USB Port)"

In file included from Repetier.h:572:0,
from BedLeveling.cpp:107:
HAL.h: In static member function 'static void HAL::serialSetBaudrate(long int)':
HAL.h:684:14: error: 'class UARTClass' has no member named 'setInterruptPriority'
Serial.setInterruptPriority(1);
^
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

Any ideas what might be causing this?

Update 08:23 GMT - I've hit my max number of replies in a day limit, all replies will be added to this post!

Thanks @srnet, but I've got rid of 1.8.19 now.

When I tried my portable IDE v 1.8.19 on a new Windows 10 laptop my DUEs were not detected when plugged into the programming port.

When the native port was connected the DUE was detected and from then on the programming port worked as well.