Hi everyone. I have 2 dwm3000cdk boards. I want to use them with my custom esp32 boards. One of them is going to be an anchor and one of them is going to be a tag.
There is a Raspberry Pi interface on the boards. I connected spi pins to my esp32 spi pins like below.
IRQ and reset are not required for basic operation. Reset is only needed if you want to be able to reset the device. The IRQ is required if you want to maximise the efficiency of the system and some drivers / libraries may require it in order to run correctly when calculating ranges but it’s possible to run without it and it’s certainly not needed for basic read/write operations.
SPI lines normally have external pullup resistors on them. This means that in the event of a lack of response you will normally get 0xFFFF. That you got a device ID of 0 implies either you don’t have any pullups fitted or something is responding on the bus. Unfortunately without a logic analyser or oscilloscope about all you can do in this situation is double and triple check the connections and firmware configuration.
Try running the SPI clock at a lower speed.
Ensure that you have short and neat connections. There have been a number of times when people have had this sort of problem and it’s come down to poor signal integrity.
Thanks a lot for reply Andy. I want to ask a question.
When i buy the modules, i uploaded firmware to the modules like in the quick start PDF. So is this situatian a problem to read device id using spi pins???
I checked the voltages on the board and 3v3 is okey.
Then i tested my esp32 board for spi, i connected mosi pin to miso and uploaded a spi loopback test code. Then esp spi pins are okey.
At last as you said, i connected 10k resistors mosi and miso pins. But nothing changed. Still i could not read.
By the way, i have an analog dicovery device, i am going to use it like logic analyzer to see spi pins and foto of connection. Thanks again.