[SOLVED] Sanguino 1284p chip for Ender 2

For anyone hitting this after a google search. This is the most updated toolchain to date.

Installation

Ender 2 and Ender 3 settings for the MightyCore toolchain
Tools > Board > ATmega1284
Tools > Clock > External 16 Mhz
Tools > BOD > BOD v2.7 (for extra security)
Tools > Compiler LTO > LTO enabled (to reduce the binary size)
Tools > Variant > 1284P
Tools > Pinout > Sanguino
Tools > Bootloader > Yes (UART0)

You also need to manually workaround this issue (the comments have the fix)

#########################
######## Original post ########
About a year or more I used to download the Sanguino board support to add 1284p to the list, which in turn allowed me to upload the firmware to the Ender 2 3d printer. Today I tried to upgrade, downloaded arduino 1.8.9 and discovered this is no longer available (or I missed the step where I manually added it).

What's the recommended way of adding 1284p support to the boards?

I can't remember if I used to manually add it to the list of boards, and I found this alternative to add the support. Is not the old Sanguino 1284p board, but I guess it should work, and it looks to be way more updated too:

Is that repository be the best way to get the board support?

Thanks

1 Like

Here's how to install Sanguino:

  • File > Preferences
  • To the "Additional Boards Manager URLs" field, add https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json. If you have multiple URLs in the field, separate them with commas.
  • Click the "OK" button.
  • Tools > Board > Boards Manager
  • Wait for the downloads to finish.
  • Search for "sanguino".
  • Click on "Sanguino by Kristian Sloth Lauszus".
  • Click the "Install" button.
  • Wait for the installation to finish.
  • Click the "Close" button.

You will now see a Tools > Board > Sanguino menu item.

I see your edit now. MightyCore is definitely an excellent alternative to Sanguino. It has support for many configurations and microcontrollers other than the ATmega1284P and has been more actively developed than Sanguino. I definitely recommend it. The installation method is similar.

The newer library from MCUDude doesn't work with Marlin. First I had to manually define a macro ( _BV was not declared in this scope while trying to compile Marlin · Issue #147 · MCUdude/MightyCore · GitHub ) because there was some error, and then it simply wouldn't boot into the firmware.

I had to use this old library you suggested
https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json

I didn't change anything, I just switched the board from the one provided by MCUDude to the one from Lauszus, and it started working.

Thanks!

I don't know what you mean by "wouldn't boot into the firmware", but the problem might be that MightyCore by default uses the "standard" Arduino pin mapping, which is different from the pin mapping used by Sanguino. Luckily, you can just select Tools > Pinout > Sanguino before uploading the sketch to use the Sanguino pin mapping.

I didn't know. I will definitely test it the next time. I'm sure that's pretty much the main issue.
I tested the Sanguino, and it used 83% of the flash space, then switched to MightyCore, and it used 89% until I enabled LTO, which got the size down to 83%. So, space wise, they were pretty much the same.

Thank you very much!

pert:
I don't know what you mean by "wouldn't boot into the firmware", but the problem might be that MightyCore by default uses the "standard" Arduino pin mapping, which is different from the pin mapping used by Sanguino. Luckily, you can just select Tools > Pinout > Sanguino before uploading the sketch to use the Sanguino pin mapping.

This!!! Thank you!

I selected the Sanguino pinout for my Ender 2 3D printer, and it worked like a charm. The printer has been running fine since last night.
For anyone hitting this after a google search, the Ender 2 settings for the MightyCore toolchain are:
16 Mhz external crystal
LTO enabled to reduce the binary size
BOD v2.7: for security
Sanguino pinout

(It has been confirmed to work on Ender 3 too).

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

I want to control the oven with arduino uno r3 and I used LM35 as my sesnsor. every thing works good but the relay do not work ,it simply ON. can you help me to fix it.

PERT;
what do you do when the board manager can not find saguino? it fails with just sag...

just updated to IDE 1.8.12

...found it, you have to go to preferences and add this path to additional boards manager:

https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json

Flashing the bootloader - Bricked my printer?

After my first few prints I was really eager to install the Marlin firmware on my Ender 3 but alas it seems I am always out of luck with these things. I hereby ask your help.
I mainly followed this video. I've used the TH3D all in one package to do everything. I've followed every single thing that was said and done in this video and the TH3D one. Things go smoothly until I try to "Burn Bootloader" in the IDE. Here's the complete error that it is giving me:

Arduino: 1.8.7 (Windows 10), Board: "Sanguino 1284p, ATmega1284P (16 MHz)" :confused: