makerdiary / nrf52840-mdk

An Open-Source, Micro Development Kit for IoT Applications using the nRF52840 SoC
https://wiki.makerdiary.com/nrf52840-mdk/
169 stars 42 forks source link

Using UART over usb with nrf5sdk15.2 #13

Closed SethSenpai closed 5 years ago

SethSenpai commented 5 years ago

Hey there,

I'm trying to get the UART example from the nrf5sdk to work on this board and I'm having trouble. While the CDC led does blink red when I press a key in my Putty terminal no data is received by the nrf52 chip. The data that the nrf52 chip sends out also don't seem to reach the terminal, while the debugger does step through all the functions without reporting an error. I already changed the pins in the UART config to match the tx and rx for uart described in the pinout.

For clarity, I'm trying to get the board to communicate through the usb cable that is plugged into the usb-c socket.

Any help would be appreciated.

caizelin commented 5 years ago

Hi, make sure that RX_PIN_NUMBER=19 and TX_PIN_NUMBER=20 . Here is the uart example I have just pushed to github: https://github.com/makerdiary/nrf52840-mdk/tree/master/examples/nrf5-sdk/uart You can try the pre-built hex or compile it yourself. It should work like this: image If you have any questions feel free to reach out!

SethSenpai commented 5 years ago

Thanks a lot for your swift reply, in the end I found that I had the RX and TX pins reversed. I feel very silly. :cry: