This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3120MOD: Simplelink driver reset

Part Number: CC3120MOD

I'm using CC3120MOD on a custom board, with a non-OS host calling the SimpleLink driver 2_40_00_22. Mostly it works great, but sometimes it gets stuck inside the driver code. Possibly an issue with my code, but in any case it would be nice (e.g. on a watchdog timeout) to be able to reset the driver and the chip and reconnect. Resetting the chip is no problem, but is there a way to reinitialize the driver to a pristine state?

The "Ask a Related question" forum button isn't working for me, but the discussion here looks relevant:

In particular: "Calling sl_Stop()+sl_Start() API is not able to recover driver at all cases."

I can confirm this - you get errors calling Stop or Start if the driver isn't in the proper state. Maybe I can figure out how to get the build system to put all the SimpleLink data into a separate RAM section so I can clear that, but that seems tedious.

Thanks.

  • Hi Jack,

    There's been some reported errors in the past of the host driver version your using getting stuck in sl_Stop and/or sl_Start. Rather than implementing workarounds to your problems I would first suggest updating to the latest host driver by downloading the latest Simplelink Wi-Fi Plugin. I know we have addressed errors related to sl_Stop and sl_Start hanging in the later host driver version.

    Jesu

  • OK, thanks. I'm trying the new version, and will report back if it's still having trouble. This update (4_20_00_10) requires a new interface in the host driver (sl_SyncObjGetCount) that I had to figure out. It would be nice to have a current non-OS example; even the RTOS cc_pal example doesn't look like it has that interface.