Readme - Hello World Software Example
DESCRIPTION:
Simple program that prints "Hello from Nios II"
REQUIREMENTS:
This example will run on the following Nios II designs, targeting the Nios
Stratix & Cyclone development boards:
- Standard
- Full Featured
- Fast
- Low Cost
The purpose of this example is to demonstrate the smallest possible Hello
World application, using the Nios II HAL library. The memory footprint
of this hosted application is ~332 bytes by default using the standard
reference design. For a more fully featured Hello World application
example, see the example titled "Hello World".
The memory footprint of this example has been reduced by making the
following changes to the normal "Hello World" example.
Check in the Nios II Software Developers Manual for a more complete
description.
In the SW Application project (small_hello_world):
- In the C/C++ Build page
- Set the Optimization Level to -Os
In System Library project (small_hello_world_syslib):
- In the C/C++ Build page
- Set the Optimization Level to -Os
- Define the preprocessor option ALT_NO_INSTRUCTION_EMULATION
This removes software exception handling, which means that you cannot
run code compiled for Nios II cpu with a hardware multiplier on a core
without a the multiply unit. Check the Nios II Software Developers
Manual for more details.
- In the System Library page:
- Set Periodic system timer and Timestamp timer to none
This prevents the automatic inclusion of the timer driver.
- Set Max file descriptors to 4
This reduces the size of the file handle pool.
- Uncheck Clean exit (flush buffers)
This removes the call to exit, and when main is exitted instead of
calling exit the software will just spin in a loop.
- Check Small C library
This uses a reduced functionality C library, which lacks
support for buffering, file IO, floating point and getch(), etc.
Check the Nios II Software Developers Manual for a complete list.
- Check Reduced device drivers
This uses reduced functionality drivers if they're available. For the
standard design this means you get polled UART and JTAG UART drivers,
no support for the LCD driver and you lose the ability to program
CFI compliant flash devices.
PERIPHERALS USED:
This example exercises the following peripherals:
- STDOUT device (UART or JTAG UART)
SOFTWARE SOURCE FILES:
This example includes the following software source files:
- small_hello_world.c:
BOARD/HOST REQUIREMENTS:
This example requires only a JTAG connection with a Nios Development board. If
the host communication settings are changed from JTAG UART (default) to use a
conventional UART, a serial cable between board DB-9 connector and the host is
required.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
PID算法的FPGA实现 (1771个子文件)
kernelall.ptf.8.0 56KB
libhal_bsp.a 373KB
libpidalll_syslib.a 351KB
libPID_ZN_syslib.a 351KB
libhello_world_99_syslib.a 323KB
libhello_world_small_99_syslib.a 310KB
kernelall.ptf.bak 82KB
pidall.tcl.bak 32KB
pidall.bdf 28KB
pidall.map.bpm 40KB
pidall.cmp.bpm 38KB
kernelall.bsf 5KB
pll.bsf 3KB
parallel_add0.bsf 3KB
lpm_mult1.bsf 2KB
lpm_mult0.bsf 2KB
lpm_mult2.bsf 2KB
chushi1.bsf 2KB
chushi2.bsf 2KB
qinout.bsf 2KB
adddelay.bsf 2KB
q_e_tong2.bsf 2KB
q_e_tong.bsf 2KB
settings.bsp 59KB
alt_log_printf.c 14KB
altera_avalon_uart_init.c 11KB
altera_avalon_jtag_uart_init.c 10KB
alt_gmon.c 9KB
alt_instruction_exception_entry.c 9KB
altera_avalon_uart_read.c 9KB
altera_avalon_uart_write.c 8KB
altera_avalon_jtag_uart_write.c 7KB
altera_avalon_jtag_uart_read.c 7KB
alt_irq_handler.c 6KB
alt_main.c 6KB
alt_ioctl.c 6KB
altera_avalon_uart_ioctl.c 6KB
alt_open.c 6KB
alt_dev.c 6KB
alt_tick.c 5KB
alt_sbrk.c 5KB
alt_printf.c 5KB
alt_write.c 5KB
alt_iic.c 5KB
alt_gettod.c 5KB
alt_fstat.c 5KB
alt_isatty.c 5KB
alt_alarm_start.c 5KB
alt_iic_isr_register.c 5KB
alt_read.c 5KB
alt_irq_register.c 4KB
alt_fcntl.c 4KB
alt_io_redirect.c 4KB
altera_avalon_uart_fd.c 4KB
alt_lseek.c 4KB
altera_avalon_sysid.c 4KB
alt_instruction_exception_register.c 4KB
alt_settod.c 4KB
alt_kill.c 4KB
alt_get_fd.c 4KB
alt_dcache_flush_no_writeback.c 4KB
alt_busy_sleep.c 4KB
alt_close.c 4KB
alt_dcache_flush.c 4KB
altera_avalon_jtag_uart_fd.c 4KB
alt_find_file.c 4KB
alt_exit.c 4KB
alt_load.c 4KB
alt_do_ctors.c 4KB
alt_do_dtors.c 4KB
alt_fs_reg.c 4KB
uart.c 4KB
uart.c 4KB
uart.c 4KB
alt_find_dev.c 4KB
hello_world_small.c 4KB
alt_flash_dev.c 4KB
main.c 4KB
altera_avalon_jtag_uart_ioctl.c 4KB
alt_times.c 3KB
alt_fd_lock.c 3KB
alt_icache_flush.c 3KB
alt_sys_init.c 3KB
alt_sys_init.c 3KB
alt_sys_init.c 3KB
alt_sys_init.c 3KB
alt_dma_rxchan_open.c 3KB
alt_dma_txchan_open.c 3KB
alt_getchar.c 3KB
alt_stat.c 3KB
alt_fork.c 3KB
alt_link.c 3KB
alt_execve.c 3KB
alt_rename.c 3KB
alt_fd_unlock.c 3KB
alt_unlink.c 3KB
alt_putchar.c 3KB
alt_putstr.c 3KB
alt_release_fd.c 3KB
alt_env_lock.c 3KB
共 1771 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
qq_27346215
- 粉丝: 4
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页