dbuezas / arduino-web-uploader

45 stars 14 forks source link

Can this upload to a Nano every? #12

Open kallikak opened 2 months ago

kallikak commented 2 months ago

I was hoping the m4809 option would do the job, but seems not.

Perhaps it needs to do something like the trick of toggling the bit rate to 1200 that avrdude uses?

dbuezas commented 2 months ago

The baudrate is set here: https://github.com/dbuezas/arduino-web-uploader/blob/master/src/index.ts#L19 You could experiment with baurated changing that

kallikak commented 2 months ago

It's not going to be that simple. The baud rate for programming is 115200. The toggle to 1200 is a trick used by the Arduino software to put the Nano Every into programming mode. Same thing with avrdude on the command line - need to stty -f 1200 first, or the upload fails. Edit: in fact, the Every uses a different protocol anyway.