Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1416 Posts: 7560
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 78 Posts: 343
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?
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
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.
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.
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
Hi Javier, we are glad that we could help. Please feel free to open new threads for further questions. Kind regards, Manuel