Hello,
I am working on a Spectrum am1707evm board with a Blackhawk XDS100v2 emulator. I'm using ccstudio v5, am1707cmd file, and evmam1707.gel. Linux environment.
spi-writer-03.20.00.12 has worked right out of the box for me.
The nand-writer image that came with the Davinci-PSP-SDK-03.20.00.12 fails to initialize nand flash, so I have started to debug this utility in ccs. I am building the utility using the default compiler for ccs.
The link error due to not finding the symbol .aemif_mem is the result of the #pragma DATA_SECTION(NANDStart, ".aemif_mem") at line 79 in nandwriter.c.
Looking at Setup_EMIFA() in the gel file I see that nand is configured on CS3 of the asynchronous memory space.
I have added the following to the bottom of SECTIONS list in am1707.cmd and this stops the warning.
.aemif_mem > EMIFACS3
In doing so I see the flash base address change from 0x40000000 without this, to 0x62000000. The code does get farther after finding this correct memory space. However, the nand initialization still fails as the device is still not accessible, i.e., nand-writer fails to read the id after the first reset. I checked the DIP sw1 and sw2 settings and have probed the EMA_CS3 line but never see the chip select strobe.
I'm not sure where else to look and I would appreciate any input regarding this issue. I do need the nand-writer for a board we will be building for production.
thanks,
Dan