Welcome! Log In Create A New Profile

Advanced

Sanguinololu 1.3a, Marlin 1.1.9

Posted by MKSA 
Sanguinololu 1.3a, Marlin 1.1.9
August 07, 2018 02:29AM
Early this year, under Arduino 1.8.6 I managed to compile, upload, run Marlin 1.1.8 on this old board.

Today, I wanted to give a try to 1.1.9 the last and final 8 bits Marlin. Using the same env., compilation of 1.1.9 it fails with this error:

Arduino: 1.8.6 Hourly Build 2018/01/03 03:33 (Windows 7), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

...
pins_RAMPS.h:48: error: #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."

#error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."

^

exit status 1
#error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."


Compilation of 1.1.8 in the same env, still works.
Had a quick look on the Marlin site but couldn't determine if this old board is still OK for 1.1.9.

Note I am not really using this board anymore, I use Smoothie but wanted to see the difference between the two controller/firmware on the same 3D printer. This helps distinguish issues due to the mechanic of the printer and the controller/firmware.


"A comical prototype doesn't mean a dumb idea is possible" (Thunderf00t)
Re: Sanguinololu 1.3a, Marlin 1.1.9
August 07, 2018 05:41AM
You did update #define MOTHERBOARD BOARD_SANGUINOLOLU_12

as I just cloned it and tried it and it still compiles. (after setting the board and MPU etc)
Re: Sanguinololu 1.3a, Marlin 1.1.9
August 07, 2018 12:10PM
Thanks.
Forgot to change that (and other stuff BTW). Even had to make again the downgrade of the upload speed !
My fault, I didn't document as I assumed there would be nothing after 1.1.8. Now it is OK.
As I said, I just put the Sanguino back to compare.

Edited 2 time(s). Last edit at 08/07/2018 03:42PM by MKSA.


"A comical prototype doesn't mean a dumb idea is possible" (Thunderf00t)
Re: Sanguinololu 1.3a, Marlin 1.1.9
December 12, 2018 05:23PM
Hi Guys.

For everyone who wanna upgrade the firmware in a 3D Printer with sanguinololu board.
Follow some tips.
-----------------------------------------------------------------------------------------
If you receive one error like this:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x40
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x40
-----------------------------------------------------------------------------------------

I believe that the problem is because some sanguinololu boards have old boot_loaders,
they can communicate in 115200 but can not upload at this speed.

To fix the communication problems you need change the upload speed for 57600.
===================================================================
Just go to the directory/file:
>> C:\Program Files (x86)\Arduino\hardware\Sanguino-master\avr\boards.txt
and change the upload speed in the line:
from:
>> sanguino.menu.cpu.atmega1284p_8m.upload.speed=115200
to:
>> sanguino.menu.cpu.atmega1284p_8m.upload.speed=57600

Attention:
=========================================================
1 - I believe you can update your boot_load to fix it, but it is another history.

2 - Do not change the directory/file:
>> C:\Program Files (x86)\Arduino\hardware\Sanguino-master\boards.txt
it will not fix the problem.

I spend almost a full day to fix it because the file above.
=========================================================

The software version:

Arduino IDE version 1.8.8 (https://www.arduino.cc/en/Main/Software)
Sanguino-master last version (https://github.com/Lauszus/Sanguino) (2018-12-12)
Marlin version 1.1.9 (http://marlinfw.org/meta/download/)

Arduino IDE setup:
> Tools
>> Board: "Sanguino"
>> Processor: "ATMega 1284 or AtMega 1284P (16 MHz)"
>> Port: "COM7" (for my board)
>> Programmer: "ArduinoISP"

Just do not forgive to hold the reset buttom in the sanguinololu board.
You need hold it pressed during the compilation process until the start of the upload process in the arduino IDE.
Worked for me.

Kind regards Juan.
Sorry, only registered users may post in this forum.

Click here to login