1994450_en-US

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

1994450_en-US

1994450_en-US

Why did the FreeRTOS task have problems when using one of the cores in the dual-core project for ENE

Dear NXP community

At present, MPC5748G is used for dual-core development, in which the core of Z4_0 is used for ENET development, and FreeRTOS is used. The core of Z4_1 is not used for now, and it may be used for USB development in the future.

Now, the ENET1 project file used normally in the single-core project is transplanted to the Z4_0 core of the dual-core project. When scheduling FreeRTOS, it does not enter the first task normally. Why is this?

Also, if you enter an interrupt like IVOR1_Handler, is there a way to lock down why you entered it?

Thank you very much for your help in solving this problem

H-chips


1.png


2.png


3.png


These three screenshots are the result of three single steps.


MPC5748G-GW-RDB 

Re: Why did the FreeRTOS task have problems when using one of the cores in the dual-core project forHi, Lukas

Thanks for your help, I found that the problem appears in the address setting of different cores wrong, and there are some problems in the stack size setting.

Regards,

H-chips
Re: Why did the FreeRTOS task have problems when using one of the cores in the dual-core project for

Hi @H-chips 

it looks like wrong address is used here:

lukaszadrapa_0-1732219391490.png

If you step the code in asm and if you check the core registers, you should see which address is used.

It is also possible to check the core registers related to IVOR1 when the exception is triggered after this access:

lukaszadrapa_1-1732219469191.png

This can be found in section "5.7.2 Machine Check Interrupt (IVOR1)" in:

https://www.nxp.com/webapp/Download?colCode=E200Z4RM

Regards,

Lukas


Re: Why did the FreeRTOS task have problems when using one of the cores in the dual-core project forThanks for the answer, but only one of my two cores uses FreeRTOS, so SMP is not involvedRe: Why did the FreeRTOS task have problems when using one of the cores in the dual-core project for

Hi, did you check if the version of FreeRTOS you use supports symmetric multiprocessing (SMP)?

Symmetric Multiprocessing (SMP) with FreeRTOS - FreeRTOS™

There exist also quite good ports for other CPU and older FreeRTOS which you can use as draft, I know at least one for a dual-core from a different chip manufacturer.

Best regards, Rainer

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 03:01 PM
更新者: