0

Feather m0 serial broken after adafruit-samd-1.2.2
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather m0 serial broken after adafruit-samd-1.2.2

by mrirotator on Sun Jun 28, 2020 11:03 pm

I have a feather m0 board interfaced by a qt-application that uses qtserailport to parse input strings from the board. I just updated from an older version of the board package, and noticed that the serial port communication is broken after version 1.2.2. Compiling the application from 1.2.3 breaks the communication.

To repeat:
Feather m0 board
Arduino 1.8.13
Arduino SAM Boards 1.6.21 (or whatever is newer and supported. This does not matter)
Adafruit SAMD 1.2.3 or newer (1.2.2 works fine).

Qt 5.15.0, simple terminal example directly from examples

Code for m0
Code: Select all | TOGGLE FULL SIZE
void setup() {
  while (!Serial);
  Serial.begin(115200);
  delay(100);
}

loop{
  if(Serial.available()){
    Serial.write(Serial.read());
  }
}


On a side not, you guys should really learn how to write proper commit messages, for example take a look at:
https://www.conventionalcommits.org/en/v1.0.0/

Code: Select all | TOGGLE FULL SIZE
4663eada0285f93cc313ef2a4f99afdfdd9b662a update booty location
d0b00b51f4002a41d83a6206aef3938feaee36f0 add bootloader
314fcba6b683ffc62d27fec9a82c3cf06d6a7b92 all the PIDs
f0312c1b1b0dd93bdb8cb5874b8d3b213618bbb9 fixed & checked PWMs
2fbfee3c2b3c073e52bb9fe3a70f452eee518aeb spi fix
2b7afb587ea66dc57a34cfcce6c418c675e0b39d Merge branch 'master' of github.com:adafruit/ArduinoCore-samd

mrirotator
 
Posts: 2
Joined: Sun Jun 28, 2020 10:52 pm

Re: Feather m0 serial broken after adafruit-samd-1.2.2

by mrirotator on Thu Dec 17, 2020 3:05 am

Update with solution.

For some reason, with the latest updates you need to have Flow control: RTS/CTS enabled for this to work.
Don't know where the actual bug is, but my guess is that the USB-stack is reporting some options incorrectly in the updated version. I can also see that the enumeration process is different.

So, if using Qt (or probably some other windows terminal applications), set Flow control to RTS/CTS.
Attachments
flow.png
flow.png (12.05 KiB) Viewed 72 times

mrirotator
 
Posts: 2
Joined: Sun Jun 28, 2020 10:52 pm

Please be positive and constructive with your questions and comments.