I've been researching how to go about getting working code loaded into my BF514F processor SPI internal flash on my custom target board. I'm using the GNU Blackfin Tools and have working code that I've been testing and debugging.
Now I'd like to stuff the working code into the internal SPI Flash in the BF514F processor and then select the bootmode to SPI mode (mode 0x02) and have the board come up working. From all my reading this is apparently not trivial whatsoever. Here's where I'm at so far...
I've been able to create an LDR file using the following command:
c:>bfin-elf-ldr -T bf518 -c -B 8 myprog.ldr myprog
My assumption is I needed an 8 bit output for the SPI flash but not really sure. Any other documentation regarding bfin-elf-ldr other than its help seems essentially non-existent. I'd like some clarification on this if anyone happens to know. And if there is any detailed documents on bfin-elf-ldr would be so greatly appreciated. I figured 16 bit was used for a 16 bit wide parallel flash hanging out on a bus somewhere so I opted for 8 bit.
I used the ldrviewer application to view the contents of my newly created LDR file and find that everything is broken up into blocks with target addresses for each section.
So now that I have an LDR file is it as simple as programming the raw LDR file byte by byte (although it'll really be page/block by page/block in the SPI flash) into the SPI flash memory and tada it'll load properly when booting from internal SPI flash?