Programming ESP12F using SPI
Posted: Fri Jul 08, 2016 8:09 am
Apologies if this is a noob question... but I am a bit of a noob...
I am currently designing a PCB with an Atmega 328P linked to an ESP12F via the TX and RX connections. In essence the ESP reads the serial output from the Atmega and sends it as an MQTT package. I would like to be able to program both chips in situ.
The Atmega is fine as I have broken out the SPI pins toa 6x2 header, but at the moment I have broken out just the GND, VCC, TX and RX for the ESP. I can foresee problems using the TX and RX to program whilst the same TX and RX are connected to the Atmega. I could set up some kind of isolator to break the link to the Atmega when the ESP's breakouts are connected to, but that seems clumsy.
Is there a way to program the ESP via the SPI pins? I have not been able to find any information regarding this, but it seems like it should be possible. I could then leave TX and RX as just communication between the ESP and ATmega. I am using the Arduino IDE to program if that makes a difference.
I am currently designing a PCB with an Atmega 328P linked to an ESP12F via the TX and RX connections. In essence the ESP reads the serial output from the Atmega and sends it as an MQTT package. I would like to be able to program both chips in situ.
The Atmega is fine as I have broken out the SPI pins toa 6x2 header, but at the moment I have broken out just the GND, VCC, TX and RX for the ESP. I can foresee problems using the TX and RX to program whilst the same TX and RX are connected to the Atmega. I could set up some kind of isolator to break the link to the Atmega when the ESP's breakouts are connected to, but that seems clumsy.
Is there a way to program the ESP via the SPI pins? I have not been able to find any information regarding this, but it seems like it should be possible. I could then leave TX and RX as just communication between the ESP and ATmega. I am using the Arduino IDE to program if that makes a difference.