4
$\begingroup$

I just order myself an Ender 3 Pro which will come by the end of the week. Before it arrives I want to be ready to flash a bootloader onto it.

I was wondering what other options there are to flashing except using an Arduino?

I have a bunch of ESP8266/ESP32 and a USB to TTL. Would it be possible to use these somehow instead of an Arduino to flash a bootloader to the Ender 3? Or should I just go buy an Arduino?

$\endgroup$
1

2 Answers 2

5
$\begingroup$

What you need to is called a ICSP or ISP: in-circuit serial programmer or in-system programmer, which excludes the USB to TTL device you own.

I've never used an ESP8266 as ICSP but it seems there are some resources out there reporting it is possible. If you want to go the easiest way probably you want to buy an Arduino and follow the tons of tutorials out there, if you are looking to save some money then you might get around buying an ICSP like the very well known USBASP (just Google for that).

$\endgroup$
1
  • $\begingroup$ Thank you for the info, it looks interesting. I will look into using the ESP8266 as I love to learn new stuff! Will report back with my results when I've received my printer. $\endgroup$
    – PatricF
    Commented Nov 11, 2019 at 9:55
4
$\begingroup$

You can do AVR programming using USB-TTL adapters. This relies on bit-banging, i.e. emulating the programming protocol by using the serial control lines as general purpose IO.

But this has a few caveats:

  • USB-TTL adapters limit the speed of control line changes. So the programming will be very slow, taking several minutes.
  • You need to have the RTS, DTR and CTS lines available on the USB-TTL adapter. Many of the cheap adapters do not have these signals available on pins, though you could solder to the chip directly.

If those two are in order, go ahead and install avrdude, take one of the serial port bitbang (serbb driver) example files and configure it with information on which serial adapter pins you've connected to the AVR chip. Then give -i 1000 or similar delay value to avrdude to slow it down enough to work over the USB interface.

There is a blog post about doing it with PL2303 based adapter, but the technique should work on other USB-TTL adapters also.

$\endgroup$
1
  • $\begingroup$ wow this is some really interesting stuff for me! Thank you for the information. I will look in to this. $\endgroup$
    – PatricF
    Commented Nov 12, 2019 at 7:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .