RTM3.0: ADC_PAL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTM3.0: ADC_PAL

540 Views
838927242
Contributor II

I have some problem when I use the "adc_pal" conponent.

SDK version :RTM 3,0;

MCU:MPC574xP;

OS:Freertos;

Event:

1636423767(1).png1636423799(1).png

1636424317(1).png

The frequency of this evevt is very high .

 

Please give me some suggestions to solve this kind of problem ,thanks !!

0 Kudos
2 Replies

514 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos

500 Views
838927242
Contributor II

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!

0 Kudos