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.

TMS320F280025C-Q1: Entry point Flash 2 SW files with Uniflash

Part Number: TMS320F280025C-Q1
Other Parts Discussed in Thread: UNIFLASH

Hello support team,

I have 2 SW (2 hex files):

- SW1: custom bootloader with entry point 0x80000

- SW2: application with entry point 0x84000 (or 0x83000)

I want the boot sequence as following

  1. CPU Boot Start. Flash boot
  2. Branch to Flash Entry Point of SW1 (custom bootloader)
  3. custom bootloader do something
  4. SW1 jumps to Flash Entry Point of SW2 (application)

My question is:

How can I modify the cmd file of SW2 so that when I both hex files at a same time with Uniflash, the device boot will branch to entry point of SW1 in step 2 (not entry point of SW2)?

Regards

Quy

  • Quy,

    Are you trying to execute immediately after loading the code to flash using Uniflash without power cycle?

    Did you try loading SW2 first and then the SW1?

    Thanks and regards,

    Vamsi

  • Hi Vamsi,

    No, I want to flash both HEX files of (SW1 and SW2) simultaneously or consecutively (with Uniflash or with CCS) and after that, power reset.

    After power reset I want the boot rom (flash boot) branches to the Begin of SW1 (not SW2).

    In other words, I want to compile/flash SW2 without entry point, so that the boot rom can see only entry point of SW 1.

    ----

    I have another question:

    I have a SW with (BEGIN               : origin = 0x084000)

    I flashed the output .out and .hex file with CCS and Uniflash and had following results:

    CCS: out: SW runs

    CCS: hex: SW does not run

    Uniflash: out: SW does not run

    Uniflash: hex: SW does not run

    Could you please explain the reason of different results here and where should I do to get SW run using HEX file with CCS and Uniflash

    Regards,

    Quy

  • looks like SW2 has something programmed at 0x80000 which overwrites SW1's entry point.

    Please check the map file of SW to see what is placed at 0x80000.

  • Hi Baskaran,

    Sorry for the confusion here. I created another topic for 2nd question.

    Please kindly focus to my first problem.

    How can I flash 2 HEX files at a same time (or consecutively), and tell the boot rom with SW should it branch to?

    Supposed I have 2 SW:

    - SW1: 0x80000 - 0x82FFF (Entry point: 0x80000)

    - SW2: 0x83000 - 0x87FFF (Entry point: 0x84000)

    Regards

    Quy

    SW1.zip

    SW2.zip

  • you dont need to flash them at the same time. You can flash them one by one.

    Make sure SW2 is no overwriting SW1 (check map files for overlapping regions)