cvra / robot-software

CVRA monorepo - All software running on our bots lives here
MIT License
43 stars 21 forks source link

UWB panics at decawave initialization after reset. #194

Closed msplr closed 5 years ago

msplr commented 5 years ago

Some UWB beacons hang when resetting/power-cycling. The error comes from a failed dwt_initialise() in this line.

It keeps failing when further power-cycling. My hypothesis is that the decawave radio keeps some state during power cycling due to the large decoupling capacitors (Quickly shorting those seems to properly reset the chip and it works again).

msplr commented 5 years ago

@antoinealb proposed to add a reset cycle before initialization the using UWB_RST_N line.

antoinealb commented 5 years ago

Try using PC9 for reset ? I hope it should fix the issue. We did not use it because of cvra/uwb-beacon-board#2

msplr commented 5 years ago

Yes, it works. Fixed in 6171fe128d31fc6b8dbc8408a50a69a890b46eb3.