nios ii cfi flash cyclone iii
we are using micron parallel nor flash 256mb Rc256p33tfe with the cyclone iii device in active parallel mode
after adding generic tri state controller and conduit bridge in qsys
by giving frin command line : nios2-flash-programmer --base=0x01000000 --debug
its showing like below no cfi table found
info: Mar 28, 2013 12:52:59 PM - (INFO) elf2flash: args = --input=E:/PCIE/NOR_FLASH/software/Hello/Hello.elf --output=E:/PCIE/NOR_FLASH/software/Hello_bsp/flash/Hello_cfi_flash_0.flash --boot=C:/altera/12.0/nios2eds/components/altera_nios2/boot_loader_cfi.srec --base=0x10000000 --end=0x20000000 --reset=0x10000000 --verbose
Info: Mar 28, 2013 12:52:59 PM - (FINE) elf2flash: Starting
Info: Mar 28, 2013 12:52:59 PM - (FINE) elf2flash: Done
Info: Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Info: Resetting and pausing target processor: OK
Info: Reading System ID at address 0x20005008: verified
Info: no cfi table found at address 0x10000000
Info: Original contents (after writing 0xF0 and 0xFF00FF to address 0x10000000):
Info: 0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
Info: 10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
Info: 20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
Info: 30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
Info: 40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
Info: Contents after writing 0x980098 to address 0x100000AA:
Info: Same after writing 0x980098 to address 0x10000154:
Info: Same after writing 0x00980098 to address 0x100002A8:
Info: Same after writing 0x980098 to address 0x10000055:
Info: Same after writing 0x980098 to address 0x100000AA:
Info: Same after writing 0x00980098 to address 0x10000154:
Info: Same after writing 0x980098 to address 0x10000154:
Info: Same after writing 0x980098 to address 0x100002A8:
Info: Same after writing 0x00980098 to address 0x10000550:
Info: 0: 89 00 01 00 89 00 04 00 04 D8 04 D8 04 D8 04 D8 ................
Info: 10: 51 00 59 00 00 00 01 00 00 00 00 00 20 00 95 00 Q.Y......... ...
Info: 20: 0A 00 00 00 02 00 00 00 01 00 0A 00 01 00 03 00 ................
Info: 30: 02 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF ................
Info: 40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
Info: Ignored possible autoselect code 89-01 as no override data
Info: present in section [FLASH-89-01]
Info: Ignored possible autoselect code 0089-0001 as no override data
Info: present in section [FLASH-0089-0001]
Info: Ignored possible autoselect code 00010089-00040089 as no override data
Info: present in section [FLASH-00010089-00040089]
Info: leaving target processor paused
by reading through c code by debugging
we got cfi information misssing at ox11 addresss it had to be 0x52 but its showing ox5100.
even though i tried to flash both sof and hex files from nois2flash prorammer gui
its showing
error code8: programming file path --verbose
i find cfi table information is missing i tried to override my cfi flash by nios2override file by placing it in path nis2eds/bin
its showing
cfi erase region definitions dont match with device size
base address not aligned in device size (in my qsys address of generic controller is 0x01000000 )
how can i access the flash because i have to load (hex or flash file ) through uart and i have to write in flash and run it on power on