Does anyone know if the mEDBG chip (ATmega32u4 based) used on the Xplained mini eval boards supports baud rates above 57600 in its USB/Serial bridge code?
EDBG (AVR32 based, I think) is documented as working up to 2Mbps, but I can't find the equivalent for mEDBG, and I have some code that shows garbage at 115200, even though it works fine at 9600/38400/57600. Of course, somewhere around there is where the math gets tough, too, so it could be a bug in my SAMD10 code...
inline void uart_init(uint32_t baud) { uint64_t br = (uint64_t)65536 * (F_CPU - 16ULL * baud) / F_CPU;
("inline" is supposed to make it avoid having to do 64bit math at runtime. It seems to work. The value written to the BAUD register looks correct (63019 for a 48MHz clock.))
Um:
mEDBG
Debug host
Debug port
Serial number ATML2378020200002983
Connection com.atmel.avrdbg.connection.cmsis-dap
Firmware Version 1.7
Hardware Version 0
Edit: the "Getting started" project produces the same sort of garbage when configured for 115200bps. And it has an entirely different usart setup (using ASF)