MCAL Eth Module Init Error

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

MCAL Eth Module Init Error

1,257件の閲覧回数
MateoSegura413
Contributor III

Context

I am using the "Eth" module from the MCAL for the S32K344

MateoSegura413_0-1658383869637.png

I added the Eth module in the configuration tool to a new project following the demo example line by line, and making sure that the settings are correct. I checked that the settings matched the ones in the example multiple times.

MateoSegura413_1-1658383949011.png

And here is my startup code:

MateoSegura413_2-1658383990321.png

 

Issue

When the code gets to the Eth_Init, it crashes with the HardFault_Handler from the following function call tree, and I have no idea why this is happening. It does not happen in the demo, and I don't have any extra modules, other than the ones needed by the Eth driver

MateoSegura413_3-1658384167899.png

 

Thanks in advance for your help!

0 件の賞賛
返信
1 返信

1,236件の閲覧回数
cuongnguyenphu
NXP Employee
NXP Employee

I saw that your application go to GMAC_Ip_InitDMA before jump into Hardfault.
Does it mean that you configured to using DMA in your application?
If yes, you must Init MCL module (Which includes DMA configs) before GMAC_Ip_InitDMA()

0 件の賞賛
返信