Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHello snapper,
Normally the source code of your device driver is placed in the directory “%nios-root%/components”. The code includes a ptf-file which is necessary to include your device into the SOPCB. Did you add your new hardware in SOPCB in your project? After adding the device and generating the system in SOPCB and creating a new project in the Nios II IDE the initialization code will be called automatically when the system starts-up. This call (“alt_sys_init”) can be found in “%nios-software-project-root%_syslib/Debug/system_description/alt_sys_init.c”. Bye, niosIIuser