[color=#222222][size=small][font=Calibri, sans-serif]Hello,[/font][/size][/color]
[color=#222222][size=small][font=Calibri, sans-serif]I am an engineer currently working on a project involving the DWM1000, we want to use the ranging feature of the module in a product currently in development.[/font][/size][/color]
[color=#222222][size=small][font=Calibri, sans-serif]I am using the decawave API on a stm32 f3. The SPI is currently running at a clock frequency of 250KHz, it is using simple but very reliable bit banging functions to ensure that the problem was not in a misbehaving peripheral. [/font][/size][/color]
[color=#222222][size=small][font=Calibri, sans-serif]Currently I am trying to get the simple_rx and simple_tx examples running. The problem seems to be the RX is not receiving as it should be. I have searched the forum and tried any potential solutions to similar problems but I am still stuck.[/font][/size][/color]
[color=#222222][size=small][font=Calibri, sans-serif]The SPI works as shown by the dwt_initialise function returning successfully. The Tx seems to work as it runs around in the loop provided in the example code and reads the TXFRS bit. Therefore I believe the problem lies in the RX but I am open to any other potential issues causing this.[/font][/size][/color]
[color=#222222][size=small][font=Calibri, sans-serif]The RX runs in the example code loop waiting for the RXFCG bit to be set but it never is. The status_reg returned is always 0x800002. I have tried using the default config and the config specified in the examples on both modules. [/font][/size][/color]
[color=#222222][size=small][font=Calibri, sans-serif]Another issue I have run into that may or may not be related is if I try to read the system status register twice in a row it returns 0xFFFFFFFF or 0xDEADDEAD and the system does not recover. The work around is a write to the register 0x0 between reads (a dummy write). I have checked with two different logical analysers and they show the correct serial is being sent to the DWM1000.[/font][/size][/color]
[color=#222222][font=Calibri, sans-serif][size=small]Hopefully someone on this forum could point out something that might help in getting this running as I have spent several days trying everything I can to get these modules working, it will be very much appreciated[/size][size=small].[/size] [size=small]:)[/size] [/font][/color]
[color=#222222][size=small][font=Calibri, sans-serif]Thank you in advance,[/font][/size][/color]
[color=#222222][size=small][font=Calibri, sans-serif]Tom[/font][/size][/color]