I have some problem when I use the "adc_pal" conponent.
SDK version :RTM 3,0;
MCU:MPC574xP;
OS:Freertos;
Event:
The frequency of this evevt is very high .
Please give me some suggestions to solve this kind of problem ,thanks !!
Hi,
DEV_ASSERT(groupIdx < palState->numGroups); is to check defined conversion group is selected.
Code stuck there if "groupIdx < palState->numGroups" condition is FALSE, that is when function parameter groupIdx (selected ADC conversion group) is higher than configured groups number in adc_pal component ADC Conversion Group list. Note groups are indexed from 0.
BR, Petr
I moved "d_GROUP_1MSAD0_Result()" to 10ms task ,then everything is OK!
I think the root cause of the bug is my inappropriate use of FreeRTOS. Can you give me some tools to debug FreeRTOS on MPC574xp,then I can monitor the heap、stack and the state of each task?
Tracealyzer is a FreeRTOS analysis tool ,but may be not suitable for MPC574xP!