Skip to main content
Bastien1
Associate II
Feb 19, 2021 7:43 AM UTC
Solved

Link between LIN and TERA TERM

Hello,

I'm trying to develop on SPC5 Studio with the eval board SPC574S-DISP. I want to make a link between LIN and the software tera term to debug my code. I configured pins PA5 and PA6 for LIN according to the schematics. But it didn't work. Can you help me ?

This is my main code if it can help you :

int main(void) {
 
 /* Initialization of all the imported components in the order specified in
 the application wizard. The function is generated automatically.*/
 componentsInit();
 
 /* Enable Interrupts */
 irqIsrEnable();
 
 /* Start PIT driver */
 pit_lld_start(&PITD1, pit0_config);
 
 /* Start lin com */
 lin_lld_start(&LD1, &lin_config_configuration_name);
 
 /* Application main loop.*/
 for ( ; ; ) {
	 osalThreadDelayMilliseconds(1000);
 
	 lin_lld_transmit(&LD1, 1, "HELLO WORLD", 8);
 }
}

Best regards

Bastien

    This topic has been closed for replies.
    zambrano.luigi
    zambrano.luigiBest answer
    ST Employee
    Feb 19, 2021 8:23 AM UTC

    Hi Bastien,

    in order to tx some bytes to tera term, you need to use the SERIAL driver and not the LIN driver. Please, give a look to the example SPC574Sxx_RLA SERIAL Test Application included in SPC5Studio in order to understand the steps to follow.

    Please, feel free to contact us for any further clarification.

    Regards,

    Luigi

    2 replies

    zambrano.luigi
    zambrano.luigiBest answer
    ST Employee
    Feb 19, 2021 8:23 AM UTC

    Hi Bastien,

    in order to tx some bytes to tera term, you need to use the SERIAL driver and not the LIN driver. Please, give a look to the example SPC574Sxx_RLA SERIAL Test Application included in SPC5Studio in order to understand the steps to follow.

    Please, feel free to contact us for any further clarification.

    Regards,

    Luigi

    Bastien1
    Bastien1Author
    Associate II
    Mar 3, 2021 10:04 AM UTC

    Hi,

    Thank you Luigi, it works and all is clear now !

    respectfully,

    Bastien