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.

How to build a TI-RTOS project in which I can link the .resetVecs to other specified address?

Other Parts Discussed in Thread: SYSBIOS

In TI-ROTS project built for TM4C129X, the .resetVecs section is usually linked to zero address. The linker.cmd is automatically generated from the template

* linkcmd.xdt in the ti.platforms.tiva package.

In my application, I have to write a user bootloader(Non-TI-RTOS project).  There is two questions:

1. How to modify the template linkcmd.xdt to put the .resetVecs to other specified address? Is it practicable?

2. User bootloader and app have its own vector table respectively. When jump from user bootloader to app,  SP initialization and then load PC with _c_int00 address of app? Is there any other works to do for correct jump? 

Thanks,

Jason. Jia 

  • Jason,
    the address of .resetVecs section is configurable through the configuration parameter Hwi.resetVectorAddress in the module 'ti.sysbios.family.arm.m3.Hwi'. You can access that parameter in your CFG script:
    var HwiM3 = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
    HwiM3.resetVectorAddress = <new address>;

    For your second question, I found a thread with a similar question and only info I can find there is that SYS/BIOS initialization expects that the control registers to be in their reset state, and that the Master interrupts should be enabled at the end of your boot routine. I hope that helps.
    e2e.ti.com/.../1001399
  • Hi, Sasha
    Thank you for your reply!
    You have solved my first question perfectly. In addition, your answer is quite helpful for my second question.
    Thank you very much!