cancel
Showing results for 
Search instead for 
Did you mean: 

Link between LIN and TERA TERM

Bastien1
Associate III

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
zambrano.luigi
Senior III

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

View solution in original post

2 REPLIES 2
zambrano.luigi
Senior III

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
Associate III

Hi,

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

respectfully,

Bastien