This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SCI/LIN Issue for TMS570LS3137 MCU

Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137

Hi All,
I am using TMS570LS3137ZWT MCU for my custom board with CCSv5.4 IDE and HalCoGen 03.05.00. I have enabled both the SCI driver and the SCI/LIN driver in HalCoGen. With same settings one SCI with base address 0xFFF7E500 is working but not SCI/LIN with base address 0xFFF7E400. I have checked that both of them are initialized in the same way in "sciInit()" function. I didn't find out the reason of such problem.
So,it will be very helpful if anybody helps me regarding this SCI/LIN issue with TMS570LS3137ZWT.

Thanks and regards
Srikanta

  • Srikanta,

    There is no issue with the LIN/SCI module at 0xfff74e00. I have forwarded your question to the HALCoGen team.

    Thanks and regards,

    Zhaohong

  • Hi Srikanta,

    The only issue I am aware with LIN/SCI driver is when Interrupt is enabled ( LIN high or Lin low) there will be a compile error because of an unwanted Keyword "IRQ" placed just above the interrupt service routine, this has to be removed or commented out. 

    Did you try the example "example_sci_uart_9600.c" that comes along with HALCoGen. This uses SCI/LIN. 

    Regards
    Prathap 

  • Hi Prathap,

    Thank you very much for your response on my query. 

    I think there is no need to use this example code because this is only to use in  "sys_main.c" and this code doesn't provide any extra settings for SCI/LIN.

    I have also used "TMS570LS3 Hercules Demo" by modifying the PLL settings and SCI is working properly but  not SCI/LIN.

    Thanks and regards
    Srikanta

  • Hi Srikanta,

    Can you please give some more deatils on the "Not working " to help me understand the issue. 
    Can you pls share the CCS project file with HALCoGen project file? Or let me know what you are trying to do with SCI/LIN with what configuration.

    Regards
    Prathap

  • Hi Prathap,

    I have enabled both the SCI and SCI2 drivers in the HalCoGen and called "sciInit()" function in "sys_main.c" file under "main" function. I am just sending 0xAA through SCI and the it is showing the toggling on "SCITX" port. In the same code I am doing the same thing for SCI/LIN but it is not showing any toggling.
    Please check my HalCoGen generated code attached with this post.

    5415.SciLin_v2.rar

    Thanks and regards

    Srikanta

  • Hi Srikanta

    I ran your code as is and was able to see some data on the terminal ( In the TMS570HDK board  - SCI/LIN is connected to the terminal).

    If you are using custom board, will it be possible to check the schematic and see whether the lines are proper?

    Regards
    Prathap

  • Hi Prathap'

    I am using a custom board with TMS570LS3137.
    You have asked me to check the schematic of my board but I think from hardware point of view SCI and SCI/LIN both have same port. If I am wrong then your suggestion is highly appreciable. The same code is working for SCI/LIN in your TMS570HDK board but not for my custom board. In my code the "sciSend" functions in "main" perform the following operations:

    The first  "sciSend(sciREG, 21,(unsigned char*)"Please Press a Key\r\n")" function transmits the data(0xAA) through SCITX of SCI and shows toggling

    The second "sciSend(scilinREG, 21,(unsigned char*)"Please Press a Key\r\n")" function transmits the data(0xAA) through SCITX of SCI/LIN but doesn't show any toggling

    Thanks and regards

    Srikanta