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/CC2652P: Issue in OAD update

Part Number: CC2652P

Tool/software: Code Composer Studio

Hi team,

I am working on OAD update, for this "simple_peripheral_oad_offchip_CC13X2P_2_LAUNCHXL_tirtos_ccs" and "cc13x2p2lp_bim_offchip" using.

for updating simpleLink starter application using but not able to update the Software.

As I debug through the source code, I am stuck in erasing external flash (in my case FRAM 512KB)

oadEraseExtFlashPages(EXT_FLASH_PAGE(dstAddr),(_imgHdr.fixedHdr.imgEndAddr - _imgHdr.imgPayload.startAddr -1),EFL_PAGE_SIZE)

what could be the reason for the failure of erasing the external flash and how to resolve it.

Please suggest the solution.

Kind Regards,

Tanuja

  • Hi Tanuja,

    How long is the device blocked in the flash erasing? (it is reasonable to take a few hundreds ms)

    Can you also confirm that the external flash is powered up?

    I will ask an OAD expert to help,

    Best regards,

  • Hi Clément,

    Thank you for quick response.

    yes the external flash is powered up.

    and comes to erasing time, I checked with break points in the source code where,

    I am creating factory image backup there it is failing to erase the flash memory.

    oadCreateFactoryImageBackup()

    /* Erase - external portion to be written*/
    status = oadEraseExtFlashPages(EXT_FLASH_PAGE(dstAddr),(_imgHdr.fixedHdr.imgEndAddr - _imgHdr.imgPayload.startAddr -1),EFL_PAGE_SIZE);

    Return status is "OAD_FLASH_ERR".

    I am not understanding what is the issue.

    Please help me to resolve this.

    Kind Regards,

    Tanuja

  • Hi Tanuja, 

    Are you using a LP or a custom board?

    What kind of error are you getting when trying to perform an OAD with the SimpleLink Starter app?

    Thanks, 
    Elin

  • Hello Elin,

    Thanks for replying back.

    I am using custom board.

    while performing OAD process with SimpleLink Starter App  I am getting 

    Status as "TI EOAD Client waiting for the MTU Update".

    Regards,

    Tanuja

  • Hi Tanuja, 

    Have you tested your code on a Launchpad?

    Have you tried using another Launchpad, running the host_test application, as the OAD distributor?

    Thanks,
    Elin

  • Hello Elin,

    On CC2652P launchPad tested and working i mean able to do OAD.

    With Host_Application I did not tested.

    I will check and get back to you.

    and i did not get on which launchPad I can test host_test application?

    Best Regards,

    Tanuja

  • Hi Elin,

    On CC2652P launchpad with simple_peripheral_oad_offchip_CC13X2P_2_LAUNCHXL_tirtos_ccs  OAD is working.

    If I use same source code with integrating External memory on  our custom board ,the OAD is not happening.

    I am in confusion what could be the issue.

    where I am failing to figure out?

    Kind Regards,

    Tanuja

  • Hello Elin,

    Could you please update any solution to resolve this issue.

    Kind Regards,

    Tanuja

  • Hi Tanuja,

    Thanks for your patience and apologies for the delay. 

    As the code is working on the LaunchPad but not the custom board I suspect that there might be a HW issue that is causing this problem. Have you had one of our hardware engineers review your custom board? 

    Thanks, 
    Elin

  • Hi Elin,

    In our custom board, we are using 4Mbits of External FRAM.

    In that we are storing some data + OAD also, i.e in sys.config file

    Region Base = 0x58000

    Region size = 0x28000

    sector size  = 0x80

    and rest of the memory for OAD.

    In this case do I need to configure memory for OAD separately?

    If yes, how to allocate it?

    Please suggest the solution asap.

    Kind Regards,

    Tanuja

  • Hi Elin,

    One more point I want to clear is-

    We are using CY15B104QI FRAM of 4MBits for Custom board.

    And in the LAUNCHPAD it is MX25R80535F of 8Mbits.

    Is FRAM capable of performing OAD?

    If yes, does the current driver support? If it doesnt support, please point us the modifications to be done accordingly.
    We are able to read and write FRAM in our appliocation. Facing issue with OAD.
    Its too critical now, please let us know the solution asap.
    Kind Regards.
    Tanuja
  • Hi Tanuja, 

    Apologies for the delay. 

    Can you clarify where you are using the CC2652 and what you are using it for? I got a bit confused from your last post. 

    Thanks, 
    Elin 

  • Hi Elin,

    CC2652P is for custom project.

    FRAM is using for storing some data and for OAD process.

    So we are able to store the data to the External Memory but not able to do the OAD process.

    The only difference between LAUNCHPAD and Custom board is that,

                                LAUCHPAD                  Custom Board

    FRAM_driver       MX258035F                   CY15B104QI

    Size                       8Mbits                            4Mbits

    So My doubt is , Is our driver support OAD?

    If not, what is the changes I need to do in the driver to get work for OAD? 

    Please try to suggest changes or any other way of get the result assp.

    Kind Regards,

    Tanuja

  • Hi Tanuja,

    Thanks for clarifying. 

    So when designing the board, you followed the guidelines in the Hardware Configuration and PCB Design Considerations document and have had a TI HW engineer review the design?

    Thanks, 
    Elin

  • Hello Elin,

    Will get back to you on this by end of  the day.

    Best Regards,

    Tanuja