Here are some simple C example projects for any DWM1001 based hardware. Also contain compiling project files for Keil uvision and Segger Embedded Studio IDE.
I ran into the same problem but managed to resolve it by erasing the DWM1001 using J-Flash Lite (J-Link Flash Download) and afterwards flashing it using uVision.
This might be due to uVision being unable to erase the nrf52 SoftDevice but this is just a guess.
There appears to be a continuing problem with the nRF softdevice programmed into the flash of the DWM1001-Dev board.
As far as I currently understand it, you need to erase all of the flash using a tool such as Segger J-Flash lite. This can be downloaded for free. Select NRF52832_XXAA and then ‘OK’. Select Erase Chip.
dwt_setinterrupt(DWT_INT_RFCG | DWT_INT_TFRS, 1);
dwt_setcallbacs(&sentFrame_ISR, &receiveFrame_ISR, NULL, NULL);
to set up DW1000 to trigger interrupts.
Thanks for this example code.
When I used the DWM1000 before with Arduino, it was quite easy to print stuff out through serial and read it with Python.
How could I send ranging data out to my pc with this J-Link where I could capture it in Python and process it?
Are there examples/instructions on how to setup a MDEK1001 kit to read (whether through an anchor, tag, or gateway) the range measurements through the USB port? This is a simple use case for RTLS, no? Though the Android app is a great testing & evaluation tool, I don’t see much production use for that part of the product.
I am trying to bring up my DW1001 units using the examples in dwm1001-examples , namely the ss_twr_init and ss_twr_resp, by building them on two different DW1001 (one initiator, one responder) using Segger Embedded Studio with J-lik. Basically, I want to make the initiator communicate with the responder and display the result (pairing and ranging results for example).
I am able to build both ss_twr_init and ss_twr_resp on each DW1001 but I am not able to display the messages or results or output.
I am on macOS.
How can I display the output/ranging results of this example?