Hello guys, i need help to glue all info i’ve found online in my head.
My goal: understand general mechanism of uploading sketch using default bootloader to Amega328 or Atmega2560
What i do understand (presumably): in the boot time, bootloader checks either it is a flashing (update) session, either its normal boot and he has to run existing sketch. Bootloader might be trigered using either ISCP pins (and protocol) or using rx/tx pins (genuine ones not soft. serial, that are used by usb port as i undestand). I do have serial open to processor via cp2012 adapter, but i guess this can allso work if i have bluetooth adapter wit open serial, ftdi chip or whatever else in the world for that matter. - If i did not get something - please correct me
What i dont get - how to understand routine how to trigger flashing of sketch via serial? What should i send to initiate, how should i send a sketch (i’ve read somwhere that hex has to be converted to binary?), how must i finalize it, on what baud rate should i work.
I know there are lot of gurus here, so please - put me on the right path.