nRF5x icon indicating copy to clipboard operation
nRF5x copied to clipboard

DAPLink firmware issues with UART/USB on BLE Nano 2

Open rsalveti opened this issue 8 years ago • 5 comments

I'm trying to use BLE Nano 2 as a bluetooth LE dongle powered by Zephyr (e.g. https://devzone.nordicsemi.com/blogs/1059/nrf5x-support-within-the-zephyr-project-rtos/), but had several UART and USB issues with the stock firmware.

As I noticed there is already a pull request for upstream DAPLink support at https://github.com/ARMmbed/DAPLink/pull/178, I took it as reference and updated to the latest DAPLink head, including updates to the UART (circular buffer and flow control) and USB (reduced interval for CDC). You can check my latest branch at https://github.com/OpenSourceFoundries/DAPLink/tree/blenano2-osf.

You can also find the pre-built firmware (from the blenano2-osf branch) at http://rsalveti.net/tmp/blenano2/DAPLink_V1.5_Interface_nRF52_20171213.bin, in case you want to give that a try.

rsalveti avatar Dec 12 '17 14:12 rsalveti

Hey @rsalveti, what exactly is the scope of the DAPLink issues I can expect to have until this is fixed? Currently programming the Nano 2 via pyocd seems to be working fine for me. Haven't been able to get debugging up and running yet though. What can I expect to work/not work?

anderspitman avatar Jan 27 '18 22:01 anderspitman

Mostly USB/UART related, it can get stuck if you stress the interface.

Debugging should still work fine with the factory firmware, try using pyocd-gdbserver and gdb (connect via telnet).

rsalveti avatar Jan 30 '18 15:01 rsalveti

@rsalveti thanks for the tip. I've got gdbserver up and running, and I'm able to connect, but I'm not seeing any of my printk output showing up. I tried running continue from within gdb. Sorry I know this is a super basic problem but I'm new to debugging with zephyr.

anderspitman avatar Apr 26 '18 19:04 anderspitman

nvm figured it out! Thanks again for the tip though!

anderspitman avatar Apr 26 '18 23:04 anderspitman

Is there a Redbear DapLink V1.5 firmware with flowcontrol on RTS/CTS? Or with a DTR Pin?

ericlangel avatar Mar 07 '19 09:03 ericlangel