Welcome! Log In Create A New Profile

Advanced

Ender 3 firmware flash problem.

Posted by dlw 
dlw
Ender 3 firmware flash problem.
September 12, 2018 12:02PM
When verifying the latest Ender 3 firmware from GitHub, the following error occurs:

Exit status 1
Error Oops! Make sure you have Sanguino selected from the tools menu.

However, there is no Sanguino listed.

Any ideas on solving this?
Re: Ender 3 firmware flash problem.
September 12, 2018 07:46PM
Sanguino is an add on, you have to install it see [dustsreprap.blogspot.com]

But be warned the ender3 has no bootloader, so you need hardware to write one see [www.youtube.com]
(NB you can use any arduno as an avrisp, most use an uno)
dlw
Re: Ender 3 firmware flash problem.
September 13, 2018 02:16PM
Thank you for replying.

Do not understand.
The firmware download from Crealty is suppose to be 'stock'.
If so, all firmware needed should be included.

Anyway, found a site that demonstrates how to add bootloader and flash firmware.

However, the problem is, the printer is not working at the present.
I need it ASAP. Any ideas on where to find the 'stock' firmware for an Ender 3?

dlw
Re: Ender 3 firmware flash problem.
September 13, 2018 10:05PM
The ardunio IDE only comes with support for the most common of cpus, the Sanguino is a add on. Without this addon you cannot compile the code for the Sanguino chip (such as the 644p and the 1284p, lhe latter of which is on the ender 3

The firmware is stock, the IDE is a tool from ardunio and needs additional components. The additional component are not firmware. they are details about the chip your compiling for.

Ender 3 firmware

NB you see in this directory a hex file. this is the already complied binary. If you don't want to make any changes you can just upload this. (this requires using command line tools and having a avrisp )


NB there is a thing called TH3D Unified Firmware Package, this is provided by someone else and comes with the ardunio IDE already pre-configured, but this is no longer the stock firmware.
Maybe you would have better luck with this.

Edited 3 time(s). Last edit at 09/13/2018 10:07PM by Dust.
dlw
Re: Ender 3 firmware flash problem.
September 14, 2018 04:20PM
W10, Device Manager does not recognize Ender 3.
Having no luck finding a driver.

Please help.

dlw
Re: Ender 3 firmware flash problem.
September 14, 2018 09:14PM
The BOM lists it as having a FT232RL usb/serial converter

Windows 10 should have that already installed....

The drivers can be found here [www.ftdichip.com]
In particular Driver Setup exe in a zip

If this doesnt work, check what the device ID and vendor ID is in device manager see [www.youtube.com] for how.

Edited 2 time(s). Last edit at 09/15/2018 01:12AM by Dust.
dlw
Re: Ender 3 firmware flash problem.
September 18, 2018 01:04PM
Completed the above.

Device Manager list the printer on COM14.
As does Arduino.

TH3D-Marlin-1.1.* compiles OK. Can not connect to printer. No serial port.
TH3D list the port as '0' in config h. Changing to '14' did not help.

Any ideas on how to solve this?

Edited 1 time(s). Last edit at 09/18/2018 01:05PM by dlw.
Re: Ender 3 firmware flash problem.
September 18, 2018 01:27PM
"Device Manager list the printer on COM14."
so windows 10 does see it. Does device manager show it as working or is there a yellow triangle icon with a "!" on the device?

"TH3D list the port as '0' in config h. Changing to '14' did not help."
this is the arduno serial port, do not change it from 0, It shouldn't even compile when higher than 4.
dlw
Re: Ender 3 firmware flash problem.
September 18, 2018 02:42PM
No yellow marks.

Changed config h back to '0'.

Below are the error messages when sending to printer.

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 53720 bytes (21%) of program storage space. Maximum is 253952 bytes.
Global variables use 2612 bytes (31%) of dynamic memory, leaving 5580 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't open device "\\.\COM8": The system cannot find the file specified.


avrdude: ser_drain(): read error: The handle is invalid.


avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
the selected serial port avrdude: stk500v2_ReceiveMessage(): timeout
does not exist or your board is not connected
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Re: Ender 3 firmware flash problem.
September 19, 2018 12:39AM
so say the printer is on COM14 but you have the ardunio IDE talking to COM8
dlw
Re: Ender 3 firmware flash problem.
September 19, 2018 01:18PM
Arduino 1.8.5, Tools, Port, reads COM14.

How to change to port COM8 and where?

Was told not to change configuration h.

Edited 1 time(s). Last edit at 09/19/2018 01:19PM by dlw.
Re: Ender 3 firmware flash problem.
September 19, 2018 09:27PM
Something is screwy then

As "Arduino 1.8.5, Tools, Port" is the one.

But the error message clearly says COM8
Quote
Arduino
Sketch uses 53720 bytes (21%) of program storage space. Maximum is 253952 bytes.
Global variables use 2612 bytes (31%) of dynamic memory, leaving 5580 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't open device "\\.\COM8": The system cannot find the file specified.
dlw
Re: Ender 3 firmware flash problem.
September 19, 2018 10:20PM
Trying to install stock firmware.
Same error as before: no Sanguino.
Trying to install Sanguino from the site below. Does not work.

[dustsreprap.blogspot.com]
Re: Ender 3 firmware flash problem.
September 19, 2018 11:28PM
Well considering I wrote that blog and know it works well.... I can only presume operator error

Please document step but step how you installed the Sanguino extentions, with pictures

make sure to include images of your ardunio "File|Preferences" page
also launch the board manager "Tools|Board|Boards Manger" enter sang into the "filter your search" window
it should say Sanguino installed.
dlw
Re: Ender 3 firmware flash problem.
September 21, 2018 06:33PM
You are correct; operator error.
Here are the photos.
Attachments:
open | download - 20180921_150155.jpg (139.1 KB)
open | download - 20180921_150312.jpg (170.8 KB)
open | download - 20180921_150618.jpg (187.5 KB)
open | download - 20180921_151041.jpg (179 KB)
open | download - 20180921_151448.jpg (183.6 KB)
dlw
Re: Ender 3 firmware flash problem.
September 21, 2018 06:44PM
This is the new error message.
Attachments:
open | download - Capture 6.PNG (43.1 KB)
Re: Ender 3 firmware flash problem.
September 21, 2018 10:17PM
going in circles...

make sure you have the Sanguino board selected in the arduino IDE go to menu Tools down to Board and select Sanguino from the list
Then make sure to select the correct processor in the arduino IDE go to menu Tools down to Processor and select "Atmega1284 or Atmega1284P (16 Mhz)" from the list

Edited 1 time(s). Last edit at 09/21/2018 10:17PM by Dust.
dlw
Re: Ender 3 firmware flash problem.
September 23, 2018 12:33AM
They are selected as recommended.
Sanguino error.

Edited 1 time(s). Last edit at 09/23/2018 12:34AM by dlw.
Attachments:
open | download - 20180922_212634.jpg (186.5 KB)
Re: Ender 3 firmware flash problem.
September 23, 2018 01:34AM
The error on screen is that your missing the U8glib graphics library

This is not the error you reported before

download u8glib [storage.googleapis.com]

Start Arduino IDE
In the Arduino IDE, import the library with Sketch|Include library|Add .ZIP library then find file you downloaded above,
dlw
Re: Ender 3 firmware flash problem.
September 24, 2018 09:27PM
U8glib is installed in /Arduino/Libraries.
Checked the error below at Arduino forum.
Suggested to change board to 'Arduino AVR Boards'. [forum.arduino.cc]
Did not do it!


Arduino: 1.8.5 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

In file included from sketch\SdFile.h:27:0,

from sketch\cardreader.h:8,

from sketch\Marlin_main.cpp:44:

SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'

struct fpos_t {

^

In file included from sketch\Marlin.h:10:0,

from sketch\Marlin_main.cpp:30:

c:\users\dlwy3\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

__extension__ typedef long long fpos_t;

^

exit status 1
using typedef-name 'fpos_t' after 'struct'

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

Edited 1 time(s). Last edit at 09/24/2018 09:30PM by dlw.
Re: Ender 3 firmware flash problem.
September 25, 2018 03:46AM
currently your trying to compile the originally supplied firmware, yes?

This error occurs if your trying to compile really old firmware (ie based on version 1 of marlin)

The issue is that newer versions of arduino defined the string "fpos_t" as a reserved word. But the older firmware uses this as a variable. these two things conflict.

To fix this for the current version of marlin you need to edit two files SdBaseFile.h and SdBaseFile.cpp

Replace all instances of fpos_t with filepos_t in both files.
Sorry, only registered users may post in this forum.

Click here to login