Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHi Nachodizz990,
Thanks for the link. I successfully imported this project, added my printf’s comments, compiled it, configured Debug Configuration.. I don’t have any errors, however nothing is output on Console except my printf comment inserted just after int main (int argc, char **argv). After putting some breakpoints and removing “//” before “ printf("DIPSWITCHES => 0X%X\r\n",dipsw_value );”, I see that there might be a problem with code line “dipsw_value = alt_read_word(DIPSWITCH_address);” since uncommented line “printf("DIPSWITCHES => 0X%X\r\n",dipsw_value );” is never executed, the system freezes. Question should I build a system in QSYS first, in order to generate and provide soc_system.h?