Forum Discussion

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

NIOS II-Using FLASH programmer to download the correct procedure, but do not run ok !

Hardware system: EP2C8 + EPCS4 + SDRAM + LED + LCD

Hardware Background: Using Verilog code to write, compile, AS manner POF file to EPCS4, off electricity, the electricity, the normal functioning properly --- LED flashes Shuo, LCD graphic display properly. (Make sure the circuit is no problem about EPCS4)

Software systems: NIOS II

The problem: Run as Mode, LED normally flashes, LCD can also display graphics properly. Downloaded to EPCS4, closing the electric, power, LED will normally flash, But LCD no display!

ing FLASH programmer download, print out a letter of interest rates is as follows:

# !/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 E:/NIOSII/Study/IPM_IM_NIOS/software/IPM_IM/Debug

# Creating .flash file for the FPGA configuration

"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="E:/NIOSII/Study/IPM_IM_NIOS/IPM_

IM_NIOS.sof" --output="IPM_IM_NIOS.flash"

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

Info: Running Quartus II Convert_programming_file

Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=IPM_I

M_NIOS.opt E:/NIOSII/Study/IPM_IM_NIOS/IPM_IM_NIOS.sof IPM_IM_NIOS.pof

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

Info: Peak virtual memory: 71 megabytes

Info: Processing ended: Tue Mar 09 14:07:03 2010

Info: Elapsed time: 00:00:04

Info: Total CPU time (on all processors): 00:00:03

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

Info: Running Quartus II Convert_programming_file

Info: Command: quartus_cpf --no_banner --convert IPM_IM_NIOS.pof IPM_IM_NIOS.rpd

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

Info: Peak virtual memory: 70 megabytes

Info: Processing ended: Tue Mar 09 14:07:07 2010

Info: Elapsed time: 00:00:04

Info: Total CPU time (on all processors): 00:00:04

# Programming flash with the FPGA configuration

"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800 --instance

=0 "IPM_IM_NIOS.flash"

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

Resetting and pausing target processor: OK

: Checksumming existing contents

00000000 : Verifying existing contents

00010000 : Verifying existing contents

00000000 : Reading existing contents

00010000 : Reading existing contents

Checksummed/read 7kB in 0.1s

00000000 ( 0%): Erasing

00010000 (50%): Erasing

Erased 128kB in 2.1s (60.9kB/s)

00000000 ( 0%): Programming

00010000 (50%): Programming

Programmed 122KB +6KB in 3.0s (42.6KB/s)

Did not attempt to verify device contents

Leaving target processor paused

# Creating .flash file for the project

"$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="IPM_IM_NIOS.flash" --input="IPM_

IM.elf" --output="epcs_flash_controller.flash"

# Programming flash with the project

"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800 --instance

=0 "epcs_flash_controller.flash"

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

Resetting and pausing target processor: OK

: Checksumming existing contents

00010000 : Verifying existing contents

00020000 : Verifying existing contents

00010000 : Reading existing contents

00020000 : Reading existing contents

Checksummed/read 82kB in 2.0s

00010000 ( 0%): Erasing

00020000 (50%): Erasing

Erased 128kB in 2.1s (60.9kB/s)

00010000 ( 0%): Programming

00020000 (50%): Programming

Programmed 47KB +81KB in 3.0s (42.6KB/s)

Did not attempt to verify device contents

Leaving target processor paused