<?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>SensorsのトピックRe: FXAS21002C won't initialize</title>
    <link>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024109#M6056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the fast response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reading the WHO_AM_I register and it returned 215 dec, as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHO_AM_I plot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="WHO_AM_I.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94226i7B81C91E1C77249A/image-size/large?v=v2&amp;amp;px=999" role="button" title="WHO_AM_I.png" alt="WHO_AM_I.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REG1 read plot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="REG1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94243i76F48852285D35DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="REG1.png" alt="REG1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Initialisation sequence:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Reset:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RESET.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94374i65D8BB476F6E72AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="RESET.png" alt="RESET.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Set REG1 (control register):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SetCtrl.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94459iB793AE9EDE49916D/image-size/large?v=v2&amp;amp;px=999" role="button" title="SetCtrl.png" alt="SetCtrl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Set Active:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ACTIVE.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94508i7A7720E0F2E0820F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ACTIVE.png" alt="ACTIVE.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The WHO_AM_I read looks different than yours, but it returns the correct value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Can you see a mistake?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2019 11:10:43 GMT</pubDate>
    <dc:creator>mkruithof</dc:creator>
    <dc:date>2019-11-11T11:10:43Z</dc:date>
    <item>
      <title>FXAS21002C won't initialize</title>
      <link>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024107#M6054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I have been struggeling to get the gyrometer ( a fxas21002c) on the nxp 9DoF precision module&amp;nbsp; work.&lt;/P&gt;&lt;P&gt;For a company project I need to read the measument values of the gyro, using a STM32F446RE via an I2C bus. I wrote a GyroInit() function to initialize the sensor, but if I read the&amp;nbsp;GYRO_REGISTER_CTRL_REG1 register after initilization, the entire register is still 0. So initialization seems to go wrong, I hooked up an osciloscoop and the osciloscoop shows that the STM writes the init data.&lt;/P&gt;&lt;P&gt;For the past few days I have been trying to figure out why the register never gets set, help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pin connections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; STM&lt;/P&gt;&lt;P&gt;Vin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; &amp;nbsp; &amp;nbsp; 3V3&lt;/P&gt;&lt;P&gt;3Vo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;unconnected&amp;gt;&lt;/P&gt;&lt;P&gt;GND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; GND&lt;/P&gt;&lt;P&gt;SCL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; SCL (D15)&lt;/P&gt;&lt;P&gt;SDA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; SDA (D14)&lt;/P&gt;&lt;P&gt;RST&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; &amp;nbsp; &amp;nbsp; 3V3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test if the sensor works, I used a Raspberry pi 2 model b with a python script, this way I did get the expected measurement values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 23:44:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024107#M6054</guid>
      <dc:creator>mkruithof</dc:creator>
      <dc:date>2026-02-03T23:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: FXAS21002C won't initialize</title>
      <link>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024108#M6055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Madita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to read the WHO_AM_I register (0x0C). This is the first thing I would recommend to check before initialization of the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should see something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FXAS21002+WHO_AM_I+Read.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94889iA0529ABDED8A6420/image-size/large?v=v2&amp;amp;px=999" role="button" title="FXAS21002+WHO_AM_I+Read.jpg" alt="FXAS21002+WHO_AM_I+Read.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;1. Send a start sequence&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;2. Send 0x40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // FXAS21002 slave address with the R/W bit low or 0x20 &amp;lt;&amp;lt; 1&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;3. Send 0x0C&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;4. Send a start sequence again (repeated start)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;5. Send 0x41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // FXAS21002 slave address with the R/W bit high or (0x20 &amp;lt;&amp;lt; 1) | 0x01&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;6. Read the data byte from WHO_AM_I register&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;7. Send NAK and the stop sequence&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;A common problem during the read operation is that some customers send the stop condition (a LOW to HIGH transition of SDA while SCL is HIGH) instead of sending the repeated start condition after the second byte (0x0C), so please double check it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Since you have an oscilloscope, can you please post here a plot illustrating what is going on on the bus when you read the WHO_AM_I register? Also a picture illustrating the traffic when writing to the CTRL_REG1 register might be helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Tomas&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;EM style="color: #3d3d3d; border: 1pt none windowtext; font-weight: inherit; font-size: 9pt; padding: 0in;"&gt;PS:&amp;nbsp;If my answer helps to solve your question, please mark it as "Correct" or “Helpful”. Thank you.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 08:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024108#M6055</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2019-11-11T08:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: FXAS21002C won't initialize</title>
      <link>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024109#M6056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the fast response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reading the WHO_AM_I register and it returned 215 dec, as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHO_AM_I plot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="WHO_AM_I.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94226i7B81C91E1C77249A/image-size/large?v=v2&amp;amp;px=999" role="button" title="WHO_AM_I.png" alt="WHO_AM_I.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REG1 read plot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="REG1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94243i76F48852285D35DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="REG1.png" alt="REG1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Initialisation sequence:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Reset:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RESET.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94374i65D8BB476F6E72AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="RESET.png" alt="RESET.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Set REG1 (control register):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SetCtrl.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94459iB793AE9EDE49916D/image-size/large?v=v2&amp;amp;px=999" role="button" title="SetCtrl.png" alt="SetCtrl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Set Active:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ACTIVE.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94508i7A7720E0F2E0820F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ACTIVE.png" alt="ACTIVE.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The WHO_AM_I read looks different than yours, but it returns the correct value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Can you see a mistake?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 11:10:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024109#M6056</guid>
      <dc:creator>mkruithof</dc:creator>
      <dc:date>2019-11-11T11:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: FXAS21002C won't initialize</title>
      <link>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024110#M6057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Madita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like your write operation is incorrect. The correct format looks like this:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/93936i7A2CCBFE135F1B33/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;So if you want to write 0x03 to the CTRL_REG1 register (0x13), you need to (when SA0 = 0):&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;1. Send a start sequence&lt;/P&gt;&lt;P style="border: 0px;"&gt;2. Send 0x40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // FXAS21002 slave address with the R/W bit low or 0x20 &amp;lt;&amp;lt; 1&lt;/P&gt;&lt;P style="border: 0px;"&gt;3. Send 0x13&amp;nbsp; &amp;nbsp; &amp;nbsp; // Address of the CTRL_REG1 register&lt;/P&gt;&lt;P style="border: 0px;"&gt;4. Send 0x03&amp;nbsp; &amp;nbsp; &amp;nbsp; // Data to be written to the CTRL_REG1 register&lt;/P&gt;&lt;P style="border: 0px;"&gt;5. Send&amp;nbsp;a stop sequence&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C_Write.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92577iBA415A8CC4DE4586/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C_Write.JPG" alt="I2C_Write.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 12:37:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024110#M6057</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2019-11-11T12:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: FXAS21002C won't initialize</title>
      <link>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024111#M6058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I use a function STM provided to do exactly what you say, I do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t tempData = 0x03;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAL_I2C_Mem_Write(&amp;amp;hi2c1, (0x20 &amp;lt;&amp;lt; 1), 0x13, 1, &amp;amp;tempData, 1, 100);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function definition of HAL_I2C_MEM_WRITE:&lt;/P&gt;&lt;P&gt;HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The plot from this code is what is shown in picture 2 (set REG1) of my reaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this does not seem to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 12:55:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/FXAS21002C-won-t-initialize/m-p/1024111#M6058</guid>
      <dc:creator>mkruithof</dc:creator>
      <dc:date>2019-11-11T12:55:04Z</dc:date>
    </item>
  </channel>
</rss>

