How to enable LIN mode of MPC5748G?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to do LIN development on MPC5748G, but after setting the INIT bit of LINFlexDx_LINCR1 register to 1 (set into initialization mode), I continue to set the UART bit of LINFlexDx_UARTCR register to 0 to enter LIN mode. It goes straight into the Machine Check Interrupt. What's going on here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
be sure module is clocked and wait for INIT mode to be entered.
Some example is posted at https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-LINFlex-LIN-Master-Slave-test-G...
BR, Petr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, thank you for your answer, but I set my registers according to the initialization operation (LINFlexD_1_Init) in the example program in the link you sent, but after this sentence (LINFlexD_1.LINCR2.R = 0x4000), I still entered the error interrupt. What's going on here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I do not see reason for this, check if right address is accessed.
There is no SDK driver for LIN, MCAL driver would include LIN driver however;
https://www.nxp.com/design/design-center/software/automotive-software-and-tools/autosar/autosar-4-0-...
BR, Petr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content