Further to it.
I tried using SPI0 and SPI2 (currently on SPI1) and the problem persists in the 112LQFP but works fine in the 144LQFP.
The issue is definetly related to writing into the Data Register, which is done in 16 bit access.
If I write 0x00 on each SPTEF interrupt, there is no corruption in the incoming data. If I write a value different from 0x00 on one or more of the SPTEF interrupts, the corruption appears.
As mentioned before, the system is set up so the SS line remains low during the whole transfer. Both master and slave are shifting data out. The configuration is CPHA = 1 in order to allow it.
I am trying to understand what could be the differences between the 144LQFP and 112LQFP I have on my test boards.
The numbers written on the chips are:
PC9S12XEP100MAL (112 LQFP)
CV2412.20
4M48H
QQAA0738
PC9S12XEP100VAG (144 LQFP)
CV2589.09
4M48H
QQAD0749
How can I check if the silicon in those chips are the same?
thanks
Pedro