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