- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi all,
in my project am using CycloneIV EP4CGX74CF23I7, am trying to flash my External NOR Flash(PC28F00BP30EF) in Nios II Flash Programmer but am getting this error 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 0x10000000Info: 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 error: error code: 8 for command: $SOPC_KIT_NIOS2/bin/nios2-flash-programmer "E:/PCIE/NOR_FLASH/software/Hello_bsp/flash/Hello_cfi_flash_0.flash" --base=0x10000000 --sidp=0x20005008 --id=0x0 --timestamp=1364451186 --device=1 --instance=0 '--cable=USB-Blaster on localhost [USB-0]' --program --verbose in this CFI Flash base address is automatically assigned in SOPC Builder, Reset Vector in Nios Processor is assigned to cfi_flash. why this type of error is coming , how to resolve this problem. Regards, Santhosh
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
having the same problem recently, with maybe same flash parallel (256P30), it seems that nios2 sopc it not well connected to the flash : CFI flash memory interface IP use 8-bit address when the 256P30 is a 16bits flash, even if we set Data width to 16bits in IP... So Address 0 should be forget and only A1..A24 out of sopc instantiation directly connected to flash pin in top module. like this in VHDL: -- the_cfi_flash0 address_to_the_cfi_flash(24 downto 1) => FLASH_A(23 downto 0), address_to_the_cfi_flash(0) => FLASH_A_NOT_USED, data_to_and_from_the_cfi_flash => FLASH_D, read_n_to_the_cfi_flash => FLASH_OE_N, select_n_to_the_cfi_flash => FLASH_CE_N, write_n_to_the_cfi_flash => FLASH_WE_N, (and connect FLASH_A(23..0) to PADD(23..0) FPGA pin (cyclone 4), then PADD(23..0) pins to 256P30 flash A(24..1), isn't it ? note: it could be worse like in Motorola world...) Then the flash programmer should complete. Also probably, with your configuration, the programmer inside quartus works well. Only Nios II Flash programmer failed. Next difficulty is to place configuration data and nios code to the right place in parallel flash which seems not obvious in flash programmer GUI. (version 11, may be not possible to offset correctly configuration data, so should use command line flash programmer) Hope it can help other people if too late for you... Regards, Michelg34
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page