adc alt_sys_init.c build error
Quartus 21.1
MAX 10 10M08
Created an NIOS II with ADC, PLL, JTAG UART, TIMER. design builds fine in Quartus.
Creating an application in Eclipse with the hello_world_small template. Build the project and I am getting errors in alt_sys_inti.c that I cannot figure out how to fix:
-----------------------------------------------------------------------------------------------------
in file included from alt_sys_init.c:65:
alt_sys_init.c:75:31: error: 'MODULAR_ADC0_NAME' undeclared here (not in a function)
75 | ALTERA_MODULAR_ADC_INSTANCE ( MODULAR_ADC0, modular_adc0);
| ^~~~~~~~~~~~
./drivers/inc/altera_modular_adc.h:97:5: note: in definition of macro 'ALTERA_MODULAR_ADC_INSTANCE'
97 | name##_NAME, \
| ^~~~
alt_sys_init.c:75:31: error: 'MODULAR_ADC0_DUAL_ADC_MODE' undeclared here (not in a function); did you mean 'MODULAR_ADC0_SEQUENCER_CSR_DUAL_ADC_MODE'?
75 | ALTERA_MODULAR_ADC_INSTANCE ( MODULAR_ADC0, modular_adc0);
| ^~~~~~~~~~~~
./drivers/inc/altera_modular_adc.h:110:4: note: in definition of macro 'ALTERA_MODULAR_ADC_INSTANCE'
110 | name##_DUAL_ADC_MODE \
| ^~~~
alt_sys_init.c: In function 'alt_sys_init':
alt_sys_init.c:101:31: error: 'MODULAR_ADC0_IRQ_INTERRUPT_CONTROLLER_ID' undeclared (first use in this function); did you mean 'PLLFORADC0_IRQ_INTERRUPT_CONTROLLER_ID'?
101 | ALTERA_MODULAR_ADC_INIT ( MODULAR_ADC0, modular_adc0);
| ^~~~~~~~~~~~
./drivers/inc/altera_modular_adc.h:119:32: note: in definition of macro 'ALTERA_MODULAR_ADC_INIT'
119 | altera_modular_adc_init(&dev, name##_IRQ_INTERRUPT_CONTROLLER_ID, name##_IRQ);
| ^~~~
alt_sys_init.c:101:31: note: each undeclared identifier is reported only once for each function it appears in
101 | ALTERA_MODULAR_ADC_INIT ( MODULAR_ADC0, modular_adc0);
| ^~~~~~~~~~~~
./drivers/inc/altera_modular_adc.h:119:32: note: in definition of macro 'ALTERA_MODULAR_ADC_INIT'
119 | altera_modular_adc_init(&dev, name##_IRQ_INTERRUPT_CONTROLLER_ID, name##_IRQ);
| ^~~~
alt_sys_init.c:101:31: error: 'MODULAR_ADC0_IRQ' undeclared (first use in this function)
101 | ALTERA_MODULAR_ADC_INIT ( MODULAR_ADC0, modular_adc0);
| ^~~~~~~~~~~~
./drivers/inc/altera_modular_adc.h:119:68: note: in definition of macro 'ALTERA_MODULAR_ADC_INIT'
119 | altera_modular_adc_init(&dev, name##_IRQ_INTERRUPT_CONTROLLER_ID, name##_IRQ);
| ^~~~
Makefile:583: recipe for target 'obj/alt_sys_init.o' failed
make: *** [obj/alt_sys_init.o] Error 1
------------------------------------------------------------------------------------------------------
Was there a step I could have missed Platform Builder?
Hi @SeanAB ,
it's a software bug, I will raise ticket about this issue. if i get any alternate solution i will forward to you.
if you don't have any quires I'll close the case. please confirm
If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 9/10 survey.
Thanks,