There have been a number of discussions on this forum on how to get the SPI FLASH loaded correctly for the EVM boards. These have helped, but I still have questions on how to make it work on a custom PCB. I'll describe what we are doing today, and see if there is an easier way.
Intro: Using CCSV4.2 with DSPBIOS 5.41. DSP = C6748 rev 2.0 silicon. Boot mode = SPI1 Master FLASH
Step #1: Make an .out file.
Step #2: Use the AISgen utility. This allows you to setup the PLL's, PSC, DDR2, etc. It is important that these setting match your GEL file. The DSP Application File is obviously the .out file from Step #1. We set the AIS output file to "C Header file", and call it aisout.h.
Step #3. Save the AISgen configuration so it is easier to load next time we need to change anything. We call it ais.cfg.
Step #4: Press the "Generate AIS" button to generate the aisout.h file.
Step #5: Invoke the c6000 compiler from the command line: "cl6x -fc=aisout.h". This generates a .obj file called aisout.obj.
Step #6: Invoke the c6000 hex converter from the command line: "hex6x" -o flash.hex -m2 -romwidth 8 -datawidth 8 -memwidth 8 -map eprom.map aisout.obj"
Step #7: Using an EPROM programmer(with flash.hex), program our SPI FLASH part. Actually we have this outsourced to another company does the programming. But the bottom line is they need something to load into their programmer that is "industry standard". Motorola-S Format is understood by many chip programming machines.
Question #1: When using the AISgen utility, most of the forum discussions have the output set to "AIS binary". Is there an easier way to generate an AIS binary file, and then program that into SPI FLASH? Basically, do you know of programming devices that can accept your AIS binary as an input?
Question #2: One of the forum discussions about AISgen, noted that setting up the PSC may not work correctly. If you attempt to enable 8(SATA) under PSC1, it won't work because this needs to be "forced". Does the current AISgen tool correctly enable 8(SATA) on PSC1?
Question #3: If the AISgen tool doesn't configure 8(SATA) correctly, can we simply leave it not enabled? We don't use the SATA.
Question #4: One of the command line options used for hex6x is datawidth. I can't find datawidth mentioned in any documention, nor does it show up under the DOS help for hex6x. I think this may be left over from a previous DSP we used (C6421 or C5416). If datawidth is a valid option, can you please describe what it does?
Thanks, Dean