<?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 SBC_DRIVER READ REGISTER. in S32K</title>
    <link>https://community.nxp.com/t5/S32K/SBC-DRIVER-READ-REGISTER/m-p/1818645#M32313</link>
    <description>&lt;P&gt;&amp;nbsp;I succeeded in running the example program given in the SBC driver that reads the SBC_FS26_FS_STATES_ADDR register. However, I tried to read&amp;nbsp;SBC_FS26_M_REG_FLG_ADDR register that flags over current event for the converters, LDOS' and TRKS' using the below code but I keep getting FALSE. I had expected u16ReadData variable to give&amp;nbsp;0x0000, instead it gives 1101001001101111 from the expression tab. Please is there something wrong with my code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eReturnValue |= Sbc_fs26_ReadRegister(TRUE,SBC_FS26_M_REG_MSK_ADDR , &amp;amp;rxData);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if((eReturnValue != E_OK) || (rxData.u16ReadData != SBC_FS26_M_REG_MSK_DEFAULT ))&lt;BR /&gt;{&lt;BR /&gt;bPass = FALSE;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 09:56:26 GMT</pubDate>
    <dc:creator>franklin08</dc:creator>
    <dc:date>2024-02-29T09:56:26Z</dc:date>
    <item>
      <title>SBC_DRIVER READ REGISTER.</title>
      <link>https://community.nxp.com/t5/S32K/SBC-DRIVER-READ-REGISTER/m-p/1818645#M32313</link>
      <description>&lt;P&gt;&amp;nbsp;I succeeded in running the example program given in the SBC driver that reads the SBC_FS26_FS_STATES_ADDR register. However, I tried to read&amp;nbsp;SBC_FS26_M_REG_FLG_ADDR register that flags over current event for the converters, LDOS' and TRKS' using the below code but I keep getting FALSE. I had expected u16ReadData variable to give&amp;nbsp;0x0000, instead it gives 1101001001101111 from the expression tab. Please is there something wrong with my code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eReturnValue |= Sbc_fs26_ReadRegister(TRUE,SBC_FS26_M_REG_MSK_ADDR , &amp;amp;rxData);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if((eReturnValue != E_OK) || (rxData.u16ReadData != SBC_FS26_M_REG_MSK_DEFAULT ))&lt;BR /&gt;{&lt;BR /&gt;bPass = FALSE;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:56:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SBC-DRIVER-READ-REGISTER/m-p/1818645#M32313</guid>
      <dc:creator>franklin08</dc:creator>
      <dc:date>2024-02-29T09:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: SBC_DRIVER READ REGISTER.</title>
      <link>https://community.nxp.com/t5/S32K/SBC-DRIVER-READ-REGISTER/m-p/1820367#M32414</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The value you shared does not make sense at all.&lt;/P&gt;
&lt;P&gt;If you have a logic analyzer, could you please share the SPI traffic illustrating the read of the M_REG_FLG?&lt;/P&gt;
&lt;P&gt;What is the value of the eReturnValue before reading the M_REG_FLG register?&lt;/P&gt;
&lt;P&gt;I suppose you should use either:&lt;/P&gt;
&lt;P&gt;eReturnValue = 0;&lt;/P&gt;
&lt;P&gt;eReturnValue |= Sbc_fs26_ReadRegister(TRUE,SBC_FS26_M_REG_MSK_ADDR , &amp;amp;rxData);&lt;/P&gt;
&lt;P&gt;or:&lt;/P&gt;
&lt;P&gt;eReturnValue = Sbc_fs26_ReadRegister(TRUE,SBC_FS26_M_REG_MSK_ADDR , &amp;amp;rxData);&lt;/P&gt;
&lt;P&gt;BR, Tomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 09:01:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SBC-DRIVER-READ-REGISTER/m-p/1820367#M32414</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2024-03-04T09:01:51Z</dc:date>
    </item>
  </channel>
</rss>

