You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • You're using Espruino 1v50? And with an HTTP server rather than a client?

    I thought it was a lot more stable now, but do you have a way to get the timeout to happen immediately?

    The issue is that the TI driver sends SPI data, and then basically just loops until it gets the response it wants. There's no recovery mechanism and no CRC, so if the data gets corrupted in either direction or if the module itself stops working then it just hangs.

    I modified their driver to add the timeout code to try and avoid a hang, but it seems that after timing out it still crashes. If you're happy poking around then it'd be great if you could try and fix it - but you really need to get a hardware debugger set up so it's a bit difficult.

    Otherwise, if you have an arduino then you can try updating the firmware on the CC3000 itself and see if that helps: https://github.com/cmagagna/CC3000Patch

About

Avatar for Gordon @Gordon started