can_pal_s32k116 example code from the S32SDK_S32K116_EAR_1.8.7 SDK not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can_pal_s32k116 example code from the S32SDK_S32K116_EAR_1.8.7 SDK not working

1,269 Views
ehud
Contributor I

Hi
As you know, we are using the S32K144 and S32K166 in our scooter.
We got a S32K116EVB and trying to make the CAN port communicate with P-CAN device to our laptop.
We supply the S32K116EVB external 12V power supply, put the jumpers in the right position and try to run the can_pal_s32k116 example code from the S32SDK_S32K116_EAR_1.8.7 SDK.
We can't make it work. it doesn't receive messages and when trying to transmit (using the push button to invoke the transfer), the bus goes to heavy-bus error state and the error IRQ is triggered all the time.
We than configured the CAN module to work in loop-back mode and we were able receive the command we transmitted.
Looking forward for some support
Thanks

Labels (1)
0 Kudos
4 Replies

922 Views
ehud
Contributor I

170-30003 REV B

0 Kudos

922 Views
raresvasile
NXP Employee
NXP Employee

Hi,

S32SDK for S32K116 EAR 1.8.7 supports REV X1 of the S32K116 EVB, which used an 8 MHz external oscillator.

The new board(REV B) uses a 40 MHz external oscillator.

You need to update the oscillator frequency in clock manager and CAN will work afterwards. After this please regenerate Processor Expert code.

pastedImage_1.png

Let me know if it worked.

Best regards,

Rares

0 Kudos

922 Views
ehud
Contributor I

Hi

Yes it did work. I got a replay from the NXP community explaining the problem (as you did) and gave the following solution.

" So within the clock manager put right value for SOSC_CLK (40000000), also you should set SOSCDIV2_CLK to at least SOSC_CLK/2".

I tryied it and it works.

Thank you very much.

P.S. I was very impressed with the quick response and the exact support, well done ;-)

0 Kudos

922 Views
raresvasile
NXP Employee
NXP Employee

Hi,

What revision of the S32K116 EVB do you have? The information can be found on the bottom layer of the board.

Best regards,

Rares

0 Kudos