Hi,
I'm trying to write my code to SPI flash then boot from the flash in Windows environment. Referring to TRM, I did the following steps:
1. Build my code *.out in CCS as image file. It's configured to use external memory because of the code size.
2. Add image size and destination address (0x80000000 in DRAM) to the head of this image. (Refer to "1.9.1.1 Image Format for GP Device" in SPRUGZ8.)
3. Use spi-flash-writer obtained from Linux PSP package to write image to flash with offset 0.
I have verified data written to flash are what the code is. When I disconnected JTAG and power cycle the board, boot up failed. The core register stayed at 2008Ch which is the default handler of data abort. I have some questions on such method:
1. Does it need to transform the built code *.out to any format as an image? If necessary, how could I do that? It seems that there's an AISGen tool to generate the binary data for image. Is it available on DM814x?
2. Is it possible to assign the destination address of external memory and let ROM boot shadow the image to it instead of internal RAM?
3. Is the procedure sufficient to make the board able to boot up alone with my code? Any extra step needed to make this boot-up work?
Regards,
Eric