Im trying to run the library and test the examples, as i mencioned on the tittle im using stm32cubeide, i made a port based on the project EVK3000_F429_CubeMX.
I followed this guide to import correctly the library to the project, works fine i think:
System Hardfault when calling dwt_probe() - #9 by bruno
I used this code to test the spi conections and work fine:
It looks ok for me, what STM32 are you using? I am using M4 family and it worked, but I don’t know if it works with M0,M1, etc. I also used hfp, I don’t know what sfp is for, you may wanna try it.
Anyway here is a piece of code I used for going directly to DWM3000 (just using some code borrow from the old DWM1000 api) so you can be sure that can establish communication with DWM3000; not using DWM3000 api just to make sure your hw setting and etc is ok. Try with SPI in low speed also (3Mbps, 4Mb…
when i test the ex_00a_reading_dev_id example, the dwt_probe() return -1(ERROR) and then dwt_readdevid() jumps directly to hardfault_handler. I can confirm that dwt_probe uses the readspi function implemented:
idk whats happening but what i understand is that when it enters hardfault, its because of memory access error, idk what am i missing.
Thanks in advance for response.
Have you resolved this issue? I so, can you please help me? I am facing the same issue. It is going into Hard Fault. I am using Nucleo-F411RE in STM32CUBEIDE.
Thanks in advance
my problem was a physical conection problem, i was conecting everything with a protoboard and wires, so we made a pcb and worked fine.
hope it helps and sorry for late response.