embeded/FPGA - ALTERA

de0-nano 와 codex로 flash 통합하기

구차니 2026. 11. 16. 23:52

8년전에 실패한거 그냥 딸각으로 되어버리네 와...

 

quartus 25.1 에서 하려니 먼가 많이 달라진듯.. ㅠㅠ

qpf로 프로젝트 열고

nios_hello.v 확인. 특별한건 없다.

module nios_hello(input wire CLOCK_50, input wire [1:0] KEY);
  hello_system u0(.clk_clk(CLOCK_50), .reset_reset_n(KEY[0]));
endmodule

 

tools - platform designer

 

에러가 나고 막 난리인데.. 어떻게 빌드한거야?

그리고 epcs 없이 플래시에서 부팅하도록 한 구성이라고 하는데 무슨 말이지.. 

 

ram or rom 부분을 눌러서 보는데 램 초기화 파일로 app.hex라..

 

nios_v는 quartus lite 25.1 에서

nios_ii는 quartus lite 18.1  에서 하란다.

 

다시 18.1로 실행해서 qpf 열고

tools - platform designer와 nios ii software build tools for eclipse 를 실행한다.

 

platform designer 에서는 hello_system.qsys를 열었고 아래처럼 설정되어있다.

리셋벡터 0x0000 0000 이면 플래시려나?

 

별로 안그리운 eclipse 화면 흐음..

 

프로젝트에서 nios 2  - bsp editor?

 

리셋벡터가 메모리의 0x0000 0000 으로 되어있다.

그럼 결국은 app.hex가 알아서 복사해서 메모리로 올려주기 때문에 가능한건가?

 

jtag의 시리얼 포트 여는 명령이라고 한다. 위에꺼랑 상관없이 이미 빌드되서 들어간거라 잘 뜬다 -ㅁ-

C:\>C:\intelFPGA_lite\18.1\quartus\bin64\nios2-terminal.exe
nios2-terminal: The selected JTAG cable is either not connected to a board, or
nios2-terminal: the board is not switched on.

C:\>C:\intelFPGA_lite\18.1\quartus\bin64\nios2-terminal.exe
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

    0 hello world
    1 hello world
    2 hello world
    3 hello world
    4 hello world


nios2-terminal: exiting due to ^C on host