adding ADC_pal to freertos - mpc5748g.

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

adding ADC_pal to freertos - mpc5748g.

833 Views
Krishnaja
Contributor II

Hi,

I added hardware trigger part of adc_pal_mpc5748g example to as a freeRTOS project as an rtos task.

Krishnaja_0-1621850235572.png

It is stuck in this loop. I face this issue only when created as a rtos task??

Please tell me how to resolve it.

 

Regards

Krishnaja.

0 Kudos
5 Replies

817 Views
Krishnaja
Contributor II

Any updates over the query??

0 Kudos

742 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you got this DevAssert because PIT ch3 is selected for both FreeRTOS tick and ADC HW trigger, and this channel is already started by FreeRTOS. Once started next time by you this devAssert appears. Try to use e.g different PIT channel for FreeRTOS.

BR, Petr

0 Kudos

807 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you describe which NXP examples is the attached code based on? Thanks

0 Kudos

765 Views
Krishnaja
Contributor II

Any updates?

0 Kudos

799 Views
Krishnaja
Contributor II

Hi,

To a "freertos_mpc5748g" example, I have added adc component and added hardware trigger part from "adc_pal_mpc5748g" example.

I had created adc task and its task handler in the previously attached project.

PFA

Thanks,

Krishnaja.

0 Kudos