Forum Discussion

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

Nios5.1 FlashProgrammer

Hello everybody

I trying to use new nios5.1 release

I install Quatrus 5.1 and nios5.1

I take nios2 1c20 development board

after this i was trying to run Hello_Word project based on standart featured system

I create hello_word1 standart software application

build it and try to programm with HW configuration

And nios ide trow to console next :

What i do wrong ?

# ! /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 C:/altera/kits501/nios2/examples/verilog/niosII_cyclone_1c20/standard/softwar

e/hello_world_1/Debug

# Creating .flash file for the FPGA configuration

$SOPC_KIT_NIOS2/bin/sof2flash --offset=0x600000 --input=C:/altera/kits501/nios2/

examples/verilog/niosII_cyclone_1c20/standard/standard.sof --output=standard.fla

sh

Info: *******************************************************************

Info: Running Quartus II Convert_programming_file

Info: Command: quartus_cpf --no_banner --convert C:/altera/kits501/nios2/example

s/verilog/niosII_cyclone_1c20/standard/standard.sof standard.rbf

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings

Info: Processing ended: Tue Jan 31 14:40:57 2006

Info: Elapsed time: 00:00:01

# Programming flash with the FPGA configuration

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-0]' --devic

e=1 --sidp=0x021208B8 --id=474810061 --timestamp=1114053813 --base=0x00000000 st

andard.flash

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00

Resetting and pausing target processor: OK

Reading System ID at address 0x021208B8: FAIL

ID value does not match: read 0xFFFFFFFF; expected 0x1C4D06CD

Timestamp value does not match: image on board is older than expected

Read timestamp 1:59:59 1970/01/01; expected 6:23:33 2005/04/21

Leaving target processor paused

# Creating .flash file for the project

$SOPC_KIT_NIOS2/bin/elf2flash --base=0x00000000 --end=0x7fffff --reset=0x0 --inp

ut=hello_world_1.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/components/

altera_nios2/boot_loader_cfi.srec

# Programming flash with the project

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-0]' --devic

e=1 --sidp=0x021208B8 --id=474810061 --timestamp=1114053813 --base=0x00000000 ex

t_flash.flash

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00

Resetting and pausing target processor: OK

Reading System ID at address 0x021208B8: FAIL

ID value does not match: read 0xFFFFFFFF; expected 0x1C4D06CD

Timestamp value does not match: image on board is older than expected

Read timestamp 1:59:59 1970/01/01; expected 6:23:33 2005/04/21

Leaving target processor paused

1 Reply

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

    AlexS,

    I think the clue here is this section of the FLASH programmer log:

    --- Quote Start ---

    originally posted by alexs@Jan 31 2006, 05:55 AM

    reading system id at address 0x021208b8: fail

    id value does not match: read 0xffffffff; expected 0x1c4d06cd

    timestamp value does not match: image on board is older than expected

    read timestamp 1:59:59 1970/01/01; expected 6:23:33 2005/04/21

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=12473)

    --- quote end ---

    --- Quote End ---

    The Standard design has a System ID Peripheral that has a unique code for that compiled design. Since the IDE read back 0xFFFFFFFF rather than the expected system ID code of 0x1C4D06CD the problem is probably on the board side. When you see a system ID of 0xFFFFFFFF or 0x00000000 this is usually a good indicator of a board setup issue.

    Try to run a program from the IDE rather than flash program doing the following steps:

    -Using the Quartus II programmer - program the NIOS II 1c20 Standard design on the development board

    -Start up the NIOS II IDE

    -Create a new Hello_world program and build it

    -run/debug the new hello_world program from the IDE

    When you run a program from the IDE it should also read back the system ID and verify the system on the devlopment board. If that also read 0xFFFFFFFF then do the following checks:

    1) Is the board powered ON and got the right type of power supply.

    2) Is a design loaded on the FPGA, to read back 0xFFFFFFFF usually indicates this type of problem. If you are loading one of the example designs, it usually has all the IOs properly mapped (and has unused IOs tri-stated)

    3) Verify that the USB-Blaster is properly connected to the JTAG header - check all wire connections.

    4) make sure the USB-Blaster is connected directly to the PC USB port, some unpowered USB hubs seems to corrupt the USB signal when you have a lot of data being downloaded or uploaded from the devlopment board to the IDE program.

    5) does your board power-up and load the "Safe" design when you press the "Force Safe" Button? this design will give you some shifting LEDs, rotating seven segment display and the LCD display if hooked it up will scroll a message.

    You should also look at the Flash programer Users Guide:

    http://www.altera.com/literature/ug/ug_nio..._programmer.pdf (http://www.altera.com/literature/ug/ug_nios2_flash_programmer.pdf)

    (Check out appendix D on troubleshooting flash programming. It cites your problem in the troubleshooting section and what may cause it and how to solve it)

    Regards,

    ATJ