Altera_Forum
Honored Contributor
19 years agoFlash Programmer ERROR!
Hi!
I've been experiencing problems with the Flash Programmer. At the beginning, it only happened once a day, but now I can't write a program to flash. the fact is that when I try to write the program to flash, the IDE does the pre-reading, erase, and when it has to write, the size is not correct. In my case, it should write 252KB (the same as the pre-reading), but it writes 32KB, 10KB, ... "Sometimes" it succeeds, with 352KB written, and the program works, but the almost every time now, it doesn't. I thought it could be some IDE error, and I have installed all the patches I've found, but the problem remains... Has someone been experiencing this? any idea? The IDE window shows: <div class='quotetop'>QUOTE </div> --- Quote Start --- #! /bin/sh# # This file was automatically generated by the Nios II IDE Flash Programmer.# # It will be overwritten when the flash programmer options change.# cd Z:/tpu/EctProjects/Nios/ourprg # Creating .flash file for the project $SOPC_KIT_NIOS2/bin/elf2flash --flash=CI25 --base=0x00000000 --end=0x7fffff --re set=0x0 --input=mptu02.35_tpu_lib.elf --output=cfi_flash_0.flash --boot=$SOPC_KI T_NIOS2/components/altera_nios2/boot_loader_cfi.srec # Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=cfi_flash_0.flash --sof=C:/al tera/NIOS2_Projects/firmware/mptu02_cycloneII35_v6/MPTU02_FLASH/system/MPTU02_FL ASH.sof --base=0x00800000 09-mar-2006 13:09:57 - (INFO) nios2-flash-programmer: Launching Quartus Programm er to download: C:/altera/NIOS2_Projects/firmware/mptu02_cycloneII35_v6/MPTU02_FLASH/system /MPTU02_FLASH.sof Pre-Reading 352KBytes of data from CI25: |----.----+----.----| ********************* (21.516 sec). Erasing 4 Sectors: |----.----+----.----| ********************* (3.531 sec). Writing 32KBytes : |----.----+----.----| ********************* (3.438 sec). Verifying 32KBytes of data: |----.----+----.----| ********************* (1.937 sec). 09-mar-2006 13:10:56 - (INFO) nios2-flash-programmer: Success. Verified 32Kbytes written to CI25. 09-mar-2006 13:10:56 - (INFO) nios2-flash-programmer: Flash programming complete[/b] --- Quote End --- Alex Bueno