Forum Discussion

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

Flash programmer.

cd Z:/linux_ws/linux_ws/kernel_1/build
#  Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --flash=FLASH --base=0x00000000 --end=0x3fffff --r
eset=0x0 --input=vmlinux --output=cfi_flash_0.flash --boot=$SOPC_KIT_NIOS2/compo
nents/altera_nios2/boot_loader_cfi.srec
#  Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=cfi_flash_0.flash --sof=$SOPC
_KIT_NIOS2/components/my_kit_on_stend/system/my_kit_on_stend.sof --base=0x004000
00
08.02.2006 11:18:57 - (INFO) nios2-flash-programmer: Launching Quartus Programme
r to download:
     d:/hdk/altera/kits/nios2/components/my_kit_on_stend/system/my_kit_on_stend.
sof
Pre-Reading 1020KBytes of data from FLASH:
    |----.----+----.----|
    ********************* (43.763 sec).
Erasing 23 Sectors:
    |----.----+----.----|
    ********************* (10.736 sec).
Writing 1024KBytes :
    |----.----+----.----|
    ***
Bad ack from Target.
  Yikes!, Bad Acknowledge Command-Field, 
  Command-Packet Was:
+---Flash-Monitor Protocol Packet----------
|  Command      : W
|  Flash-Base   : 00400000
|  Flash-Offset : 00025c00
|  Command-Set  : 2
|  Flash Width  : 2
|  Flash Mode   : 1
|   payload size: 00000200
|  Payload      :
|  00000000: 3A D8 C4 10 FA 90 04 10 3A 88 85 28 17 01 C0 DF | :.......:..(....
|  00000010: 17 00 00 DC 04 02 C0 DE 3A 28 00 F8 04 F1 FF DE | ........:(......
|  00000020: 15 0E C0 DF 15 07 00 D9 15 08 40 D9 15 09 00 D8 | ..........@.....
|  00000030: 15 0A 00 D8 15 0B 00 D8 15 0C 00 D8 15 0D 00 D8 | ................
|  00000040: 04 00 B8 00 3A 88 13 D8 3A 70 92 48 7A D1 07 28 | ....:...:p.Hz..(
|  00000050: 44 00 80 01 CC 07 40 29 BA 90 06 18 17 00 00 4A | D.....@).......J
|  00000060: 3A 98 4C 31 3A 88 CF 20 17 00 40 39 04 05 C0 D8 | :.L1:.. ..@9....
|  00000070: B4 80 80 00 04 88 81 10 15 0A 00 DA 15 0B 80 D8 | ................
|  00000080: 15 0D C0 D8 3A 70 8A 29 15 0C C0 D8 17 07 80 D8 | ....:p.)........
|  00000090: 17 08 C0 D8 17 09 80 D9 15 00 80 D8 17 0A 80 D8 | ................
|     ...   
|  00000170: C0 A3 31 20 26 0E 00 10 2E 08 80 00 3A 88 25 10 | ..1 &.......:.%.
|  00000180: 04 02 40 A4 17 00 00 8C C4 FF BF 94 04 01 40 8C | ..@...........@.
|  00000190: 17 05 80 80 2E 34 80 98 1E FA 3F 90 17 00 80 A0 | .....4....?.....
|  000001A0: 1E 40 00 10 40 EE C0 20 17 11 40 D9 2E E6 7F 99 | .@..@.. ..@.....
|  000001B0: 04 0D 80 A9 3A 30 11 00 3A 88 0B 40 3A 30 11 00 | ....:0..:..@:0..
|  000001C0: 8C FF 3F 42 3A 70 01 40 17 00 00 31 17 00 80 30 | ..?B:p.@...1...0
|  000001D0: B4 FF FF 00 C4 FF FF 18 AC 00 00 21 3A 70 C4 10 | ...........!:p..
|  000001E0: 15 00 80 30 3A C0 08 20 3A 88 11 28 3A 70 01 40 | ...0:.. :..(:p.@
|  000001F0: 26 01 00 20 04 F9 BF 05 3A 30 11 00 3A 88 0B 40 | &.. ....:0..:..@
+------------------------------------------
08.02.2006 11:20:48 - (SEVERE) nios2-flash-programmer: Unable to write to flash
08.02.2006 11:20:48 - (SEVERE) nios2-flash-programmer: Error: Write-operation fa
iled on device. - exiting.
  Ack-Packet Was:
+---Flash-Monitor Protocol Packet----------
|  Command      : !
|  Flash-Base   : 00400000
|  Flash-Offset : 00025c00
|  Command-Set  : 2
|  Flash Width  : 2
|  Flash Mode   : 1
|   payload size: 00000000
|  Payload      :
+------------------------------------------
Unable to send write-packet @154624
buffer-chunk write failed @154624
erase-block write failed @154624
write failed @131072

Flash if Am29DL322GB-90EI(I do not have another).

This simple system : ep1c3t144c8+k4s281632-t74+Am29DL322GB-90EI.

How to resolve this problem? It each time repeats.

2 Replies