Hi,
I've compiled the "programmer" example in the CSL 3.03 examples folder for the application that takes a .bin file and programs a external memory device, such as a SPI FLASH memory in my case.
I'm running the application in CCS 3.3 and the following prompt is displayed at the start :
Choose the device... 1x - NAND Flash [CSx: 2,3,4,5] 2x - NOR Flash [CSx: 2,3,4,5] 3 - SPI EEPROM (16 bit address) 4 - IIC EEPROM 5 - MMC 6 - SD 7x - SPI Serial Flash (24 bit address) [PinMap x: 1=MODE5,2=MODE6] 8 - MCSPI Serial Flash
In then enter "7" for SPI serial FLASH (24 - bit address) and the following prompt is displayed :
ChipSelect [1=EVM,2=USB Stick]?
I enter option "1" and get the following in return :
SPI Serial Flash... SPI Flash ID is: 0x37, 0x30, 0x0, 0x0 ERROR: Invalid programming choice
I'm using a suitable and compatible SPI FLASH from AMIC and we've used some older version of the programmer.out without an issue....
Should I instead enter the shortcut version like : "711C:\...\...\application_to_flash.bin" I get the following displayed when the program executes :
SPI Serial Flash... SPI Flash ID is: 0x37, 0x30, 0x0, 0x0 Erasing chip, this may take a while...
but after 5 minutes I notice the programmer.out application hangs in a continuous loop at the following bit of code in the spi.c file of the code :
//check the status, word complete do { status = IOPORT_REG_SPI_STAT1; } while ((status & SPI_STATUS_WC) != SPI_STATUS_WC);
I was wondering if there is a more recent, precompiled version of the code that's tested and ready to run and compatible with the C55xx (we're using C5515) and that is known to work correctly as I have comme accross many versions when searching on the web and on the wiki an suitable link is not provided ....
Otherwise what is the problem with this code as it compiles correctly on CCS 3.3 and appears to run but does not do the SPI flash programming too well ...
thanks in advance,
Citizen.