Change BOOTSEL baud rate to something other than 1200 #2272
-
I'm working on a project which needs to support a protocol requiring connecting at 1200 baud. This of course clashes with arduino-pico's boot-select protocol which also needs 1200 baud. I have manually changed the required line in SerialUSB.cpp from While this works, programming the board is a pain as I now need to unplug, press BOOTSEL, plug back in .... . Is there a simpler way to change the magic number of 1200 baud, and still have the build toolchain function? Ta, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Sorry, no. That's an Arduino "standard" and implemented in many cores. Since this only affects USB, and the "baud" rate is just a number and not actually used anywhere, though, why is this an issue? A USB CDC port set to "115200bps" can transfer the same amount of data as one set to "110bps". Only on the actual UARTS (Serial!/2) will the baud rate set actually make a difference, and those are not checked for Arduino reset protocol. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. Ironically, the protocol I'm implementing is for hardware which supports two modes of operation, with the mode dictated by the connection rate. In effect doing the same thing as what the boot loader select is doing. It's old hardware from decades before arduino was a thing. Just an unfortunate coincidence. |
Beta Was this translation helpful? Give feedback.
Sorry, no. That's an Arduino "standard" and implemented in many cores.
Since this only affects USB, and the "baud" rate is just a number and not actually used anywhere, though, why is this an issue? A USB CDC port set to "115200bps" can transfer the same amount of data as one set to "110bps". Only on the actual UARTS (Serial!/2) will the baud rate set actually make a difference, and those are not checked for Arduino reset protocol.