<?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: I need firmware driver code for Compass FXOS8700CQ. Can some one please help to get heading / compass values in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605285#M3697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil,&amp;nbsp;&lt;/P&gt;&lt;P&gt;As noted above, download the SDK (with ISSDK option enabled) for either FRDM_K22F or FRDM_K64F from&amp;nbsp;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome to MCUXpresso | MCUXpresso Config Tools&lt;/A&gt;&amp;nbsp;. &amp;nbsp;Once downloaded, look under &amp;lt;sdk_root&amp;gt;/middleware/issdk_1.1/algorithms/sensorfusion for documentation and source files. &amp;nbsp;Example projects are under &amp;lt;sdk_root&amp;gt;/boards/frdmk22f_agm01/issdk_examples/algorithms/sensorfusion (assuming FRDM_K22F).&lt;/P&gt;&lt;P&gt;In general, you should not be using raw magnetometer readings, as there are almost always offsets that need to be subtracted out. &amp;nbsp;Again, please refer to the app notes listed earlier in this thread.&lt;/P&gt;&lt;P&gt;MIke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 14:14:49 GMT</pubDate>
    <dc:creator>michaelestanley</dc:creator>
    <dc:date>2017-03-03T14:14:49Z</dc:date>
    <item>
      <title>I need firmware driver code for Compass FXOS8700CQ. Can some one please help to get heading / compass values</title>
      <link>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605280#M3692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I need to get heading /compass values varies between 0 to 360 to differ from North. Please help to get the angles.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:54:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605280#M3692</guid>
      <dc:creator>naren4uever</dc:creator>
      <dc:date>2026-02-03T21:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: I need firmware driver code for Compass FXOS8700CQ. Can some one please help to get heading / compass values</title>
      <link>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605281#M3693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For eCompass, you need more than just a driver. &amp;nbsp;You need magnetic calibration software and the tilt-compensation algorithm. &amp;nbsp;Both are included in the NXP sensor fusion library. &amp;nbsp;Depending on your MCU, there are two options. &amp;nbsp;For FRDM-K64F and FRDM-K22F development boards, use the Version 7.0 sensor fusion kit, which is part of the ISSDK component of the Kinetis SDK. &amp;nbsp;That can be generated and downloaded from&amp;nbsp;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome to MCUXpresso | MCUXpresso Config Tools&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;FRDM-KL25Z/KL26Z/KL46Z and FRDM-K20D50M boards are supported only via the Version 5.00 software available at &lt;A href="http://www.nxp.com/sensorfusion"&gt;http://www.nxp.com/sensorfusion&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Both kits come with full documentation for the sensor fusion algorithms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 14:49:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605281#M3693</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2017-02-06T14:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: I need firmware driver code for Compass FXOS8700CQ. Can some one please help to get heading / compass values</title>
      <link>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605282#M3694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mike Stanley, I have to design the generic way to implement FXOS8700 as Compass to interface with other micro controllers. I am getting Compass value in the absence of External field/iron material and without tilt. But compass angle is varies when External field induced / tilt the compass. Can you please help to minimize the errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;&lt;P&gt;Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 05:02:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605282#M3694</guid>
      <dc:creator>naren4uever</dc:creator>
      <dc:date>2017-02-10T05:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: I need firmware driver code for Compass FXOS8700CQ. Can some one please help to get heading / compass values</title>
      <link>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605283#M3695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Narendra,&lt;/P&gt;&lt;P&gt;Section 6 of Application Note AN5021 describes the math behind an eCompass. &amp;nbsp; It is contained as part of the V7.00 sensor fusion kit I mentioned earlier. &amp;nbsp;AN4248 and AN4246 are also applicable and can be located by searching the NXP web site for "eCompass".&lt;/P&gt;&lt;P&gt;I will note that excluding the device drivers, the code in the sensor fusion kit is fairly portable. &amp;nbsp;And it IS ok for you to port it to other MCUs. &amp;nbsp;Filename magnetic.c in the kit contains the magnetic calibration algorithm. &amp;nbsp;orientation.c contains the functions that compute orientation.&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 22:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605283#M3695</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2017-02-10T22:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: I need firmware driver code for Compass FXOS8700CQ. Can some one please help to get heading / compass values</title>
      <link>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605284#M3696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I am also using the same FXOS chip for getting the eCompass heading.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;did you solve your problem, i am also facing the same issue. I am getting RAW values from accelerometer x,y,z &amp;amp; magnetic x, y, z data. I am able to convert the rotation, pitch &amp;amp; roll.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;But i need the eCompass 0 - 360 degree heading values. how to apply the formula &amp;nbsp;using RAW values. I am not using any Gyro only accel &amp;amp; mag values are getting from the fxos chip.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;did you got &amp;nbsp;or have any reference c code for getting or calculating the 0, 90, 180, 270 &amp;amp; 360 angle calculation.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;lets please share the&amp;nbsp;&lt;SPAN&gt;magnetic.c and orientation.c files to understand the eCompass algorithm. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;anil&lt;/P&gt;&lt;P&gt;@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 11:17:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605284#M3696</guid>
      <dc:creator>anilkumarraj200</dc:creator>
      <dc:date>2017-03-03T11:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: I need firmware driver code for Compass FXOS8700CQ. Can some one please help to get heading / compass values</title>
      <link>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605285#M3697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil,&amp;nbsp;&lt;/P&gt;&lt;P&gt;As noted above, download the SDK (with ISSDK option enabled) for either FRDM_K22F or FRDM_K64F from&amp;nbsp;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome to MCUXpresso | MCUXpresso Config Tools&lt;/A&gt;&amp;nbsp;. &amp;nbsp;Once downloaded, look under &amp;lt;sdk_root&amp;gt;/middleware/issdk_1.1/algorithms/sensorfusion for documentation and source files. &amp;nbsp;Example projects are under &amp;lt;sdk_root&amp;gt;/boards/frdmk22f_agm01/issdk_examples/algorithms/sensorfusion (assuming FRDM_K22F).&lt;/P&gt;&lt;P&gt;In general, you should not be using raw magnetometer readings, as there are almost always offsets that need to be subtracted out. &amp;nbsp;Again, please refer to the app notes listed earlier in this thread.&lt;/P&gt;&lt;P&gt;MIke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 14:14:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/I-need-firmware-driver-code-for-Compass-FXOS8700CQ-Can-some-one/m-p/605285#M3697</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2017-03-03T14:14:49Z</dc:date>
    </item>
  </channel>
</rss>

