<?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: 800 V Battery Management System (BMS) BJB gpio control problems in S32K</title>
    <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2051166#M46240</link>
    <description>&lt;P&gt;Hi RafaR:&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the HvBms_BjbSenseMon.c file which I modified, please check the attachment.&lt;/P&gt;&lt;P&gt;You can check the function "HvBms_Bjb_Main_IsoMeas_GpioEnable" &amp;amp; "HvBms_Bjb_Main_IsoMeas_Gpiodisable" and "HvBms_Bjb_Check_GPIO_Status" this one is create by me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR, BillWen&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 23:48:33 GMT</pubDate>
    <dc:creator>BillWen</dc:creator>
    <dc:date>2025-02-25T23:48:33Z</dc:date>
    <item>
      <title>800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2044408#M45905</link>
      <description>&lt;P&gt;Hi everyone:&lt;/P&gt;&lt;P&gt;I have a problem is that I want to control BMS BJB gpio to test isolation test, my system is&amp;nbsp;800 V Battery Management System, s32k358 platform, 33772 BJB and 33774 CMU&lt;/P&gt;&lt;P&gt;Software project is&amp;nbsp;HVBMS Integration project from NXP example project&lt;/P&gt;&lt;P&gt;There is a function "HvBms_Bjb_Main_IsoMeas_GpioEnable" to set the Q1, QL1 and Opto pins, but I want to control by my self. (I even don't know how to use this function due to every functions are static)&lt;/P&gt;&lt;P&gt;The following is my code that I try to control these three pins in run time task&lt;/P&gt;&lt;P&gt;Std_ReturnType HvBms_Bjb_IsoMeas_ControlAndRead(bool enable_Q1, bool enable_QL1, bool enable_Opto, float *riso_pos, float *riso_neg)&lt;BR /&gt;{&lt;BR /&gt;Std_ReturnType RetVal = E_OK;&lt;/P&gt;&lt;P&gt;HvBms_Bjb_AddressInformation.ChainStart = HVBMS_BJBSENSEMON_CHAIN_ID_ISO(0);&lt;BR /&gt;HvBms_Bjb_AddressInformation.ChainEnd = HVBMS_BJBSENSEMON_NO_OF_CHAINS_ISO;&lt;/P&gt;&lt;P&gt;//control Q1&lt;BR /&gt;if(enable_Q1)&lt;BR /&gt;{&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceStart = HVBMS_BJB_AFE2;&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceEnd = HVBMS_BJB_AFE2;&lt;BR /&gt;RetVal = HVBMS_BJB_BJBIF_SETMODE(&amp;amp;HvBms_Bjb_AddressInformation, &amp;amp;HvBms_BJBConfig,(uint8)HVBMS_BJB_GPIO6_DR_HIGH);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceStart = HVBMS_BJB_AFE2;&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceEnd = HVBMS_BJB_AFE2;&lt;BR /&gt;RetVal = HVBMS_BJB_BJBIF_SETMODE(&amp;amp;HvBms_Bjb_AddressInformation, &amp;amp;HvBms_BJBConfig,(uint8)HVBMS_BJB_GPIO6_DR_LOW);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//control QL1&lt;BR /&gt;if(enable_QL1)&lt;BR /&gt;{&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceStart = HVBMS_BJB_AFE1;&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceEnd = HVBMS_BJB_AFE1;&lt;BR /&gt;RetVal |= HVBMS_BJB_BJBIF_SETMODE(&amp;amp;HvBms_Bjb_AddressInformation, &amp;amp;HvBms_BJBConfig,(uint8)HVBMS_BJB_GPIO6_DR_HIGH);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceStart = HVBMS_BJB_AFE1;&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceEnd = HVBMS_BJB_AFE1;&lt;BR /&gt;RetVal|=HVBMS_BJB_BJBIF_SETMODE(&amp;amp;HvBms_Bjb_AddressInformation, &amp;amp;HvBms_BJBConfig,(uint8)HVBMS_BJB_GPIO6_DR_LOW);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//control Opto&lt;BR /&gt;if(enable_Opto)&lt;BR /&gt;{&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceStart = HVBMS_BJB_AFE1;&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceEnd = HVBMS_BJB_AFE1;&lt;BR /&gt;RetVal |= HVBMS_BJB_BJBIF_SETMODE(&amp;amp;HvBms_Bjb_AddressInformation, &amp;amp;HvBms_BJBConfig,(uint8)HVBMS_BJB_GPIO5_DR_HIGH);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceStart = HVBMS_BJB_AFE1;&lt;BR /&gt;HvBms_Bjb_AddressInformation.DeviceEnd = HVBMS_BJB_AFE1;&lt;BR /&gt;RetVal |= HVBMS_BJB_BJBIF_SETMODE(&amp;amp;HvBms_Bjb_AddressInformation, &amp;amp;HvBms_BJBConfig,(uint8)HVBMS_BJB_GPIO5_DR_LOW);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After BJB current mode be active mode, and I try to control but doesn't work, and sometimes BJB current mode would be "HVBMS_MODE_HALT", I don't know why&lt;/P&gt;&lt;P&gt;Is there any experience or idea that you can suggest me? Maybe Mcal setting need modify?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR, BillWen&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 08:42:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2044408#M45905</guid>
      <dc:creator>BillWen</dc:creator>
      <dc:date>2025-02-14T08:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2044761#M45926</link>
      <description>&lt;P&gt;Okay, give me a moment. I need to confirm the possibilities with a colleague. I will contact you soon.&lt;/P&gt;
&lt;P&gt;Have a great day and best of luck.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 19:38:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2044761#M45926</guid>
      <dc:creator>RafaR</dc:creator>
      <dc:date>2025-02-14T19:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2045135#M45946</link>
      <description>Hi RafaR:&lt;BR /&gt;Thanks for your reply, another question is mostly bjb and cmu driver code are "static", is there any method can modify to global?&lt;BR /&gt;p.s. Because I don't want to change the code which are generated&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;BR, BillWen</description>
      <pubDate>Mon, 17 Feb 2025 05:44:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2045135#M45946</guid>
      <dc:creator>BillWen</dc:creator>
      <dc:date>2025-02-17T05:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2045722#M45976</link>
      <description>&lt;P&gt;Hi BillWen&lt;/P&gt;
&lt;P&gt;Good news. I contacted a colleague to resolve the issue, but we have some questions. We're not sure what "doesn't work" means here. Could you help me answer these points to better understand your problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;are there any DET errors reported when running the modified code?&lt;/LI&gt;
&lt;LI&gt;are the messages controlling the isolation resistance measurement circuit sent on the TPL bus?&lt;/LI&gt;
&lt;LI&gt;are the TDs containing successfully (i.e. their status shall be &lt;EM&gt;PHY_TS_FINISHED&lt;/EM&gt;)?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;how/where are you calling function&amp;nbsp;&lt;EM&gt;HvBms_Bjb_IsoMeas_ControlAndRead? &lt;/EM&gt;In addition&lt;EM&gt;, t&lt;/EM&gt;he code snippet is incomplete, it's missing the return and closing bracket&lt;/LI&gt;
&lt;LI&gt;the BjbSenseMon state machine enters&amp;nbsp;&lt;EM&gt;HVBMS_MODE_HALT &lt;/EM&gt;mode when a communication error occurs&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I will be waiting for your response&lt;/P&gt;
&lt;P&gt;Have a great day and best of luck.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 19:31:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2045722#M45976</guid>
      <dc:creator>RafaR</dc:creator>
      <dc:date>2025-02-17T19:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2045822#M45984</link>
      <description>Hi RafaR:&lt;BR /&gt;First of all, thanks for your reply.&lt;BR /&gt;That me explain my purpose and what I want to implement.&lt;BR /&gt;My purpose is control Q1, QL1, Opto 3 Gpio pins in freertos means in run times, and measure Vsense or Riso&lt;BR /&gt;My environment is NXP HVBMS integration project. I didn't change any setting in Mcal, and the code are generated by S32DS. I think the TPL or communication is all OK. (Unless your integration project code has other problems)&lt;BR /&gt;The HvBms_Bjb_IsoMeas_ControlAndRead function is called every 100 ms task, I use a variable and freemaster to control it that I need to run this code or not. I think the first step is try to control these gpio pins for me.&lt;BR /&gt;According HvBms_BjbSenseMon.c file, the Bjb main state or sub state will run automatically, I think I need to close them first and then I can control gpio, right?&lt;BR /&gt;For example, HvBms_Bjb_Main_IsoMeas_GpioEnable or HvBms_Bjb_Main_IsoMeas_GpioDisable these functions will run automatically and make me can't control, that's why bjb will entry HVBMS_MODE_HALT mode, this is my opinion.&lt;BR /&gt;Thanks&lt;BR /&gt;BR, BillWen</description>
      <pubDate>Tue, 18 Feb 2025 01:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2045822#M45984</guid>
      <dc:creator>BillWen</dc:creator>
      <dc:date>2025-02-18T01:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2047657#M46059</link>
      <description>Hi RafaR:&lt;BR /&gt;I have some updated and want to discuss with you.&lt;BR /&gt;I modify the "HvBms_BjbSenseMon.c" file and close the "HvBms_Bjb_Main_IsoMeas_GpioDisable" function.&lt;BR /&gt;Add the print log inside "HvBms_Bjb_Main_IsoMeas_GpioEnable" function and make sure the process will run this function. Normally, the gpio5 of AFE1 and gpio6 of AFE2 should be at high level, but I use "Bcc_772c_MEM_ReadRegister" driver code to print "MC33772C_GPIO_STS_OFFSET" the value always be 0, this behavior was wrong I think. I also print log inside "HvBms_BjbIf.c" case AFE1 and BJB_GPIO5_DR_LOW make sure there is no other function make this gpio be low.&lt;BR /&gt;Is there any possibilities these code have some problems? Or I do something wrong? Sorry, because this think is a little urgent.&lt;BR /&gt;&lt;BR /&gt;p.s. These gpio pins are digital output, I already check the Mcal setting and GPIO_CFG1 value&lt;BR /&gt;Thanks&lt;BR /&gt;BR, BillWen</description>
      <pubDate>Thu, 20 Feb 2025 00:32:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2047657#M46059</guid>
      <dc:creator>BillWen</dc:creator>
      <dc:date>2025-02-20T00:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2048366#M46093</link>
      <description>&lt;P&gt;Hi BillWen&lt;/P&gt;
&lt;P&gt;Okay, I'll pass the information on to the AE, but first you could check his response and confirm if it was helpful.&lt;/P&gt;
&lt;P&gt;“””&lt;/P&gt;
&lt;P&gt;I would advise against performing any "external" communication with the BCC/BJB devices outside of the schedule tables implemented in HvBms_CmuBjbSenseMon, as it's a bit tricky to synchronize the commands.&lt;/P&gt;
&lt;P&gt;Instead of calling&amp;nbsp;&lt;EM&gt;HvBms_Bjb_IsoMeas_ControlAndRead&lt;/EM&gt; in a different task, I suggest changing the implementation of&amp;nbsp;&lt;EM&gt;HvBms_Bjb_Main_IsoMeas_GpioEnable&lt;/EM&gt;/&lt;EM&gt;HvBms_Bjb_Main_IsoMeas_GpioDisable&lt;/EM&gt; to call the BJB IF APIs based on the value of the variable that's set in FreeMaster.&lt;/P&gt;
&lt;P&gt;“””&lt;/P&gt;
&lt;P&gt;Then tell me all your comments, to tell my colleague the complete information.&lt;/P&gt;
&lt;P&gt;Have a great day and best of luck.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 16:22:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2048366#M46093</guid>
      <dc:creator>RafaR</dc:creator>
      <dc:date>2025-02-20T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2048612#M46105</link>
      <description>Hi RafaR:&lt;BR /&gt;Thanks for your reply first.&lt;BR /&gt;Forget about the function "HvBms_Bjb_IsoMeas_ControlAndRead" which created by me. I didn't modify any code just remove "HvBms_Bjb_Main_IsoMeas_GpioDisable" from the HvBms_Bjb_Main_States and make it don't run this function then make sure the code will run "HvBms_Bjb_Main_IsoMeas_Gpioenable", but I measure the gpio5 of AFE1 and gpio6 of AFE2 always be low, this is the problem. The gpio5 of AFE1 and gpio6 of AFE2 should be high because of the function "HvBms_Bjb_Main_IsoMeas_Gpioenable".&lt;BR /&gt;Do you know what I mean? I suspect that use "HVBMS_BJB_BJBIF_SETMODE" to set gpio this way is not work. (If I miss any step please tell me, thanks)&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;BR, BillWen</description>
      <pubDate>Thu, 20 Feb 2025 23:53:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2048612#M46105</guid>
      <dc:creator>BillWen</dc:creator>
      <dc:date>2025-02-20T23:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2050582#M46220</link>
      <description>Hi RafaR:&lt;BR /&gt;&lt;BR /&gt;Is there any updated for this problem?&lt;BR /&gt;Sorry, because this think is a little urgent.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;BR, BillWen</description>
      <pubDate>Tue, 25 Feb 2025 07:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2050582#M46220</guid>
      <dc:creator>BillWen</dc:creator>
      <dc:date>2025-02-25T07:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2050983#M46232</link>
      <description>&lt;P&gt;Hi BillWen&lt;/P&gt;
&lt;P&gt;Sorry for the delay, sometimes it takes a little while to get a response due to different time zones, but we are still working, the AE wants to know if it would be possible to get the original/modified files?. It would be easier to observe the differences this way.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Have a great day and best of luck.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 16:34:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2050983#M46232</guid>
      <dc:creator>RafaR</dc:creator>
      <dc:date>2025-02-25T16:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2051166#M46240</link>
      <description>&lt;P&gt;Hi RafaR:&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the HvBms_BjbSenseMon.c file which I modified, please check the attachment.&lt;/P&gt;&lt;P&gt;You can check the function "HvBms_Bjb_Main_IsoMeas_GpioEnable" &amp;amp; "HvBms_Bjb_Main_IsoMeas_Gpiodisable" and "HvBms_Bjb_Check_GPIO_Status" this one is create by me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR, BillWen&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 23:48:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2051166#M46240</guid>
      <dc:creator>BillWen</dc:creator>
      <dc:date>2025-02-25T23:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2055697#M46452</link>
      <description>&lt;P&gt;Hi BillWen&lt;/P&gt;
&lt;P&gt;We are sorry for the delay, It seems very important to resolve this issue as soon as possible but unfortunately the consultation process with the AE takes some time, but good news, I have the comments of the AE, let me share their comments with you:&lt;/P&gt;
&lt;P&gt;Just a note before I already spoke with Jozef and we are both talking to the AE so the comments from the AE comments are to the information shared by Jozef and I&lt;/P&gt;
&lt;P&gt;------&lt;/P&gt;
&lt;P&gt;I compared&amp;nbsp;&lt;EM&gt;HvBms_BjbSenseMon_modify.c&lt;/EM&gt; against&amp;nbsp;&lt;EM&gt;HvBms_BjbSenseMon.c&lt;/EM&gt; BMS App&amp;nbsp;2024.02 release (that seems to be the version used by the customer&amp;nbsp;judging by the header of the attached files).&lt;/P&gt;
&lt;P&gt;A few observations from my side:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I noticed that in function&amp;nbsp;&lt;EM&gt;HvBms_Bjb_Check_GPIO_Status&lt;/EM&gt; you're directly interacting with the BJB via&amp;nbsp;&lt;EM&gt;Bcc_772c_COM_WriteRegister()&lt;/EM&gt;,&amp;nbsp;&lt;EM&gt;Bcc_772c_MEM_ReadRegister()&lt;/EM&gt; etc. API calls.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Generally speaking, HvBms_CmuBjbSenseMon implements the logic required to drive the BMS system (scheduling of BCC/BJB interaction), whilst HvBms_CmuBjbIf interacts with the BCC/BJB device drivers (populating TDs with commands).&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;To read the GPIO status (i.e. HIGH/LOW),&amp;nbsp;&lt;EM&gt;Bcc_772c_COM_ReadRegisters()&lt;/EM&gt; API must be used.&amp;nbsp;&lt;EM&gt;GPIO_STS&lt;/EM&gt; register is not part of the memory mirror, so calling&amp;nbsp;&lt;EM&gt;Bcc_772c_MEM_ReadRegister()&lt;/EM&gt; with&amp;nbsp;&lt;EM&gt;RegAddr ==&amp;nbsp;MC33772C_GPIO_STS_OFFSET&lt;/EM&gt; will return an error.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This implies TPL communication with the MC33772C devices, so a TD will have to be used. Probably the easiest way to retrieve the GPIO status is extending the implementation of the&amp;nbsp;&lt;EM&gt;HvBms_BjbIf_SetMode()&lt;/EM&gt; API and reading back the register value&amp;nbsp;after setting it (e.g.&amp;nbsp;case &lt;EM&gt;BJB_GPIO5_DR_HIGH&lt;/EM&gt;,&amp;nbsp;case &lt;EM&gt;BJB_GPIO5_DR_LOW&lt;/EM&gt; etc.)&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Did you measure the logic level of pins controlling the isolation resistance circuit using a multimeter after &lt;EM&gt;HvBms_Bjb_Main_IsoMeas_GpioEnable()&lt;/EM&gt; is called? This would give a clear indication whether setting the GPIOs actually worked&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information has helped you, please let me know if you need help with anything else.&lt;/P&gt;
&lt;P&gt;Have a great day and best of luck.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 17:41:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2055697#M46452</guid>
      <dc:creator>RafaR</dc:creator>
      <dc:date>2025-03-04T17:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: 800 V Battery Management System (BMS) BJB gpio control problems</title>
      <link>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2056616#M46492</link>
      <description>Hi RafaR:&lt;BR /&gt;Thanks for your reply, I already find out the reason.&lt;BR /&gt;In NXP integration project "HvBms_Bjbif.c" file, the following code is that I modify, after I add the "Bcc_772c_Enumerate" &amp;amp; "Bcc_772c_GPIO_Configure", then the GPIO can be control. The problem is that I think in the "HVBMS_BJB_BJBIF_SETMODE" function there are two function need to do first just like what I add.&lt;BR /&gt;&lt;BR /&gt;if(BJB_DEV_IDX_AFE1 == DevIdx)&lt;BR /&gt;{&lt;BR /&gt;Bcc_772c_Enumerate(ChainIdx, DevIdx, Bms_TDList[HvBms_Com_BjbComBufferIndex]);&lt;BR /&gt;Bcc_772c_GPIO_Configure(ChainIdx, DevIdx, 0, Bms_TDList[HvBms_Com_BjbComBufferIndex]);&lt;BR /&gt;Bjb_GpioSettingAFE1 = (Bjb_GpioSettingAFE1)|(MC33772C_GPIO_CFG2_GPIO5_DR_U16(MC33772C_GPIO_CFG2_GPIO5_DR_HIGH_ENUM_VAL)); /* enable */&lt;BR /&gt;retValue |= Bcc_772c_GPIO_SetOutput(ChainIdx,DevIdx,Bjb_GpioSettingAFE1, Bms_TDList[HvBms_Com_BjbComBufferIndex]);&lt;BR /&gt;if (E_OK == retValue)&lt;BR /&gt;{&lt;BR /&gt;/* Phy workaround */&lt;BR /&gt;retValue |= Bcc_772c_COM_InsertNop(ChainIdx, 1U, Bms_TDList[HvBms_Com_BjbComBufferIndex]);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;Overall, I think I will not use NXP bjb whole code and function, because I think is much fixed and hard to modify it. But I learn a lesson too, thanks a lot for your help.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;BR, BillWen</description>
      <pubDate>Thu, 06 Mar 2025 01:32:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/800-V-Battery-Management-System-BMS-BJB-gpio-control-problems/m-p/2056616#M46492</guid>
      <dc:creator>BillWen</dc:creator>
      <dc:date>2025-03-06T01:32:58Z</dc:date>
    </item>
  </channel>
</rss>

