Hello!
I am trying to make an NodeMCU 1.0 working like an Arduino Programmer (uno in this case).
First of all I have connect the Arduino RX to D3. Also, the Arduino TX to D2 (with 3 diodes in series). And the D1 pin in the resetPin of ATmega328P.
I init the serial in NodeMCU code with this:
SoftwareSerial updateSerial(D2,D3);
and after this, in setup function:
updateSerial.begin(4800);
I start with a pulse in reset, in order to trigger the bootloader.
After this I am sending the bytes to get Sync
updateSerial.write((byte)0x30);
updateSerial.write((byte)0x20);
And I remain to get a response with this line (after delay(30)):
Serial.println(updateSerial.read());
The problem is that I receive always -1. The right answer would be 0x14 0x10, but I am not sure.
Is there any idea?