2021-02-18 11:43 PM
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
Solved! Go to Solution.
2021-02-19 12:23 AM
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
2021-02-19 12:23 AM
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
2021-03-03 02:04 AM
Hi,
Thank you Luigi, it works and all is clear now !
respectfully,
Bastien