XDK MCU - Erase CC3100 flash directly
Answer
12/9/16 10:25 AM

Hi, is it possible to access the flash memory of the XDK CC3100 wireless chip directly from the MCU?

Up until now I've been using TI's simplelink library calls to flash files to the CC3100, which send the data to the flash through the CC3100. However, now I'd like to do a factory reset of the CC3100, and for that I'd need to erase its flash memory. That means I need to send an erase command from the MCU to the CC3100 flash chip directly.

Would this be possible? Is the MCU actually connected to the CC3100 flash memory chip?

0 (0 Votes)
RE: XDK MCU - Erase CC3100 flash directly
Answer
12/12/16 11:33 AM as a reply to Javier Lara Peinado.

Hello Javier,

welcome to the XDK community.

The Wi-Fi firmware and SimpleLink API related files such as user files ( e.g Wi-Fi profiles for example) are generally stored in the flash memory of the CC3100. This includes any additionally flashed configuration of the CC3100 as well. Here you can upload custom files, e.g. certificates, directly to the CC3100 via the XDK workbench by going over the XDK MCU. The XDK MCU is physically connected to the CC3100 Wi-Fi chip by a SPI bus.

In order to help you I would like to know some things first. Do you want to completely reset of the flash memory including the firmware or only the additional user data you flashed onto it?

Kind regards,
Franjo

0 (0 Votes)
RE: XDK MCU - Erase CC3100 flash directly
Answer
12/12/16 11:43 AM as a reply to Franjo Stjepandic.
Hi Franjo, thanks a lot for the fast reply! My goal is to completely reset the CC3100 flash memory, firmware and user data included, so that I can bring the device back to a blank state. Would this be possible through SPI bus commands? As far as I know, there's no way to do this through simplelink API calls.
0 (0 Votes)
RE: XDK MCU - Erase CC3100 flash directly
Answer
12/12/16 2:25 PM as a reply to Javier Lara Peinado.

Hello Javier,

to my knowledge there is no simple link API functionality option available to reset the complete CC3100 Wi-Fi chip. But there is the tool Uniflash of Texas Instruments that is provided for such cases. Uniflash is a software tool which allows a part-wise or full erasure of the software contained in the flash memory of the CC3100 Wi-Fi chip. To use it you will have to download the Uniflash software from Texas Instruments and use an interface which supports Uniflash to flash the XDK.
Unfortunately have I currently no documentation about the use of Uniflash with the XDK. But I will contact the second level support to receive more information about this topic.

The only thing I can do right now is ask you for patience. I will keep you posted in this thread as soon as I know more.

Kind regards,
Franjo

0 (0 Votes)
RE: XDK MCU - Erase CC3100 flash directly
Answer
12/12/16 3:48 PM as a reply to Franjo Stjepandic.
Thanks a lot for the help! I had read about the Uniflash tool, but I thought it was only usable with TI test boards. Anyway, hope you get a reply from your TI contact.
0 (0 Votes)
RE: XDK MCU - Erase CC3100 flash directly
Answer
12/14/16 8:54 AM as a reply to Javier Lara Peinado.

Hello Javier,

 

Just a note: Erasing the firmware and reprogramming will mean that the radio stack is also potentially changed. This is not allowed by the XDK disclaimer. Reason is, that the TI approved firmware/ stack is part of the regulatory testing, and XDK has revceived CE/FCC approval based on it.

 

Best regards

Mathias

0 (0 Votes)
RE: XDK MCU - Erase CC3100 flash directly
Answer
12/16/16 5:34 PM as a reply to Mathias Bruendel.

Hello Javier,

Like Mathias already said, erasing the provided Wi-Fi stack is not allowed. 

Unlike it is allowed to flash and erase user files.

Unfortunately the XDK is not accessible via Uniflash because the XDK does not provide the required interfaces.

But the mentioned Simplelink API should be sufficient for any permitted operations. I assume you have flashed anything to the Wi-Fi flash memory that you want to erase right now.

There is a specific function in the Simplelink API to delete a file. You can find this method in fs.h. It is termed sl_FsDel.

Kind regards,
Manuel

0 (0 Votes)
RE: XDK MCU - Erase CC3100 flash directly
Answer
12/16/16 6:59 PM as a reply to Manuel Cerny.
Understood, then I'll erase the files manually one by one with sl_FsDel calls. I was hoping for a lazier factory reset method, but that one will do. ;) Thanks a lot for the help!
0 (0 Votes)
RE: XDK MCU - Erase CC3100 flash directly
Answer
12/19/16 12:53 PM as a reply to Javier Lara Peinado.

Hi Javier,

we are glad that we could help.

Please feel free to open new threads for further questions.

Kind regards,
Manuel

0 (0 Votes)