we now use S32DS to program SPI interface of SPC5744. MPC5744P PRM shows the reset value of SPI_0.MCR.HALT is "1" . But when I try to debug, after reset of CPU, the HALT bit of Register SPI0.MCR is "0" and cannot set to "1" by software. The MCU has excuted no code before. I upload a picture about this problem, please help me, that's really confusing!
Hello,
the value you see in the register is not correct, because there is no clock for this module after reset. After you enable clock for SPI module, you will see correct values. Please see the figure below.
Regards,
Martin