- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use nios2-flash-programmer command with argument "--debug" , it shows:
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x00802010: verified
Found CFI table in 16 bit mode
Raw CFI query table read from device:
0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
20: 51 00 52 00 59 00 02 00 00 00 40 00 00 00 00 00 Q.R.Y.....@.....
30: 00 00 00 00 00 00 27 00 36 00 00 00 00 00 07 00 ......'.6.......
40: 07 00 0A 00 00 00 03 00 05 00 04 00 00 00 17 00 ................
CFI query table read from device:
10: 51 52 59 02 00 40 00 00 00 00 00 27 36 00 00 07 QRY..@.....'6...
20: 07 0A 00 03 05 04 00 17 02 00 05 00 02 07 00 20 ...............
30: 00 7E 00 00 01 00 00 00 00 00 00 00 00 00 00 00 .~..............
CFI extended table read from device:
0: 50 52 49 31 33 10 02 01 00 08 00 00 02 B5 C5 02 PRI13...........
10: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Read autoselect code 0001-007E (in 16 bit mode)
No CFI override data for [FLASH-0001-007E]
Device size is 8MByte
Erase regions are:
offset 0: 8 x 8K
offset 10000: 127 x 64K
Device supports AMD style programming algorithm
Multi-byte programming with 32 byte buffer
Sector erase timeout is 16s
Word program timeout is 1ms
Buffer program timeout is 4ms
: Checksumming existing contents
00000000 : Checksum failed - needs erase then program
00002000 : Checksum failed - needs program
00004000 : Checksum failed - needs program
00006000 : Checksum failed - needs program
00008000 : Checksum failed - needs program
0000A000 : Checksum failed - needs program
0000C000 : Checksum failed - needs program
0000E000 : Checksum failed - needs program
00010000 : Checksum failed - needs program
00000000 : Reading existing contents
Checksums took 0.0s
00000000 ( 0%): Erasing
Erased 8kB in 0.0s
00000000 ( 0%): Programming
Program failed
Leaving target processor paused
and i make a override file "ovet.txt" like this:
[FLASH-0001-007E]
CFI[0x10] = 0x51
CFI[0x11] = 0x52
CFI[0x12] = 0x59
CFI[0x13] = 0x02 # The primary command set, found at CFI table -
CFI[0x14] = 0x00 # addresses 0x13 and 0x14 is overridden to 0x02, 0x00.
CFI[0x15] = 0x04
CFI[0x16] = 0x00
CFI[0x17] = 0x00
CFI[0x18] = 0x00
CFI[0x19] = 0x00
CFI[0x1A] = 0x00
CFI[0x1B] = 0x27
CFI[0x1C] = 0x36
CFI[0x1D] = 0x00
CFI[0x1E] = 0x00
CFI[0x1F] = 0x07
CFI[0x20] = 0x07
CFI[0x21] = 0x0A
CFI[0x22] = 0x00
CFI[0x23] = 0x03
CFI[0x24] = 0x05
CFI[0x25] = 0x04
CFI[0x26] = 0x00
CFI[0x27] = 0x17
CFI[0x28] = 0x01
CFI[0x29] = 0x00
CFI[0x2A] = 0x00
CFI[0x2B] = 0x00
CFI[0x2C] = 0x02 # The number of CFI Erase block regions, found at CFI table –address 0x2C is overridden to 0x1.
CFI[0x2D] = 0x07
CFI[0x2E] = 0x00
CFI[0x2F] = 0x20
CFI[0x30] = 0x00
CFI[0x31] = 0x7E
CFI[0x32] = 0x00
CFI[0x33] = 0x00
CFI[0x34] = 0x01
CFI[0x35] = 0x00
CFI[0x36] = 0x00
CFI[0x37] = 0x00
CFI[0x38] = 0x00
CFI[0x39] = 0x00
CFI[0x3A] = 0x00
CFI[0x3B] = 0x00
CFI[0x3C] = 0x00
CFI[0x40] = 0x50
CFI[0x41] = 0x52
CFI[0x42] = 0x49
CFI[0x43] = 0x31
CFI[0x44] = 0x33
CFI[0x45] = 0x00
CFI[0x46] = 0x02
CFI[0x47] = 0x01
CFI[0x48] = 0x01
CFI[0x49] = 0x04
CFI[0x4A] = 0x00
CFI[0x4B] = 0x00
CFI[0x4C] = 0x01
CFI[0x4D] = 0xB5
CFI[0x4E] = 0xC5
CFI[0x4F] = 0x04
CFI[0x50] = 0x01
CFI[0x51] = 0x00
and i use nios2-flash-programmer command whit arguments --debug --override=over.txt it shows:
# Programming flash with the datafile
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --cable='USB-Blas
ter [USB-0]' --sidp=0x00802010 --id=956946544 --timestamp=1283733585 --instance=
0 -D --override=over.txt "test_flash.flash"
Reading override file "over.txt"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x00802010: verified
Found CFI table in 16 bit mode
Raw CFI query table read from device:
0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
20: 51 00 52 00 59 00 02 00 00 00 40 00 00 00 00 00 Q.R.Y.....@.....
30: 00 00 00 00 00 00 27 00 36 00 00 00 00 00 07 00 ......'.6.......
40: 07 00 0A 00 00 00 03 00 05 00 04 00 00 00 17 00 ................
CFI query table read from device:
10: 51 52 59 02 00 40 00 00 00 00 00 27 36 00 00 07 QRY..@.....'6...
20: 07 0A 00 03 05 04 00 17 02 00 05 00 02 07 00 20 ...............
30: 00 7E 00 00 01 00 00 00 00 00 00 00 00 00 00 00 .~..............
CFI extended table read from device:
0: 50 52 49 31 33 10 02 01 00 08 00 00 02 B5 C5 02 PRI13...........
10: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Read autoselect code 0001-007E (in 16 bit mode)
Processing CFI override data from [FLASH-0001-007E]
Override data came from over.txt
Applied override CFI[0x10] = 0x51
Applied override CFI[0x11] = 0x52
Applied override CFI[0x12] = 0x59
Applied override CFI[0x13] = 0x02
Applied override CFI[0x14] = 0x00
Applied override CFI[0x15] = 0x04
Applied override CFI[0x16] = 0x00
Applied override CFI[0x17] = 0x00
Applied override CFI[0x18] = 0x00
Applied override CFI[0x19] = 0x00
Applied override CFI[0x1A] = 0x00
Applied override CFI[0x1B] = 0x27
Applied override CFI[0x1C] = 0x36
Applied override CFI[0x1D] = 0x00
Applied override CFI[0x1E] = 0x00
Applied override CFI[0x1F] = 0x07
Applied override CFI[0x20] = 0x07
Applied override CFI[0x21] = 0x0A
Applied override CFI[0x22] = 0x00
Applied override CFI[0x23] = 0x03
Applied override CFI[0x24] = 0x05
Applied override CFI[0x25] = 0x04
Applied override CFI[0x26] = 0x00
Applied override CFI[0x27] = 0x17
Applied override CFI[0x28] = 0x01
Applied override CFI[0x29] = 0x00
Applied override CFI[0x2A] = 0x00
Applied override CFI[0x2B] = 0x00
Applied override CFI[0x2C] = 0x02
Applied override CFI[0x2D] = 0x07
Applied override CFI[0x2E] = 0x00
Applied override CFI[0x2F] = 0x20
Applied override CFI[0x30] = 0x00
Applied override CFI[0x31] = 0x7E
Applied override CFI[0x32] = 0x00
Applied override CFI[0x33] = 0x00
Applied override CFI[0x34] = 0x01
Applied override CFI[0x35] = 0x00
Applied override CFI[0x36] = 0x00
Applied override CFI[0x37] = 0x00
Applied override CFI[0x38] = 0x00
Applied override CFI[0x39] = 0x00
Applied override CFI[0x3A] = 0x00
Applied override CFI[0x3B] = 0x00
Applied override CFI[0x3C] = 0x00
Applied override CFI[0x40] = 0x50
Applied override CFI[0x41] = 0x52
Applied override CFI[0x42] = 0x49
Applied override CFI[0x43] = 0x31
Applied override CFI[0x44] = 0x33
Applied override CFI[0x45] = 0x00
Applied override CFI[0x46] = 0x02
Applied override CFI[0x47] = 0x01
Applied override CFI[0x48] = 0x01
Applied override CFI[0x49] = 0x04
Applied override CFI[0x4A] = 0x00
Applied override CFI[0x4B] = 0x00
Applied override CFI[0x4C] = 0x01
Applied override CFI[0x4D] = 0xB5
Applied override CFI[0x4E] = 0xC5
Applied override CFI[0x4F] = 0x04
Applied override CFI[0x50] = 0x01
Applied override CFI[0x51] = 0x00
Device size is 8MByte
Erase regions are:
offset 0: 8 x 8K
offset 10000: 127 x 64K
Device supports AMD style programming algorithm
Multi-byte programming not supported
Sector erase timeout is 16s
Word program timeout is 1ms
: Checksumming existing contents
00000000 : Checksum failed - needs erase then program
00002000 : Checksum failed - needs program
00004000 : Checksum failed - needs program
00006000 : Checksum failed - needs program
00008000 : Checksum failed - needs program
0000A000 : Checksum failed - needs program
0000C000 : Checksum failed - needs program
0000E000 : Checksum failed - needs program
00010000 : Checksum failed - needs program
00020000 : Checksum failed - needs program
00030000 : Checksum failed - needs program
00040000 : Checksum failed - needs program
00050000 : Checksum failed - needs program
00060000 : Checksum failed - needs program
00070000 : Checksum failed - needs program
00000000 : Reading existing contents
Checksums took 0.3s
00000000 ( 0%): Erasing
Erased 8kB in 0.0s
00000000 ( 0%): Programming
Program failed
Leaving target processor paused
please help!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
00000E00 ( 5%): Programming
00000F00 ( 5%): Programming 00001000 ( 6%): Programming Program sequence: Write address 0x00000000 <= 0xF0 Write address 0x0000AAAA <= 0xAA Write address 0x00005554 <= 0x55 Write address 0x0000AAAA <= 0xA0 Write address 0x00001042 <= 0x39FA Read address 0x00001042 => 0x7A Program failed at offset 1042 Leaving target processor paused
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page