suima8のメモ

メモです

memo

Quartus: コマンドからファームウェアのサンプルプロジェクトを作成

Quartus でコマンドからファームウェアのサンプルプロジェクトを作成

使用可能なサンプルプロジェクトの一覧を調べる.

nios2-swexample-create --list

Quartus 20.2では以下のサンプルが用意されていた.

blank_project
web_server
memtest_small
simple_socket_server
memtest
count_binary
hello_world_small
hello_alt_main
board_diag
hello_world
float2_performance
float2_gcc
float2_functionality
hello_ucosii

例: Hello World (NO OS)

Nios II が動いているか確かめる.sopcinfoのパスは適宜変更する.

nios2-swexample-create --sopc-file=$(path to system.sopcinfo) --type=hello_world --elf-name=app.elf --app-dir=app --bsp-dir=bsp

例: Hello World (MicroC/OS-II)

Nios II + ucos ii を動かす.

nios2-swexample-create --sopc-file=$(path to system.sopcinfo) --type=hello_ucosii --elf-name=app.elf --app-dir=app --bsp-dir=bsp