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.

CC3135: SPI Host programming : store .ucf file in host flash memory

Part Number: CC3135

Hi,

I'm using CC3135R Wifi chip that communicates with a host NXP MCU on a custom hardware through its SPI interface.

I would like to be able to update the service pack of the chip through host SPI interface. To do so, I need to send a .ucf file to the Host Simplelink library using sl_program function. So far, so good.

I want to store the .ucf file in the flash memory of the host MCU, so that the host MCU binary contains both its application and the service pack.

This way, when the host MCU boots up, it will check the service pack that is in its internal flash and update the wifi chip if needed.

It is easy to merge two binaries together (.bin ou .hex), for example using srec_cat tool (from srecord), but I have no idea if it's possible to merge a .bin file with a .ucf file.

1) Can you confirm that the only extension I can use to flash the CC3135 using host programming spi interface is .ucf file ? .bin can't be used ?

2) I didn't find any documentation about .ucf file format, can you provide info about it ?

3) Do you know a way to convert .ucf file to .bin or .hex format ?

Thanks for your help.

Olivier

  • I'm not sure why do you want to merge the two binaries together. Can't the MCU app access the

    As for the ucf it is just another binary format (you should be able to use any bin to hex or bin to C array tool for this). It is an TI internal format and is not meant for to store a non-TI content.

    Anyway, I think you better overwrite the content of "/sys/servicepack.ucf" through the simplelink file system API (sl_FsOpen, sl_FsWrite, sl_FsClose) - as it is demonstrated in the cc32xx OTA example. note that you will need to convert the signature ucf.signed.bin to base64 before using it (you can refer to code in <CC32xx-SDK-ROOT>/source/ti/net/ota/source/OtaArchive.c - look for "/sys/servicepack.ucf").

    The sl_Program will erase the entire flash and recreate the file system which is not required when you just want to update the service pack.