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.

TMS320F2800156-Q1: Uniflash

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

Tool/software:

hi expert:

in uniflash

i program appication  code and bootlaoder code.

when i select the Run action,the code run in appication code ,not run the bootlaoder code.why?

when i turn off the power and turn on the power,the code run the bootloader code first?

my question is :

1)when  i select the Run action,why the code run in appication code not in bootloader code?

2)how the uniflash kown the appication start address?

  • Hello,

    I'm assuming you're trying to program the bootloader and application into the flash, please correct me if I'm wrong. I have a couple clarifying questions:

    1. Where in the flash are you programming the application and bootloader (what flash banks are each allocated to)?
    2. What boot mode do you have the device configured for?
    3. How are you loading the application and bootloader onto the device in UniFlash? Do you have two different .out files for the application and bootloader, or one combined output file?

    Best,

    Matt

    1. Where in the flash are you programming the application and bootloader (what flash banks are each allocated to)?

            R:bootloader :0x80000,application:0x88000

    1. What boot mode do you have the device configured for?

           R: flash

    1. How are you loading the application and bootloader onto the device in UniFlash? Do you have two different .out files for the application and bootloader, or one combined output file?

          R:one combined output file.when power on ,the combined output file run normal.

  • Hello,

    Thank you for the additional details.

    The device boots to the bootloader on reset because the default boot to flash entry address is 0x80000. 

    The symbols in the .out file will have the program entry point location and other debug symbol information. How are you generating the .out file (ie. do you have a combined project or use the hex utility)?

    If you want Uniflash to run the application after loading the combined output file, I suggest adding a "Reset Action" for a CPU reset after the program load. The device will then boot to the application at address 0x80000, as defined by your boot mode.

    Best,
    Matt

  • Hello

    what's the difference between  "Reset Action" and "Run action"?

  • Hello,

    "Reset Action": it is possible to specify reset actions to take after a program is loaded or to be immediately applied (by clicking "Reset Now"). The resets available will vary by connected device and are determined when the query link is clicked. After the list of resets is loaded, the selected reset can be applied immediately with the "Reset Now" button or after a program has been loaded.

    "Run Action": UniFlash branches to the application codestart identified in the .out file without reset.

    Best,

    Matt

  • Hello

    I have a quetion about reset action:

    From the picture,TRST pin dos not work,how to reset the mcu by JTAG?

    My emulator did not implement by "Reset Action" with the "Reset Now" button ?

    why?

  • Hi,

    What JTAG signals does your emulator use? Does UniFlash give an error message when you try to "Reset Now"?

    Best,

    Matt

  • Hello,

    Since there have been no replies for over a month, I'll assume this is resolved and close the thread.

    Best,

    Matt