<?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>topic Re: SbcUJA1169x driver.c code in S32K</title>
    <link>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1888733#M36664</link>
    <description>&lt;P&gt;Hi Tomas&lt;/P&gt;&lt;P&gt;Can you provide me Uja1169 code so that I can use it for S32k118evb.&lt;/P&gt;&lt;P&gt;I have taken this code from s32ds3.4&lt;/P&gt;&lt;P&gt;Can you provide me updated one.&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Ashish&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 13:02:50 GMT</pubDate>
    <dc:creator>Ashish4525</dc:creator>
    <dc:date>2024-06-17T13:02:50Z</dc:date>
    <item>
      <title>SbcUJA1169x driver.c code</title>
      <link>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1887809#M36606</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;I was looking for an example code for UJA1169 in s32ds and I have found for s32k142evb board.&lt;/P&gt;&lt;P&gt;But I think you should check once the code line which I am sharing line(1627)&amp;nbsp;&lt;/P&gt;&lt;P&gt;while compiling it shows error in Command because it is const,so how in code it is getting modify.&lt;/P&gt;&lt;P&gt;status_t SBC_DataTransfer(const sbc_register_t regName,&lt;BR /&gt;const uint8_t* const sendData, uint8_t* const receiveData)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;status_t status = STATUS_SUCCESS;&lt;/P&gt;&lt;P&gt;const uint8_t command[2] = {0U, 0U};&lt;BR /&gt;uint8_t readOnlyMask = 0x00U;&lt;BR /&gt;uint8_t readData[2] = {0U, 0U};&lt;/P&gt;&lt;P&gt;/* Test if there is data for sending. */&lt;BR /&gt;if(sendData == NULL)&lt;BR /&gt;{&lt;BR /&gt;/* This transfer is read only. */&lt;BR /&gt;readOnlyMask = 0x01U;&lt;BR /&gt;command[0] = 0U;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;command[0] = *sendData;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Address of device with read only bit. */&lt;BR /&gt;command[1] = (uint8_t)((SBC_UJA_REG_ADDR_F(regName) | readOnlyMask) &amp;amp; 0xFFU);&lt;/P&gt;&lt;P&gt;status = LPSPI_DRV_MasterTransferBlocking(g_drvConfig.lpspiIntace, command,&lt;BR /&gt;readData, 2U, SBC_UJA_TIMEOUT );&lt;/P&gt;&lt;P&gt;if( readData[1] != command[1])&lt;BR /&gt;{&lt;BR /&gt;status = SBC_COMM_ERROR;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Copy content of register to receive data. */&lt;BR /&gt;if(receiveData != NULL)&lt;BR /&gt;{&lt;BR /&gt;*receiveData = readData[0];&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return status;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Note: if( readData[1] != command[1])&lt;BR /&gt;{&lt;BR /&gt;status = SBC_COMM_ERROR;&lt;BR /&gt;}&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due you think readDATA[1] will ever be equal to command[1] because in my case it is always SBC_COMM_ERROR.&lt;/P&gt;&lt;P&gt;I have S32k118evb so I have taken only UJA1169driver..So can you run this code and flash on s32k142 to check whether this code is running fine or not .&lt;/P&gt;&lt;P&gt;I am Using S32k118evb which have inbuilt&amp;nbsp;&lt;SPAN&gt;UJA1169TK so can I use this code sbc part for flashing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PFA images for more clearity&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 13:21:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1887809#M36606</guid>
      <dc:creator>Ashish4525</dc:creator>
      <dc:date>2024-06-14T13:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: SbcUJA1169x driver.c code</title>
      <link>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1888649#M36653</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;I am waiting for your support and response.&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Ashish&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 10:56:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1888649#M36653</guid>
      <dc:creator>Ashish4525</dc:creator>
      <dc:date>2024-06-17T10:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: SbcUJA1169x driver.c code</title>
      <link>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1888720#M36662</link>
      <description>&lt;P&gt;Hi Ashish,&lt;/P&gt;
&lt;P&gt;Based on your screenshot, there is no "const uint8_t command[2]" inside the DataTransfer function in the K1 SDK 4.0.3 used. Note that during the whole time that the driver was developed (2016-2021) it was never there, so there must have been an error somewhere, I do not know how such a code got into the Design Studio. I suppose it was added there by mistake.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 478px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284459i6F4AA5ED5180BD9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BRs, Tomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 12:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1888720#M36662</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2024-06-17T12:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: SbcUJA1169x driver.c code</title>
      <link>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1888733#M36664</link>
      <description>&lt;P&gt;Hi Tomas&lt;/P&gt;&lt;P&gt;Can you provide me Uja1169 code so that I can use it for S32k118evb.&lt;/P&gt;&lt;P&gt;I have taken this code from s32ds3.4&lt;/P&gt;&lt;P&gt;Can you provide me updated one.&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Ashish&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 13:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SbcUJA1169x-driver-c-code/m-p/1888733#M36664</guid>
      <dc:creator>Ashish4525</dc:creator>
      <dc:date>2024-06-17T13:02:50Z</dc:date>
    </item>
  </channel>
</rss>

