Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

10.1 Flash Programmer Error code: 4

I have a new design containing two Cyclone III (3C40's), each with a 256Mbit Numonyx P33 flash (65nm version) that fail (they both fail the same way) with the Nios II flash programmer. It seems the programmer reads the CFI query table info correctly but gives Error code: 4 (see below). I have tried manually to read/write/erase the device and it seems to work perfectly fine - but the GUI failure persists. I did notice that the blocks appear locked (not in lock-down mode, but just block-lock), which I know in the past the programmer takes care of doing the unlocking, etc... in any case I did try to unlock them manually and retry - no luck.

I've seen a couple other posts on this (specifically one with Error code: 4) with no resolution - does anyone know what could be wrong and potential work-arounds?

thank you

OUTPUT FROM PROGRAMMER:

Info: Aug 22, 2011 8:13:29 AM - (FINE) bin2flash: Starting

Info: Aug 22, 2011 8:13:29 AM - (INFO) bin2flash: args = --input=MyPath/testfile.bin --output=MyPath/flash/testfile_NOR_flash_0.flash --location=0x0 --verbose

Info: Aug 22, 2011 8:13:29 AM - (FINE) bin2flash: Done

Info: Using cable "USB-Blaster [USB-0]", device 3, instance 0x00

Info: Resetting and pausing target processor: OK

Info: Found CFI table in 16 bit mode

Info: Raw CFI query table read from device:

Info: 0: 89 00 22 89 01 00 FF FF 89 00 4F F9 04 00 FF FF ..".......O.....

Info: 10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................

Info: 20: 51 00 52 00 59 00 01 00 00 00 0A 00 01 00 00 00 Q.R.Y...........

Info: 30: 00 00 00 00 00 00 23 00 36 00 85 00 95 00 09 00 ......#.6.......

Info: 40: 0A 00 0A 00 00 00 01 00 02 00 02 00 00 00 19 00 ................

Info: CFI query table read from device:

Info: 10: 51 52 59 01 00 0A 01 00 00 00 00 23 36 85 95 09 QRY........#6...

Info: 20: 0A 0A 00 01 02 02 00 19 01 00 0A 00 02 03 00 80 ................

Info: 30: 00 FE 00 00 02 00 00 00 00 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: 50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................

Info: 60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................

Info: 70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................

Info: CFI extended table read from device:

Info: 0: 50 52 49 31 35 E6 01 00 00 01 03 00 30 90 02 80 PRI15.......0...

Info: 10: 00 03 03 89 00 00 00 00 00 00 10 00 04 05 04 01 ................

Info: Read autoselect code 0089-8922 (in 16 bit mode)

Info: No CFI override data for [FLASH-0089-8922]

Info: Target timeout loop runs 2227010 times/s

Info: Timeout set to 2281 loops

Info: Device size is 32MByte

Info: Erase regions are:

Info: offset 0: 4 x 32K

Info: offset 20000: 255 x 128K

Info: Device supports Intel style programming algorithm

Info: Multi-byte programming with 1024 byte buffer

Info: Sector erase timeout is 4s

Info: Word program timeout is 1ms

Info: Buffer program timeout is 4ms

Info:

Info: : Checksumming existing contents

Info: 00000000 : Checksum failed - needs program

Info: 00008000 : Checksum failed - needs program

Info: 00010000 : Checksum failed - needs program

Info: 00018000 : Checksum failed - needs program

Info: 00020000 : Checksum failed - needs program

Info: 00040000 : Checksum failed - needs program

Info: 00060000 : Checksum failed - needs program

Info:

Info: Checksums took 0.1s

Info: Erase not required

Info:

Info: 00000000 ( 0%): Programming

Info: Write address 0x12000000 <= 0x0090

Info: Read address 0x12000004 => 0x0001

Info: Write address 0x12000000 <= 0x60

Info: Write address 0x12000000 <= 0xD0

Info: Read address 0x12000000 => 0xB0

Info: Write address 0x12000000 <= 0x50

Info: Write address 0x12000000 <= 0xFF

Info:

Info: Program failed at offset 0

Info: Leaving target processor paused

Error: Error code: 4 for command: bin/nios2-flash-programmer "MyPath/flash/testfile_NOR_flash_0.flash" --base=0x12000000 --accept-bad-sysid --device=3 --instance=0 '--cable=USB-Blaster on localhost [USB-0]' --program --verbose

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Did you ever get an answer to what Error Code 4 is? I am getting the same error code from the nios flash programmer but so far have not found any information on it.