Altera_Forum
Honored Contributor
15 years agoS29AL008J Issue: Flash is not working
I have found few or no information about the compliant of the following Spansion flash memory model: S29AL008J.
Have any one already used it ? I am using exactly the model S29AL008J70TFI01. Its byte (8 bits) or word (16 bits) selectable through pin BYTE#. The IC is connected as bellow BYTE = 3V3 (word mode) [A0~A18] of IC connected to nios ADDRESS[1~19] - once the memory is configured as a 16 bits memory DQ0 DQ15 connected to DATA[0~15] from nios CE#, OE# and WE# connected directly to nios RESET# is the same used with Nios reset# input. WP# is floating (its internally pull up), so, there is no write protection to the first block. nios cfi memory is configured as bellow custom 19 bits (address) 16 bits (data) 70 (setup) 160 (wait) 70 (hold).
Executing command: bin/elf2flash --input="C:/Workspace/quartus/FNIOS/SOFTWARE/teste/teste.elf" --output="C:/Workspace/quartus/FNIOS/SOFTWARE/teste_bsp/flash/teste_ext_flash.flash" --boot="components/altera_nios2/boot_loader_cfi.srec" --base=0x0 --end=0x100000 --reset=0x0 --verbose
07/01/2011 18:43:30 - (INFO) elf2flash: args = --input=C:/Workspace/quartus/FNIOS/SOFTWARE/teste/teste.elf --output=C:/Workspace/quartus/FNIOS/SOFTWARE/teste_bsp/flash/teste_ext_flash.flash --boot=components/altera_nios2/boot_loader_cfi.srec --base=0x0 --end=0x100000 --reset=0x0 --verbose
07/01/2011 18:43:30 - (FINE) elf2flash: Starting
07/01/2011 18:43:30 - (FINER) elf2flash: Program Record: 6120 bytes destined for 0x110020
07/01/2011 18:43:30 - (FINER) elf2flash: Start Record: 110184
07/01/2011 18:43:30 - (FINE) elf2flash: Done
Executing command: bin/nios2-flash-programmer "C:/Workspace/quartus/FNIOS/SOFTWARE/teste_bsp/flash/teste_ext_flash.flash" --base=0x0 --sidp=0x2000060 --id=0x7C4D57F --timestamp=1294432172 --device=1 --instance=0 '--cable=USB-Blaster on localhost ' --program --verbose
Using cable "USB-Blaster ", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x02000060: verified
No CFI table found at address 0x00000000
Original contents (after writing 0xF0 and 0xFF to address 0x00000000):
0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
Contents after writing 0x98 to address 0x000000AA:
Same after writing 0x0098 to address 0x00000154:
Same after writing 0x00000098 to address 0x000002A8:
Same after writing 0x98 to address 0x00000055:
Same after writing 0x0098 to address 0x000000AA:
Same after writing 0x00000098 to address 0x00000154:
Same after writing 0x98 to address 0x00000154:
Same after writing 0x0098 to address 0x000002A8:
Same after writing 0x00000098 to address 0x00000550:
0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
Leaving target processor paused
I have already tried to use bigger values for hold time / wait and setup (all of them with a value of 200 ns) with no success. Have anyone a idea about what could be the problem ? If needed I can provide more information. Thank you !