<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S32KのトピックRe: Please, Check my Lin Communication Code, how can I do?</title>
    <link>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1349953#M12316</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;lin_cfg.c and&amp;nbsp;lin_cfg.h are generated&amp;nbsp;by Processor Expert from given LDF file.&lt;BR /&gt;Seems you are using different file from one given in the&amp;nbsp;demo example. Or you just rename signals etc?&lt;BR /&gt;If using your code modification for demo project but using default ldf, it behaves similarly, frames are sent.&lt;BR /&gt;If you have&amp;nbsp;slave connected (second board with slave demo running) then you should pass the&amp;nbsp;flag checking (if&amp;nbsp;MOTOR_byTemperature_flag is indicating this).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Oct 2021 09:27:59 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2021-10-04T09:27:59Z</dc:date>
    <item>
      <title>Please, Check my Lin Communication Code, how can I do?</title>
      <link>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1344559#M12194</link>
      <description>&lt;P&gt;I'm testing the lin_master_s32k116 example.&lt;BR /&gt;In this example, the temperature of the motor is read through LIN communication.&lt;BR /&gt;It also controls the motor speed according to the temperature.&lt;/P&gt;&lt;P&gt;How is g_lin_frame_data_buffer defined in lin_cfg created through this project?&lt;BR /&gt;I didn't quite understand.&lt;/P&gt;&lt;P&gt;And I changed the example and made the code as below.&lt;/P&gt;&lt;P&gt;void lin_master_task(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize LIN network interface */&lt;BR /&gt;l_sys_init();&lt;BR /&gt;l_ifc_init(LI0);&lt;BR /&gt;/* Set Schedule table to Normal */&lt;BR /&gt;l_ifc_wake_up(LI0);&lt;BR /&gt;l_sch_set(LI0, LI0_Normal_Schedule, 0u);&lt;BR /&gt;/* Infinite loop */&lt;BR /&gt;for (;;) {&lt;BR /&gt;/* Check if information about the Motor1 Temp has been received */&lt;BR /&gt;if (l_flg_tst_LI0_MOTOR_byTemperature_flag()) {&lt;BR /&gt;/* Clear this flag... */&lt;BR /&gt;l_flg_clr_LI0_MOTOR_byTemperature_flag();&lt;/P&gt;&lt;P&gt;/* Store temperature data */&lt;BR /&gt;Motor1_Temp = l_u8_rd_LI0_MOTOR_byTemperature();&lt;BR /&gt;//debugConsolePrintf(Motor1_voltage);&lt;BR /&gt;}&lt;BR /&gt;/* Check node state */&lt;BR /&gt;if (LIN_NODE_STATE_SLEEP_MODE == lin_lld_get_state(LI0)) {&lt;BR /&gt;/* Turn off all LEDs */&lt;BR /&gt;l_ifc_wake_up(LI0);&lt;BR /&gt;l_sch_set(LI0, LI0_Normal_Schedule, 0u);&lt;BR /&gt;PINS_DRV_TogglePins(LED0_GPIO_PORT, PORT_LED0_INDEX);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;When I debugged it,&lt;BR /&gt;LIN_NODE_STATE_IDLE,&lt;BR /&gt;LIN_NODE_STATE_SEND_BREAK_FIELD&lt;BR /&gt;LIN_NODE_STATE_RECV_DATA&lt;BR /&gt;It appears as these three states change, and the flag check of the if statement does not even pass. (if (l_flg_tst_LI0_MOTOR_byTemperature_flag()) )&lt;/P&gt;&lt;P&gt;The order of Lin communication is&lt;BR /&gt;1. flag check&lt;BR /&gt;2. flag clear&lt;BR /&gt;3. read data&lt;BR /&gt;Is this correct?&lt;/P&gt;&lt;P&gt;please check.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 03:03:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1344559#M12194</guid>
      <dc:creator>skb</dc:creator>
      <dc:date>2021-09-23T03:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please, Check my Lin Communication Code, how can I do?</title>
      <link>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1349953#M12316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;lin_cfg.c and&amp;nbsp;lin_cfg.h are generated&amp;nbsp;by Processor Expert from given LDF file.&lt;BR /&gt;Seems you are using different file from one given in the&amp;nbsp;demo example. Or you just rename signals etc?&lt;BR /&gt;If using your code modification for demo project but using default ldf, it behaves similarly, frames are sent.&lt;BR /&gt;If you have&amp;nbsp;slave connected (second board with slave demo running) then you should pass the&amp;nbsp;flag checking (if&amp;nbsp;MOTOR_byTemperature_flag is indicating this).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 09:27:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1349953#M12316</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-10-04T09:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Please, Check my Lin Communication Code, how can I do?</title>
      <link>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1350298#M12321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I deleted the LDF file provided in the demo example.&lt;BR /&gt;And I added the LDF file created by me. Likewise, the names of signals and the like have been corrected.&lt;BR /&gt;If the demo example works only with the existing LDF file, how can I properly configure lin_cfg.c and lin_cfg.h by applying the new LDF file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR, skb&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 23:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1350298#M12321</guid>
      <dc:creator>skb</dc:creator>
      <dc:date>2021-10-04T23:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Please, Check my Lin Communication Code, how can I do?</title>
      <link>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1350459#M12327</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if you changed LDF, then we cannot check/test your code directly, so please share it.&lt;BR /&gt;&lt;SPAN&gt;lin_cfg.c and lin_cfg.h are generated automatically&amp;nbsp;from uploaded LDF file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 08:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Please-Check-my-Lin-Communication-Code-how-can-I-do/m-p/1350459#M12327</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-10-05T08:32:28Z</dc:date>
    </item>
  </channel>
</rss>

