Greetings!
I am using the MPC5746C on a custom PCB with PEmicro Debugger. I am attempting to run an example SPI program provided by NXP, located at C:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32PA_RTM_3.0.0\examples\MPC5746C\driver_examples\communication\spi_pal inside my local file system.
The pin assignments/connections on my custom board are inspired from the MPC5748G-LCEVB evaluation kit, but not exact. Hence, I changed the pin_mux and spi1/2 component configurations to be aligned with what our board supports and generated the Processor Expert code. The program builds.
I also followed the instructions at the following webpage and modified the physical connections to align with our board: S32 SDK: SPI PAL MPC5746C
When I run the program, inside main() the code calls SPI_MasterInit():
pstammii_0-1716406973214.png
Inside SPI_MasterInit() the code calls DSPI_MasterInit():
pstammii_1-1716407105082.png
Inside DSPI_MasterInit() the code calls DSPI_Set_MCR_Halt():
pstammii_2-1716407193368.png
Finally, inside DSPI_Set_MCR_Halt(), when the program attempts to execute the first line inside the function, a Machine Check Interrupt (IVOR1) is raised.
pstammii_3-1716407342923.png
pstammii_4-1716407406145.png
At this point the execution is paused in an infinite loop.
The cause of this issue is puzzling and my efforts to track it down have been unsuccessful. Is there any guidance that you can offer me to assist me solving this issue?
When I run the equivalent example on the MPC5748G-LCEVB, it works fine.
If it's helpful, here is what my MCSR register looks like:
pstammii_5-1716407646364.png
Thanks for your time.
Kind Regards,
Paul