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.

TMS320F28377D flash problem after power reset

Hello,

I hope someone can help me. I have the following problem:

I use CCS 6.1 and I want to run my application from flash.

With my Olimex XSD100v3 I am able to debug from ram as

well as from flash. Everything works fine.

The problem:

After restarting, the system doesn't run anymore. I have the 

feelig that I do somethig wrong.

Do I have to consider something special if I write my application

to flash? Do I have to change something in the code?

Untill now I just changed the debug mode from ram to flash.

I am looking forward to your answers.

Greets.

  • Hi,

    Please check the setting of BOOT-MODE pins (GPIO72/GPIO84). These pins need to be driven 1/1 to enable the Get Mode which defaults to Flash BOOT.

    Regards,

    Vivek Singh

  • Hi,

    Thank you for your answer.

    You were right. Unfortunately on GPIO72 and GPIO84 other signals were placed.

    I saw following in the datasheet:

    When I set GPIO72 and GPIO84 = high I am able to boot from flash.

    It means that I always jump into GET MODE.

    In this I see a problem! What is, if I want to boot from CAN? Correct me if I am wrong, but if I want to boot up from CAN, I write OTP_KEY = 0x5A and

    OTP_BMODE = 0x87. It is a ONE-TIME-PROGRAMMABLE Register!!! How can I switch it back to flash again? Is there really only one possibility of

    configuration?? How can I make it possible to boot from CAN as well as from flash?

    I am looking forward to your answer.

    BTW: How can I write to the OTP register? It is a read only register.

  • Hi,

    There are two location for Zx-BOOTCTRL. One in OTP (One Time Programmable) FLASH which user need to program and same value gets loaded into memory map register (READ-ONLY) by BOOTROM code. This register is provided for user to READ for debug purpose only else user don't have to do anything with this.

    Zx-BOOTCTRL location in OTP FLASH can be programmed using CCS Flash Plug-in GUI or by any other flash programmer. Please note that this can be only programmed once so yes, if it's programmed with value to BOOT-TO-FLASH then BOOT-TO-CAN will not be possible. User can still choose other 3 BOOT-MODE apart from Get Mode by changing the BOOTPIN setting but can't use another BOOTMODE within Get Mode.

    Regards,

    Vivek Singh

  • I understood. So there is no chance for the combination flash + CAN :(
    Is there perhaps a walk around for this issue? I really have to be able to boot from
    flash as well as from CAN.

    Best regards,
    Werner
  • Hi Werner,

    What is your case for two BOOT-MODE (Flash as well as CAN)?

    Regards,

    Vivek Singh

  • Hi Werner,

    What you could do is use another GPIO pin status (assuming you have a spare GPIO) in your code in Flash to jump to CAN Bootloader in ROM from Flash.

    Hope this helps.

    Regards,

    Vivek Singh