E.hwRand() crashing Puck

Posted on
  • Hi, it seems using the mentioned function crashes the Puck reliably. I encountered this on two different Pucks. I also tried writing (using poke8) to the task register directly, same effect. So something seems to be wrong there. Is anyone else seeing this? Could this be some missing initialization? Some wrongly handled interrupt?

  • This could be the Bluetooth stack getting in the way - I think most likely it worked before Bluetooth got added, but then when Bluetooth is running it gets upset when certain things are accessed directly.

    I've added a bug for this: https://github.com/espruino/Espruino/iss­ues/1010

    Chances are the call needs to use a softdevice API rather than using the hardware directly

  • Hi Gordon, just tested the fix, works perfectly now, thanks!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

E.hwRand() crashing Puck

Posted by Avatar for stevie4711 @stevie4711

Actions