This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 USB example crash

Hi. I've just received my nRF52840-PDK and now I am trying to run usb examples from SDK 13.1.0.

I have started with VisualGDB using arm-eabi toolchain and USB HID Generic example from the SDK. The project built and flashed without errors. But when I connect second USB I get SIGTRAP exception in reent.c on NVIC_Enable_IRQ() in core_cm4.h. Pretty the same as here. The solution in that thread was to change startup files, but don't know how to make it. So this is a question number 1.

I have also tried to flash precompiled .hex files from the SDK, but for every USB example none of my PCs could recognize this USB device. So maybe I need to install some drivers for HID examples?

Other options I have checked, without success:

  • build with GNUARM toolchain from command line as well as from VisualGDB (in case of VisualGDB I had to select software FP instead of hardware, and disable softdevice);
  • build with arm-eabi from VisualGBD using SDK 13.0.0 and 13.1.0.
  • build projects from examples in IAR, not succeeded.

What do I need to do to get working USB on nRF52840?

Parents
  • Hi Ilia,

    No I don't think you can damage the board with the hex file. Today I got some time to test the board and when scoping on the 2 Data line, I found that on one of the line it's completely flat when I plug the USB in, seems that it's unconnected to either the chip or the USB port. I would suggest you to hook a logic analyzer on the TP13 and TP14 and check if there is any signal on it.

Reply
  • Hi Ilia,

    No I don't think you can damage the board with the hex file. Today I got some time to test the board and when scoping on the 2 Data line, I found that on one of the line it's completely flat when I plug the USB in, seems that it's unconnected to either the chip or the USB port. I would suggest you to hook a logic analyzer on the TP13 and TP14 and check if there is any signal on it.

Children
No Data
Related