Skip to main content
Bastien1
Associate II
February 19, 2021
Solved

Link between LIN and TERA TERM

  • February 19, 2021
  • 2 replies
  • 925 views

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.
    Best answer by zambrano.luigi

    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
    February 19, 2021

    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
    March 3, 2021

    Hi,

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

    respectfully,

    Bastien