Forum Discussion
Altera_Forum
Honored Contributor
14 years agoNow I have new problem. Video from D5M camera is normally displayed on the VGA screen. The problem arises when I start to write a program for NIOS.
# include "main.h" int main() { alt_up_av_config_dev* d5m=alt_up_av_config_open_dev(D5M_CONFIG_NAME); return 0; } This simple code build successfully. But when I run it in debugger I have wrong d5m (alt_up_av_config_dev) structure: base adress is correct, but type=17 (instead of 9 for TRDB_D5M_CONFIG). Since the alt_up_av_config_dev structure is wrong, any further attempts to read / write from/to configuration registers of D5M module do not worked out. What am I doing wrong?