-
AuthorPosts
-
-
I am working on LIN, in which I am stuck at some point
the pins PTC8 and PTC9 (LIN TX and RX), PTB18 and PTB19 (enable and commander/receiver)are configured as per the datasheet.
1) Currently have configured FLexcase E as master, Can I get LIN frames sent by the master, if slave is not connected?
2) If slave is required, can PLIN hardware be configured as slave?
3) I am not able to get any status on freemaster by accessing the datastores.
I am attaching the files
kindly check what modifications have to be made in the file or provide example Lin file in which lin frame can be received from PIN(O1).Attachments:
You must be logged in to view attached files. -
Hi Akhila,
I didn’t see your mex file in the attached zip. If you have configured the pins correctly in the mex file, please consider checking the following points:
1. To enable the transceiver, you need to drive the LIN_EN pin(PTB19) HIGH. You also need to drive PTB18 high to have the transceiver in Master(commander) mode. If FlexCase is in LIN slave, there is no need to drive the PTB18.
2. Every LIN bus should have only one master. Slave devices can be more than one. You can use Peak-Lin in both Master and Slave modes.
3. Which MBDT version are you using? And how are you connecting to MCU for FreeMaster? -
Hi Amir,
I am working on MBDT version 1.5. The transceiver configuration is done as per suggested. Moreover, the
LIN bus is having only one master and Peak-LIN as slave. Monitoring of datastores is done in freemaster via Jtag debugger probe.
The issue is, no frame is visible in PLIN view pro interface.
The test file is being attached to this thread
Kindly check the model/configuration for any modification or provide example Lin file in which lin frame can be received from PIN(O1)
Thanks. -
-
-
AuthorPosts
- You must be logged in to reply to this topic.