I am working on AVTP implementation using AVB stack provided by NXP
ssattva1_0-1754643186207.png
I am specifically working on s32k358_baremetal_acf_example project and I am facing issues after flashing the elf. I did not face any issues with building the project (make sure RTD version is 4.0 , not 5.0). My ethernet module initialisation is not getting done after flashing.
Issues:
- Program goes to HW fault immediately after flashing , reason being " MemManage: The processor attempted an instruction fetch from a location that does not permit execution. HardFault: A fault has been escalated to a hard fault." After clicking reset button in the debug window then it enters into main.c
ssattva1_1-1754643620648.png
- In the function EMACLLD_ClockInit_HwSwitch() , the clock switch is not happening and upon observing the registers I come to know that the clock switch request fails and FIRC is the source instead of EMAC_EXTERNAL_TX_RMII. "010b - Switch after the request failed because of an inactive target clock and the current clock is FIRC."
ssattva1_0-1754643881076.png
- Upon further digging , I decide to compare it with LWIP baremetal project . The above registers show success after Clock_Ip_Init () in device_init(), not so the case with AVTP project. I am using the same board and PHY , yet I dont know why it shows target clock inactive when it comes to AVTP project.
- Even if I comment out the EMACLLD_ClockInit_HwSwitch() function and make appropriate clock configs in the peripheral tool , it again gets stuck at DMA init
ssattva1_1-1754644217547.png
- Please help me resolve this blocker.
HW USED: S32K358 eval board
PHY : ADTJA1101-RMII