Forum Replies Created
-
AuthorPosts
-
Hi Juan, I spoke to a colleague and learned your issue has already been resolved. I’m glad it is working once again.
Hi Juan,
I’m sorry that you are experiencing issues with the MCU-MPU SPI communication.
Regarding the S32K3 configuration, SPI Mode 2 is correct. In the configuration source file, Lpspi_Ip_MBDT_PBcfg.c, verify that CPOL == 1 and CPHA == 0 for the MPU SPI instance, as shown in the attached image. There is a known bug in the existing S32K3 FlexConnect sample model which erroneously sets the MPU SPI channel to Mode 3. We are planning to release a new version (Rev 2.3) of the sample models for the FCE and FCG this week, which will resolve this bug. It will be available for download under Simulink Library & Examples here: Downloads.
Ben
Attachments:
You must be logged in to view attached files.Hi Tom,
Yes, the same controller can transmit both frame types without reconfiguration between transmissions, as long as all devices on the network are configured to receive CAN FD. Once CAN FD is enabled for CAN0, each individual message buffer can be set according to whether it is a CAN FD or classic CAN message. As a rule of thumb, use separate CAN Tx interrupt objects for each of your messages, especially between CAN FD and classic messages. By default, we set the baud rate of CAN0 to 500 kBaud, and the CAN FD rate to 2000 kBaud, but you can adjust those according to your requirements.
Ben
-
This reply was modified 1 month, 3 weeks ago by
benmaccallum1.
-
This reply was modified 1 month, 3 weeks ago by
-
AuthorPosts