AnsweredAssumed Answered

S32K144 MCAL CAN demo

Question asked by Mikhail Masliukov on Apr 1, 2019

Dear NXP.

 

Recently I've purchased few S32K144 boards, downloaded S32K14X_MCAL4_0_RTM_1_0_4, Tresos 23.0.0 and S32 Design Studio for ARM v2.0, mainly to try out AUTOSAR concepts and test it in real CAN environment. I've managed to generate, build and flash Sample Application to board, but stuck with CAN module. It's simply doesn't send anything to peripheral, neither CAN controller, nor MCU's GPIOs: PTE4, PTE5. Apparently Sample Application just simulates sending/receiving of CAN message, because in console output I'm seeing RXed message is the same as TXed.

 

TXed data hard coded to 'sample_app_mcal_can_task.c' file (Hexadecimal format) 

VAR(uint8, CAN_VAR)  data[8U] = {0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38};

 

RXed data from console output (Decimal format)

CAN Rx MSG:49
CAN Rx MSG:50
CAN Rx MSG:51
CAN Rx MSG:52
CAN Rx MSG:53
CAN Rx MSG:54
CAN Rx MSG:55
CAN Rx MSG:56
CAN RX data completed.

 

 

Could you please confirm that trial MCAL could be used in real CAN environment?

If so could you please point me to any documentation or guidance of CAN module configuration? 

 

Thank you.

Outcomes