Altera_Forum
Honored Contributor
10 years agonios system download to epcs4 failed
nios system download to epcs4 failed
hi everyone, i want to download my project to epcs, i do the follows 1.i build a nios project which includes sdram, EPCS/EPCQx1 Serial Flash Controller, and the reset vector memory of the nios is epcs_flash_controller_0.epce_control_port(of course there are sysid pll, and so on), i change the Dual-Purpose Pins to "Use as regular I/O"; 2.the software project is very simple, just led the led blink; 3.in the eclipse, i debug the project, and it works(the led blinking) 4.i download the sof and elf file though flash programmer, 5.when i finish the download, the flash programmer did not tell me the download is failed, but the led is not blinking, so at least the nios did not run. the "processing" content in flash programmer Info: Info: ******************************************************************* Info: Info: Running Quartus II 32-bit Convert_programming_file Info: Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=E:/qiaodong/altera/SF-CY3/SF_CY3_DVD/prj/ex2/flash/ex2_epcs_flash_controller_0.opt E:/qiaodong/altera/SF-CY3/SF_CY3_DVD/prj/ex3/ex2.sof E:/qiaodong/altera/SF-CY3/SF_CY3_DVD/prj/ex2/flash/ex2_epcs_flash_controller_0.pof Info: Info (210033): Memory Map File E:/qiaodong/altera/SF-CY3/SF_CY3_DVD/prj/ex2/flash/ex2_epcs_flash_controller_0.map contains memory usage information for file E:/qiaodong/altera/SF-CY3/SF_CY3_DVD/prj/ex2/flash/ex2_epcs_flash_controller_0.pof Info: Info: Quartus II 32-bit Convert_programming_file was successful. 0 errors, 0 warnings Info: Info: Peak virtual memory: 185 megabytes Info: Info: Processing ended: Tue Jun 16 13:44:49 2015 Info: Info: Elapsed time: 00:00:01 Info: Info: Total CPU time (on all processors): 00:00:01 Info: Info: ******************************************************************* Info: Info: Running Quartus II 32-bit Convert_programming_file Info: Info: Command: quartus_cpf --no_banner --convert E:/qiaodong/altera/SF-CY3/SF_CY3_DVD/prj/ex2/flash/ex2_epcs_flash_controller_0.pof E:/qiaodong/altera/SF-CY3/SF_CY3_DVD/prj/ex2/flash/ex2_epcs_flash_controller_0.rpd Info: Info: Quartus II 32-bit Convert_programming_file was successful. 0 errors, 0 warnings Info: Info: Peak virtual memory: 180 megabytes Info: Info: Processing ended: Tue Jun 16 13:44:51 2015 Info: Info: Elapsed time: 00:00:01 Info: Info: Total CPU time (on all processors): 00:00:01 Info: Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Info: Resetting and pausing target processor: OK Info: Reading System ID at address 0x00012010: verified Info: Info: : Checksumming existing contents Info: Info: 00000000 : Verifying existing contents Info: Info: 00010000 : Verifying existing contents Info: Info: 00020000 : Verifying existing contents Info: Info: 00000000 : Reading existing contents Info: Info: 00010000 : Reading existing contents Info: Info: 00020000 : Reading existing contents Info: Info: Checksummed/read 51kB in 1.4s Info: Info: 00000000 ( 0%): Erasing Info: Info: 00010000 (33%): Erasing Info: Info: 00020000 (66%): Erasing Info: Info: Erased 192kB in 1.6s (120.0kB/s) Info: Info: 00000000 ( 0%): Programming Info: Info: 00010000 (33%): Programming Info: Info: 00020000 (66%): Programming Info: Info: Programmed 142KB +50KB in 4.6s (41.7KB/s) Info: Did not attempt to verify device contents Info: Leaving target processor paused Info: Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Info: Resetting and pausing target processor: OK Info: Reading System ID at address 0x00012010: verified Info: Info: : Checksumming existing contents Info: Info: 00020000 : Verifying existing contents Info: Info: 00020000 : Reading existing contents Info: Info: Checksummed/read 32kB in 0.8s Info: Info: 00020000 ( 0%): Erasing Info: Info: Erased 64kB in 0.5s (128.0kB/s) Info: Info: 00020000 ( 0%): Programming Info: Info: Programmed 33KB +31KB in 1.5s (42.6KB/s) Info: Did not attempt to verify device contents Info: Leaving target processor paused the "infromation" content in flash programmer INFO: Generating shell script of launched commands. INFO: Generated shell script: E:\qiaodong\altera\SF-CY3\SF_CY3_DVD\prj\ex2\script\flash_programmer.sh the "problems" content in flash programmer WARNING: Obtaining system ID information for selected processor software codes:# include "alt_types.h"# include "altera_avalon_pio_regs.h"# include "sys/alt_irq.h"# include "system.h"# include <stdio.h># include <unistd.h> void delay(void); int main(void) { while(1) { IOWR_ALTERA_AVALON_PIO_DATA(PIO_BASE,0x1); delay(); IOWR_ALTERA_AVALON_PIO_DATA(PIO_BASE,0x0); delay(); } return 0; } //delay function void delay(void) { alt_u32 i =0; while(i < 100000) { i++; } } 1. is the download success or not? 2. if the download success, why the nios does not run?(the led not blink) 3. if the download failed, how can i do? thanks!