IDE - AVRdude communication

Hi all, maybe someone can explain me, how the communication while the upload process between the Arduino IDE and AVRdude works... I can not find any documentation. How the IDE knows, the upload was successful for example?

best regards Michael

I'm not sure if you are aware that you can choose "verbose" mode in Preferences which gives details of what goes on during compiling and uploading.

I believe the IDE (or AVRdude) reads back the code it has uploaded to verify the upload.

...R

Thanks, yes, I know the verbose mode.

But the question was how the Arduino IDE can see whats going on in AVRDude, there must be a communication between the 2 programs. How it works??

best regards Michael

I believe the IDE (or AVRdude) reads back the code it has uploaded to verify the upload.

It is an internal function of avrdude and IDE just call avrdude with good options.

But the question was how the Arduino IDE can see whats going on in AVRDude, there must be a communication between the 2 programs. How it works??

his job finish avrdude return error code.

Do you know, how to capture the errorcodes? There is no documentation about this around AVRDude ...

Google ?
Qwant ?