AnsweredAssumed Answered

Why ETH Driver of MCAL4.3.1 has an input parameter at interrupt handler?

Question asked by Li Jing on Apr 2, 2020
Latest reply on Apr 7, 2020 by Nam Nguyen Viet

I use DEVKIT-MPC5748G development board to study AUTOSAR MCAL.

When I use MCAL 4.3.1 to develop Ethernet driver, I find the receivement interrupt handler of Ethernet  has an input parameter,which make me confused.

Because I don't know where this parameter comes from and what determines the value of this parameter.

Unfortunately,when I use PC to send an Ethernet frame to the board,this parameter of receivement interrupt handler always be 24.That is wrong, because the value of parameter can only be evaluated from 1 to 3。

When interrupt handler receive that wrong value, the function can't handle so that the interrupt flag bit cannot be cleared.

I suspect there is something wrong with the register configuration, but I don't know how to locate the problem. I hope someone can answer my question.

Eth_RxIrqHdlr_0 is Ethernet receivement interrupt handler, u8QueueIdx is the input parameter.

Outcomes