Is there an example project to configure ADC_PAL with freertos for MPC5777C?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is there an example project to configure ADC_PAL with freertos for MPC5777C?

ソリューションへジャンプ
1,966件の閲覧回数
LyncLin
Contributor III

I'm currently using S32 and processor expert to configure a project for MPC5777C. I found that if I include a FreeRTOS component, the ADC_init function cann't pass as it is provided in the adc_pal_eqadc_mpc5777c example, without FreeRTOS it is fine. Is there an example project to configure ADC_PAL with freertos for MPC5777C? Does any one has experience on this?

タグ(3)
0 件の賞賛
返信
1 解決策
1,915件の閲覧回数
LyncLin
Contributor III

Finally I found the root cause is the heap size for the initial task is too small, when enlarge the heap size, the init can be passed.

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,956件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

where do you call the init function? Notice that modules using OS services (like OSIF, for example) can't be executed before starting the scheduler. Common practice is to have an initialization task to initialized all needed resources and then you can create and start other tasks. I guess that this is the root cause.

Regards,

Lukas

0 件の賞賛
返信
1,937件の閲覧回数
LyncLin
Contributor III

I tried to create a single 2 ms task, and put Adc_init() at the beginning of the task, but it halts at context switch function. Can give me an simple example for that? Thanks!

0 件の賞賛
返信
1,916件の閲覧回数
LyncLin
Contributor III

Finally I found the root cause is the heap size for the initial task is too small, when enlarge the heap size, the init can be passed.

0 件の賞賛
返信