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.

Hex6x NOR Flash Boot 6678

Hello. I am new to using the hex6x generation tool and boot code in general. Can anyone help me with the param settings? I want to boot the C6678 from EMIF NOR Flash (0x7000_0000). The flash is in 16 bit mode. The code is compiled/linked to run in L2SRAM (0x0080_0000) and runs well when loaded with emulator.

Does this mean my hex6x settings would be:

-o filename

-map mapfilename

-memwidth 32

-romwidth 16

-order L

-x

If I understand this right, then the code is actually executed from flash because the Boot ROM just branches to 0x7000_0000? I forced _c_int00() to base address at 0x00800_0000 when I compiled and I verified the binaries match those placed in flash at 0x7000_0000 (when using -romwidth 32 flag). So if were to reconfigure the PLL and EMIF settings similar to how the GEL scripts do from my main() function would that disrupt the code execution from flash? I'm I suppose to copy my code to L2SRAM first thing prior to adjusting my PLL and EMIF control registers? If using the -boot option can the hex6x tool generate code that will move my binaries from flash to L2SRAM? I already  have a tool to parse the tektronix file and place it in flash. I am just trying to understand the proper hex6x settings and best boot up process to boot from flash and run from L2SRAM.

Thanks

  • Hi.

    I  made a custom board using C6672 with NOR Flash boot.

    I set the PLL and EMIF Setting by using boot.asm. And this file also should contain the boot section copy code.

    so boot.obj is located 0x70000000 and boot/copy table contents are located 0x70000400.

    So after power on. PC is located on 0x70000000. (boot.asm) then it will set  PLL and copy the sections.(copy from 0x70000400 to L2RAM)

    Thanks.

  • Hi,

    I'm using C6654 and boot mode is EMIF16.

    I don't know how to make boot section copy code.

    If possible, can you please share me your boot.asm?

    best regards,

    g.f.