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 have Core 0 jump to application after booting

Using a C6678 on a custom board with parallel NOR flash on EMIF16 for booting.

I have code running from the flash when the device powers up. I copy the executable from flash to ram for all my cores, including Core 0. The entry point for all the cores is _c_int00. I've read how to get cores 1-7 to go by writing the magic address (still need to try this part ...) What is the "right" way to have core 0 jump to it's start address? A goto doesn't seem to work, is there a recommended way? If assembly is required, is it as simple as

B entryPt

where entryPt is a c variable containing the address? Or do you have to do something like load a register and branch to the register address?

Thanks Mike

  • Hi,

    Please take a look at below threads, Rahul has provided the information for EMIF16 boot
    e2e.ti.com/.../985112
    e2e.ti.com/.../1162831

    Thanks,
  • You can use C, by means of a far function pointer:
    far void (*entryPtr)(void) = <your literal address or symbol here>;
    entryPtr();

    If you use assembler, you have to use a register to load the destination address.

    Prior to jump, be sure to flush the data cache and maybe invalidate the Instruciotn cache.
  • Hi Mike,

    Please refer to the section " Booting from NOR" in the TI WIKI:

    particulalry,

    ibl.bootModes[0].u.norBoot.blob[0][0].startAddress = 0x9e000000 /*0x80000000 for BIOS MCSDK v2.0.4  or prior*/; /* Image 0 load start address in LE mode */

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------