Hi all,
I have a setup with S32K1XX MCU and using a FS2303 SBC. I'm trying to enable the LIN communication by setting the M_LIN (0x2B) registry values through SPI (as described in documentation)
Before calling the M_LIN write I'm checking the M_DEV_CFG and the LIN is available ; and the SBS mode is normal .
I've tried to call the the configuration write for M_LIN during INIT phase and also after INIT Mode was closed and the 1st valid watchdog token was sent with the same result.
M_LIN registry value remains 0x0000 (the reset value) and I'm unable to use the communication interface.
Thank you!
Hi Mihai,
I assume you have tried writing 0x4400 to the M_LIN register, right?
Could you please try writing a different value to see if any write is accepted? Is the PHYG flag set?
Are you able to use the LIN interface in Debug mode when both CAN and LIN transceivers are set in Active mode by default?
BRs, Tomas
Hi Thomas,
I've tried to write 0x4400 , 0x6400, 0x6C00 and some other values with same result - nothing changed.
Writing value through SPI works as the system stays alive while operating using the watchdog mechanism.
The write request reply full reply is :
0x410000E1 - and CRC checks.
From first byte 0x41 (0100 0001) we can determine that SAFETYG is 1 so we have something related with safety , and PHYG is 0.
How can I set the SBC to be in debug mode ?
Thank you !
Hi Mihai,
In order to determine why SAFETYG is set, please read the FS_SAFETY_FLG register.
To enter Debug mode, you need to apply a specific voltage (VDBG_MODE, typ. 4.5V) to the DBG pin during power-up.
BRs, Tomas
Hi Thomas,
some additional information :
for some reason I'm getting the same watchdog token back all the time - 0x5AB2 in theory I should get 2 different values alternatively.
After asking and replying the current token for 7 times as advised in documentation I'm trying to release both FS0B andLIMP0 by writing required bit array to FS_FS0B_LIMP0_REL (some 1 bit and some parts of current watchdog token). The write also fails with 0x550000FF.
My guess is that there is some error that blocks me in enabling the LIN.
At some point we've tried to enable the debug mode by putting some voltage on corresponding pin but for some reason this didn't work as well.