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.

CCS/CC3220MODA: CC3220MODA File handling.

Part Number: CC3220MODA

Tool/software: Code Composer Studio

Hi all,

Is there an option to save the prints in the console to some text file when the device/target board is working independently without connected to UART/other debugging tools.

Can it be done internally?? Please reply if it could be done or not..

Thanks

Niranjan

 

  • Hi Niranjan,

    You can write files to the flash via simplelink file system commands. Check the file system chapter in the programmer's guide for more info.

    https://www.ti.com/lit/ug/swru455l/swru455l.pdf?ts=1599243380836

    Jesu

  • Hi 

    Is there any way that the console prints can be stored in text file, but while the board is not in debug mode or neither connected to UART, can this be done internally?

    Niranjan

  • Hi Niranjan,

    Generally not.

    You can create your own code which will save your log into file at sFlash (SPI) flash. But there is one big problem. Filesystem at sFlash does not uspport append operation. You will need read whole content of file, append your data and after that write all back. And because sFlash have limited number or write cycles (~100k write operations/sector), such use case cannot work at real world.

    If you want to log data, you should connect additional storage like a EEPROM, SD card, SFRAM and storage management will be up to your code.

    Jan

  • Hi

    Thanks Jan for your support.

    My target board has EEPROM (AT24CM02), I'm able to connect via I2C and was able to write and read bytes(dummy data).

    Now I want to write the UART_PRINT's into the EEPROM, is there any libraries in sdk to write these strings directly into the EEPROM module and to perform read/write/delete operation to the pointed location.

    Thanks 

    Niranjan

      

     

  • Hi Niranjan,

    No. You need to manage read/write operations by yourself. There is no library in CC32xx SDK which will be designed to writing into EEPROM memories. Because there is so many 3rd party EEPROM memories with slightly different communication protocols (commands).

    Jan

  • Hi Jan,

    Thanks for the information and support.

    Niranjan