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.

CC3200: CC3200 : Error while creating a new file

Part Number: CC3200

Hi there,  

I am using CC3200 SDK 1.3.0. While creating a file of size of 990K, it throws an error -100 with additional debug prints as below :

[GENERAL EVENT] -  ID =[60] SENDER =[164].

Recently I migrated from SDK 1.2.0 and was working fine earlier, did not face such issue.

Could you please let me know how to resolve the issue.

Thanks,

Vivek

  • Hi Vivek,

    I have few questions...

    - Do you have enough free space in your sFlash. How big SFlash do you use?
    - Do you have uploaded latest Service Pack inside your sFlash?
    - What API returns this error (it is file creating or writing)?
    - What type of flash chip do you use?

    Can you reformat sFLash, upload SP and check again?

    Jan
  • Hi Jan,

    Thanks for your reply.

    Please see answers to your questions below :

    1) Yes

    2) Yes

    3) File creating

    4) Serial NOR flash

    I have formatted flash and used latest service pack but it doesn't work.

    Please note if I use SDK 1.2.0 then everything works fine, it just this new SDK 1.3.0 showing issues.

    Also SDK 1.3.0 works fine if file size around 100K but more than that starts throwing error.

    It appears to me something that is changed between SDK 1.2.0 to SDK 1.3.0 might be a reason behind this issue.

    Regards,

    Vivek

  • Hi Vivek,

    At SDK 1.3 was introduced new timeout mechanism. When file is created space is sFLash is erased and this can take long time. Maybe this timeout is reason of your issue. I asked about exact flash type, maybe you are using unsupported flash type. Meaning or error code -100 is SL_API_ABORTED, and it can be returned in case of communication issue with NWP from driver side.

    Please modify file_operations example from SDK 1.3 and try simulate issue with CC3200 LaunchPad. Please write exact type of your sFlash chip.

    Jan
  • Hi Jan,

    Appreciate the information provided.

    It makes sense and probably could be a root cause of the issue. I will try it on TI launchpad kit.

    The flash memory part number is N25Q256A. Its a NOR serial flash.

    We can not change the memory part even if its not supported as the product has been deployed. Since it allows to create 100K file size, may be creating more files to match our requirements will solve the issue in short term or going back to SDK 1.2.0 will certainly help.

    Is it possible to change the timeout at driver level to resolve the issue ?

    Please let me know your thoughts.

    Regards,

    Vivek

  • Hi Vivek,

    Your flash type N25Q256A is from same family as supported N25Q128A ( see: processors.wiki.ti.com/.../CC3100_&_CC3200_Serial_Flash_Guide ) and from this reason I suppose that this should not be issue.

    Test with CC3200 LP and code from example is very important to determine root of issue.

    Timeouts for SimpleLink driver you find at \cc3200-sdk\simplelink\source\driver.h. But I am not sure how can be properly modified. There is also one important thing. Timeouts for SimpleLink driver are counted by TIMERA2 module of CC3200. If you are using this timer somewhere inside your code, it can be problem too.

    Jan
  • Hi Jan,

    Thank you so much, will carry out the tests you suggested in next couple of days and will get back to you.

    Regards,

    Vivek

  • Hi Jan,

    That solved my problem, thank you very much !

    Regards,

    Vivek

  • Hi,

    OK, that is great. I am just curious, what was a solution?

    Jan
  • Hi Jan,

    TIMERA2 interrupt during flash writes which was root cause of the issue, I used another TIMER and that helped.

    Regards,
    Vivek