Sanguino install help needed

So im trying to install a bootloader on an ender 3 printer. what i need to do is this. 1. use ex sketch arduino isp 2. add u8glib library 3. add sanguino board 4. hook up the arduino 5. select uno as the board(Im confused as to why i had to upload the sanguino board, but then select the uno board. Ive checked 3 places and these are the proper instructions) and select the com port the board is on 6. upload sketch

So ive tried this a bunch of different ways.

win 8.1 ide v 1.8.1 I get to step 6 and i get an error about failing to write to device. This computer has issues seeing devices on windows. I recently broke 2 other computers in the last couple of weeks and dont have another atm.

Ubuntu 18.04 ide v 1.8.1 I get to step 3 where i add the github link for the sanguino board (https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json) and click ok. Then when I goto board manager where in windows the sanguino board appears in the drop down window in ubuntu it doesnt appear.

Ubuntu 18.04 ide 1.0.5(Ive done research and seen people attempting to upload the bootloader have success using this version of the ide rather than the newest version) In preferences there is no option to add a new board. so i cant figure out how to add the sanguino board.

PLS HELP

boxeddroid: Ubuntu 18.04 ide v 1.8.1 I get to step 3 where i add the github link for the sanguino board (https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json) and click ok. Then when I goto board manager where in windows the sanguino board appears in the drop down window in ubuntu it doesnt appear.

After that happens and you click the "Close" button, do you see error messages in the black console pane at the bottom of the Arduino IDE window?

Disclamer: no experience with Ender3 printer and also not with Sanguino

Step 2 is strange; you do not need that library to upload a boot loader. It's only for sketches.

So I would (assuming the sanguino is the target) a) Use the Arduino ISP sketch and upload it to the Uno b) step 3 c) connect Uno and Sanguino via ICSP d) select ArduinoISP under tools -> programmer e) select sanguino under tools -> board f) connect the Uno to the PC g) select the Uno port under tools -> port h) select tools -> burn boot loader

Note *) If you want to upload a sketch via ICSP, only step (g) changes; use sketch -> upload using programmer. You will probably need the library for that. *) In future, please provide links to the instructions that you found. That way we can check what the intention is.

no error message when i click ok in preferences

sterretje: Disclamer: no experience with Ender3 printer and also not with Sanguino

Step 2 is strange; you do not need that library to upload a boot loader. It's only for sketches.

So I would (assuming the sanguino is the target) a) Use the Arduino ISP sketch and upload it to the Uno b) step 3 c) connect Uno and Sanguino via ICSP d) select ArduinoISP under tools -> programmer e) select sanguino under tools -> board f) connect the Uno to the PC g) select the Uno port under tools -> port h) select tools -> burn boot loader

Note *) If you want to upload a sketch via ICSP, only step (g) changes; use sketch -> upload using programmer. You will probably need the library for that. *) In future, please provide links to the instructions that you found. That way we can check what the intention is.

Sorry what is ICSP? Do you think you could give me a link about how to do this? I just happened to have bought an arduino 12 years ago and used it once or twice and just had it when i seen i needed it to install the firmware. https://m.all3dp.com/2/ender-3-with-marlin-how-to-install-marlin-firmware-on-your-ender-3/ Ive checked several different sites and they all use the same steps

boxeddroid:
no error message when i click ok in preferences

That’s not what I asked about.

Please do this:

  • Close all Arduino IDE windows.
  • Start the Arduino IDE.
  • Tools > Board > Boards Manager
  • Wait for all downloads to finish.
  • Confirm that Sanguino is not shown in the list of available boards platforms (make sure to scroll all the way through the list).
  • Click the “Close” button.
  • Click on the black console window at the bottom of the Arduino IDE window.
  • Press Ctrl+A to select all the text.
  • Press Ctrl+C to copy the selected text to the clipboard.
  • Paste the copied text into a reply here, using code tags (</> button on the toolbar).

That might provide some information that we can use to help you.

boxeddroid: Sorry what is ICSP? Do you think you could give me a link about how to do this? I just happened to have bought an arduino 12 years ago and used it once or twice and just had it when i seen i needed it to install the firmware. https://m.all3dp.com/2/ender-3-with-marlin-how-to-install-marlin-firmware-on-your-ender-3/ Ive checked several different sites and they all use the same steps

boxeddroid: 5. select uno as the board(Im confused as to why i had to upload the sanguino board, but then select the uno board. Ive checked 3 places and these are the proper instructions) and select the com port the board is on

Because you're using an Arduino Uno as an "Arduino as ISP" programmer to upload the firmware to your 3D printer board. You're uploading the ArduinoISP sketch to the Uno, not to the 3D printer, so you need to select Uno when uploading to the Uno.

