Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHello Galfoz,
I ve checked that already. In QSYS the PIO was added as an output (8 bits width) and renamed as "led_pio". That entry can be found in "system.h". Here is a cutout. system.h ------------------------------------------------ # define ALT_MODULE_CLASS_led_pio altera_avalon_pio # define LED_PIO_BASE 0x21020 # define LED_PIO_BIT_CLEARING_EDGE_REGISTER 0 # define LED_PIO_BIT_MODIFYING_OUTPUT_REGISTER 0 # define LED_PIO_CAPTURE 0 # define LED_PIO_DATA_WIDTH 8 # define LED_PIO_DO_TEST_BENCH_WIRING 0 # define LED_PIO_DRIVEN_SIM_VALUE 0 # define LED_PIO_EDGE_TYPE "NONE" # define LED_PIO_FREQ 50000000 # define LED_PIO_HAS_IN 0 # define LED_PIO_HAS_OUT 1 # define LED_PIO_HAS_TRI 0 # define LED_PIO_IRQ -1 # define LED_PIO_IRQ_INTERRUPT_CONTROLLER_ID -1 # define LED_PIO_IRQ_TYPE "NONE" # define LED_PIO_NAME "/dev/led_pio" # define LED_PIO_RESET_VALUE 0 # define LED_PIO_SPAN 16 # define LED_PIO_TYPE "altera_avalon_pio" ----------------------------------------------------- The name "led_pio" is fitting with the entry generated in the system.h. Case sensitivity does not seem to be considered cos nothing happened when i changed the function s argument which is called in the main(). Even putting the adress_base itself results into an error. Moreover there s only one warning in QSYS. ------------------------------------------------------- Warning: nios_system.cpu: Nios II Classic cores are now superseded by improved Gen 2 cores. -------------------------------------------------------