I'm using S32 SDK to configure for the MPC5777C chip.
Before I have setup a FreeRTOS with 2 ms and 10 ms tasks, as well as an EMIOS_PWM output channel, to toggle three external LEDs, it works fine.
Now I try to add an EQADC input channel, then I use the same PE configuration as in the Example project adc_pal_eqadc_mpc5777c, but change the channel to ANB23 related to our hardware, and add the initialize function into main.c as below. However, the software seems to halt during ADC_Init() function. I try to debug step by step, but can't figure it out.
status = ADC_Init(&adc_pal1_instance, &adc_pal1_InitConfig0);
DEV_ASSERT(status == STATUS_SUCCESS);
I need help to solve this issue. Enclosed the project files I'm using. Thanks for your reply in advance.
Regards,
Lync