When you get to the step where you're using the Uno to upload to the 3D printer, then you will select the Sanguino board.

boxeddroid: Sorry what is ICSP? Do you think you could give me a link about how to do this? I just happened to have bought an arduino 12 years ago and used it once or twice and just had it when i seen i needed it to install the firmware. https://m.all3dp.com/2/ender-3-with-marlin-how-to-install-marlin-firmware-on-your-ender-3/ Ive checked several different sites and they all use the same steps

OK, so now we're talking firmware which is not the same as boot loader; see my first note.

Some links: https://www.arduino.cc/en/tutorial/arduinoISP

On the page that you linked is an image (https://i.all3dp.com/cdn-cgi/image/fit=scale-down,w=686,gravity=0.5x0.5,format=auto/wp-content/uploads/2019/02/08142633/this-diagram-shows-pin-outputs-instructables-190121_download3.jpg, not my image so not showing it here) that shows the ICSP header with pin descriptions.

pert:
That’s not what I asked about.

Please do this:

  • Close all Arduino IDE windows.
  • Start the Arduino IDE.
  • Tools > Board > Boards Manager
  • Wait for all downloads to finish.
  • Confirm that Sanguino is not shown in the list of available boards platforms (make sure to scroll all the way through the list).
  • Click the “Close” button.
  • Click on the black console window at the bottom of the Arduino IDE window.
  • Press Ctrl+A to select all the text.
  • Press Ctrl+C to copy the selected text to the clipboard.
  • Paste the copied text into a reply here, using code tags (</> button on the toolbar).

That might provide some information that we can use to help you.

Thank you. This managed to get the sanguino board installed. I try to compile the sketch onto the uno and i get the same error message as on windows.
Arduino: 1.8.10 (Linux), Board: “Arduino Uno”

/home/sean/arduino-1.8.10/arduino-builder -dump-prefs -logger=machine -hardware /home/sean/arduino-1.8.10/hardware -hardware /home/sean/.arduino15/packages -tools /home/sean/arduino-1.8.10/tools-builder -tools /home/sean/arduino-1.8.10/hardware/tools/avr -tools /home/sean/.arduino15/packages -built-in-libraries /home/sean/arduino-1.8.10/libraries -libraries /home/sean/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=067B_2303 -ide-version=10810 -build-path /tmp/arduino_build_757955 -warnings=none -build-cache /tmp/arduino_cache_773196 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/sean/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/sean/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=/home/sean/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/sean/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/sean/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/sean/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/sean/arduino-1.8.10/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
/home/sean/arduino-1.8.10/arduino-builder -compile -logger=machine -hardware /home/sean/arduino-1.8.10/hardware -hardware /home/sean/.arduino15/packages -tools /home/sean/arduino-1.8.10/tools-builder -tools /home/sean/arduino-1.8.10/hardware/tools/avr -tools /home/sean/.arduino15/packages -built-in-libraries /home/sean/arduino-1.8.10/libraries -libraries /home/sean/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=067B_2303 -ide-version=10810 -build-path /tmp/arduino_build_757955 -warnings=none -build-cache /tmp/arduino_cache_773196 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/sean/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/sean/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=/home/sean/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/sean/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/sean/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/sean/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /home/sean/arduino-1.8.10/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
Using board ‘uno’ from platform in folder: /home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3
Using core ‘arduino’ from platform in folder: /home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3
Detecting libraries used…
/home/sean/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/variants/standard /tmp/arduino_build_757955/sketch/ArduinoISP.ino.cpp -o /dev/null
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
→ candidates: [SPI@1.0]
/home/sean/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/variants/standard -I/home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/SPI/src /tmp/arduino_build_757955/sketch/ArduinoISP.ino.cpp -o /dev/null
/home/sean/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/variants/standard -I/home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/SPI/src /home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/SPI/src/Sultiple libraries were found for “SPI.h”
Used: /home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/SPI
Using library SPI at version 1.0 in folder: /home/sean/.arduino15/packages/arduino/hardware/avr/1.8.3/libraries/SPI
/home/sean/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-size -A /tmp/arduino_build_757955/ArduinoISP.ino.elf
Sketch uses 4354 bytes (13%) of program storage space. Maximum is 32256 bytes.
Global variables use 482 bytes (23%) of dynamic memory, leaving 1566 bytes for local variables. Maximum is 2048 bytes.
/home/sean/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/home/sean/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/tmp/arduino_build_757955/ArduinoISP.ino.hex:i

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is “/home/sean/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf”
User configuration file is “/home/sean/.avrduderc”
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/ttyUSB0
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can’t open device “/dev/ttyUSB0”: Permission denied
An error occurred while uploading the sketch

avrdude done. Thank you.

Looks like progress!

Try this: https://www.arduino.cc/en/guide/linux#toc6