Makerfabs / Makerfabs-ESP32-UWB-DW3000

77 stars 22 forks source link

When setting interrupts - i get an IllegalInstruction exception #13

Open ChristofGroschke opened 10 months ago

ChristofGroschke commented 10 months ago

Hi there,

I am currently using the dw3000 for a small university project. I am having a lot of problems enabling interrupts. One of them is that I can't call dwt_setInterrupts without the system rebooting due to an illegal instruction. I found out that the decamutexon function defined in dw3000_mutex.cpp should return a value, but it doesn't. The compiler warns me about this, but normally this shouldn't be a problem. If I return a value like NULL, the compilation is successful. Interrupts still don't work, but I'm not sure if that's related to this problem.

I have tried Ubuntu 22.04 with Arduino 1.8.19 and Windows 11 with Arduino 1.8.19 & 2.2.1 and neither works. Can anyone enlighten me on this?

Thanks in advance.