Using RS232 to upload sketch (not using avrdude or ArduinoISP)

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry if this is a duplicate ... Looked "everywhere" for the answer :-)

Been trying to understand how to do a OTA pull using and ESP8266 to program an ATMega328p.

I have looked at the following link and cannot fit the peaces together.

I really want to do a pull from my own website and not push any firmware using the later tcp-port feature of the later Arduino releases.
 

AVR910: In-System Programming:

http://www.atmel.com/images/doc0943.pdf

 

AVR061: STK500 Communication Protocol:

http://www.atmel.com/images/doc2525.pdf

 

Overview the Arduino sketch uploading process and ISP:

http://www.instructables.com/id/Overview-the-Arduino-sketch-uploading-process-and-/

 

Source code of avrdude:

http://svn.savannah.nongnu.org/viewvc/trunk/avrdude/arduino.c?root=avrdude&view=markup

 

Using an Arduino as an AVR ISP (In-System Programmer):

https://www.arduino.cc/en/Tutorial/ArduinoISP

 

I was hoping to do the following.

 

* Do not want to use SPI due to the number of pins it requires.

* Want to use serial RX/TX and one pin to control reset of the ATmega.
* Do not need to be able to write my own bootloader
 

Maybe simplest way would be to start from the ArduinoISP sketch?
But I'm failing to see how I would start that. I don't need to be too fancy supporting all variants of the chip.

 

Has this already been done?
I was hoping it was as simple as.

Pull reset to low, send a few commands to get it into programming mode.

Send the sketch and then exit programming mode and boot... But that doesn't seem to be the case.

 

Any ideas are welcome!

Thanks,

Fredrik
 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Check out https://github.com/jeelabs/esp-link , I believe it may have what you need.