error reading from serial device

Hey guys,

I have recently been using the nrf 52840 dongle to connect to a sensor and gather data from it. So far I have been able to successfully connect to the device and I am now working on trying to discover the services on the device. However whenever the device finds the GATT service I get a error on the PuTTy serial terminal saying error reading from serial device.

Here is an example of what its saying.

I don't run into this error; however, when I search for the wrong service UUID it is only happening when I use the correct one. I tried looking at the prj.conf files and I can't figure out what the issue is 

Parents
  • If your console is on USB CDC ACM and the nRF52840 reboots itself, that probably causes the USB serial device to temporarily vanish.

    When I work with these dongles I either hardwire an LVTTL USB-Serial adapter to one of the I/O pins and use the standard UART console, or I connect SWCLK/SWIO to a J-Link and run the console over RTT.  That might do a better job catching any fatal asserts that the board is trying to print.

    You could also check your .config settings to see whether it's configured to reset or halt on assertions, to keep the board from rebooting.

Reply
  • If your console is on USB CDC ACM and the nRF52840 reboots itself, that probably causes the USB serial device to temporarily vanish.

    When I work with these dongles I either hardwire an LVTTL USB-Serial adapter to one of the I/O pins and use the standard UART console, or I connect SWCLK/SWIO to a J-Link and run the console over RTT.  That might do a better job catching any fatal asserts that the board is trying to print.

    You could also check your .config settings to see whether it's configured to reset or halt on assertions, to keep the board from rebooting.

Children
No Data
Related