<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122931/failure-of-the-bma4xx-driver-to-compile</link><description>This is NOT a runtime error it&amp;#39;s a compile time error (application). Failing at stage [154/159] Linking C executable zephyr\zephyr_pre0.elf 
 
 Having started by following the &amp;quot; nRF Connect SDK hands-on, series&amp;quot; with Ali Aljaaani. I got his examples working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Aug 2025 12:30:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122931/failure-of-the-bma4xx-driver-to-compile" /><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/547196?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2025 12:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bb1c413-8cda-4aa0-ba5a-2105fff1f60c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Christopher,&lt;/p&gt;
&lt;p&gt;I understand it&amp;#39;s frustrating. Sorry for the delayed reply.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BMA400 sensor has a register map and configuration that is significantly different from other BMA4xx family members such as the BMA422.&amp;nbsp;The proper config for this driver shouild be&lt;strong&gt; CONFIG_BMA4XX. &lt;/strong&gt;This config will not work for BMA422.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/547033?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 08:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b2f04f1-069f-4192-bde4-e8d2b03264e4</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;I think this case can be closed. Since the BMA4XX driver is not compatible with the BMA400 device.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/546487?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2025 14:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45603816-f60a-4801-94be-b8872077e590</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;Hi Thanks, not exactly what I wanted to hear...&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I agree with&amp;nbsp;&lt;/span&gt;&lt;a class="user-mention notranslate" href="https://github.com/Charlie-83" data-hovercard-type="user" data-hovercard-url="/users/Charlie-83/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"&gt;@Charlie-83&lt;/a&gt;&lt;span&gt;, Please, Please add a Warning I have wasted many hours trying to get this driver to work with a BMA400!!!&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f644.svg" title="Rolling eyes"&gt;&amp;#x1f644;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/2639.svg" title="Frowning2"&gt;&amp;#x2639;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/546462?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2025 12:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:659d0870-1ccd-4d26-b1fb-893ef7d8a124</guid><dc:creator>ivan iushkov</dc:creator><description>&lt;p&gt;zephyr doesn&amp;#39;t have BMA400 driver, see the issue:&lt;br /&gt;&lt;a id="" href="https://github.com/zephyrproject-rtos/zephyr/issues/85462"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/85462&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/545770?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2025 10:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40c01edb-6422-4a79-9c66-3e910fdf34ee</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;Apologies for the delay and thank you for the update. I have escalated this internally and will surely get back to you as soon as possible.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/545720?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2025 23:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc09805e-e862-4d0f-97e8-67c14ff7d962</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;Further update.....&lt;/p&gt;
&lt;p&gt;I have just installed the latest SDK and Toolchain (3.10) and the error still exists even though the BMA4xx driver has been rewritten.&amp;nbsp; So I suspect the error may lie in the &amp;quot;sensor&amp;quot; code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.252,288] &amp;lt;dbg&amp;gt; bma4xx: bma4xx_chip_init: chip_id is 0x90
[00:00:00.258,789] &amp;lt;wrn&amp;gt; bma4xx: Driver tested for BMA422. Check for unintended operation.
[00:00:00.283,508] &amp;lt;inf&amp;gt; bma4xx: FIFO ENABLED
[00:00:00.288,208] &amp;lt;dbg&amp;gt; bma4xx: bma4xx_configure: FIFO_CONFIG1 (0x49) 0x50
[00:00:00.297,607] &amp;lt;dbg&amp;gt; bma4xx: bma4xx_configure: FIFO_WTM_0( (0x46)) (WM Low) 0x0
[00:00:00.306,182] &amp;lt;dbg&amp;gt; bma4xx: bma4xx_configure: FIFO_WTM_1 (0x47) (WM High) 0x0
*** Booting nRF Connect SDK v3.1.0-6c6e5b32496e ***
*** Using Zephyr OS v4.1.99-1612683d4010 ***
Found bma400@14
[00:00:00.325,195] &amp;lt;err&amp;gt; os: ***** USAGE FAULT *****
[00:00:00.330,810] &amp;lt;err&amp;gt; os:   Illegal use of the EPSR
[00:00:00.336,608] &amp;lt;err&amp;gt; os: r0/a1:  0x0000ad3c  r1/a2:  0x00000040  r2/a3:  0x00000000
[00:00:00.345,245] &amp;lt;err&amp;gt; os: r3/a4:  0x00000000 r12/ip:  0x00002745 r14/lr:  0x000009d7
[00:00:00.353,851] &amp;lt;err&amp;gt; os:  xpsr:  0x00000000
[00:00:00.359,039] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00000000
[00:00:00.366,912] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 35: Unknown error on CPU 0
[00:00:00.374,755] &amp;lt;err&amp;gt; os: Current thread: 0x20000760 (unknown)
[00:00:00.381,469] &amp;lt;err&amp;gt; os: Halting system&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The new driver has a bma4xx_def.h file which incorrectly assigns the wrong register addreses.&amp;nbsp; Lines 79 and 80...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* BMA4xx I2C register */
//#define BMA4XX_REG_I2C_SDO_HIGH (0x19)	//wrong
//#define BMA4XX_REG_I2C_SDO_LOW  (0x18)	//wrong
#define BMA4XX_REG_I2C_SDO_HIGH (0x15)	// Datasheet says this
#define BMA4XX_REG_I2C_SDO_LOW  (0x14)	// Datasheet says this&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/545716?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2025 21:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3369ffa7-16f8-43c2-87a2-50590edad614</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;I opened a new ticket for the Temperature bug as requested.&lt;/p&gt;
&lt;p&gt;Any news on the creashing error?&amp;nbsp; This is really holding up our development at the moment!&lt;/p&gt;
&lt;p&gt;After more digging I noticed a warning, which I cannot understand!!&amp;nbsp; As far as I can tell everything is enabled.&amp;nbsp; The device tree shows all present and enabled.&lt;/p&gt;
&lt;p&gt;CONFIG_BMA4XX was assigned the value y, but got the value n. Missing dependencies: DT_HAS_BOSCH_BMA4XX_ENABLED&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have no idea if this is anything to do with the bug.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/544180?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 08:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67ee8ea2-2b5e-4a72-a001-bd7be4753aed</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;Kazi is away on vacation and I will be looking into the case for he time being. I have inquired internally and will get back to you as soon as I get a good response.&lt;/p&gt;
&lt;p&gt;For the new bug that you have experienced, please begin a new ticket since it&amp;#39;s different from the current one so that someone with related expertise can handle it.&lt;/p&gt;
&lt;p&gt;This will also help keep Devzone clean for future seekers.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/543565?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 19:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:829b0ab4-78e0-4ca3-985d-5c0c74355764</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;Hi Kazi&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Unfortunately I found another bug no related to the issue above!&lt;/p&gt;
&lt;p&gt;When using &amp;quot;CONFIG_BMA4XX_TEMPERATURE=y&amp;quot; there is a compilation failure.&lt;/p&gt;
&lt;p&gt;Line 621 of bma4xx.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;		rc = bma4xx_get_shift(SENSOR_CHAN_DIE_TEMP, 0, &amp;amp;out-&amp;gt;shift);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Unfortunately the first argument of the function tries to use &amp;quot;SENSOR_CHAN_DIE_TEMP&amp;quot; which is a &amp;quot;int16&amp;quot;, but the first argument of the function is a &amp;quot;Two Word Struct&amp;quot; so results in a compilation failure.&lt;/p&gt;
&lt;p&gt;Line 597 calls the function correctly:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;		rc = bma4xx_get_shift((struct sensor_chan_spec){.chan_type = SENSOR_CHAN_ACCEL_XYZ,
								.chan_idx = 0},
				      header-&amp;gt;accel_fs, &amp;amp;out-&amp;gt;shift);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So I think line 621 function call needs to be changed to follow function call on Line 597 Eg:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;		rc = bma4xx_get_shift((struct sensor_chan_spec){.chan_type = SENSOR_CHAN_DIE_TEMP,
								.chan_idx = 0},  0, &amp;amp;out-&amp;gt;shift);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/543542?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 14:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36bee308-44b8-46a5-9f6d-b19d9ea82962</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have asked developer. I will get back to you later.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/542892?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 14:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35961744-77f3-4245-8b12-29de942ce8f3</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried 2.8.0,&amp;nbsp; 2.9.0,&amp;nbsp; 3.0.0,&amp;nbsp; and 3.0.2.&amp;nbsp; All give the same result.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.249,420] &amp;lt;dbg&amp;gt; bma4xx: bma4xx_chip_init: chip_id is 0x90
[00:00:00.271,118] &amp;lt;wrn&amp;gt; bma4xx: Driver tested for BMA422. Check for unintended operation.
*** Booting nRF Connect SDK v3.0.2-89ba1294ac9b ***
*** Using Zephyr OS v4.0.99-f791c49f492c ***
Found bma400@14
[00:00:00.293,975] &amp;lt;err&amp;gt; os: ***** USAGE FAULT *****
[00:00:00.299,804] &amp;lt;err&amp;gt; os:   Illegal use of the EPSR
[00:00:00.305,816] &amp;lt;err&amp;gt; os: r0/a1:  0x00009b80  r1/a2:  0x0000003f  r2/a3:  0x00000000
[00:00:00.314,788] &amp;lt;err&amp;gt; os: r3/a4:  0x00000000 r12/ip:  0x000025e9 r14/lr:  0x00000693
[00:00:00.323,760] &amp;lt;err&amp;gt; os:  xpsr:  0x00000000
[00:00:00.329,162] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00000000
[00:00:00.337,310] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 35: Unknown error on CPU 0
[00:00:00.345,458] &amp;lt;err&amp;gt; os: Current thread: 0x200007c8 (unknown)
[00:00:00.352,447] &amp;lt;err&amp;gt; os: Halting system&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/542760?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 12:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c931fd0-7030-46d0-ae48-4407540df327</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you try with latest version of NCS (V3.0.2)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/542573?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 18:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dc59830-f6f8-4956-8e58-6e5c369fbdce</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Update:&amp;nbsp; I have now managed to compile with the BMA4xx driver, but have now run into issues using the sensor.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;BOOT WITH BOTH SENSOR COMMANDS DISABLED

*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
Found bma400@14
Sensor Reporting!
AX: 256.000032; AY: 0.023725; AZ: -1.037648;[00:00:00.406,311] &amp;lt;dbg&amp;gt; bma4xx: bma4xx_chip_init: chip_id is 0x90
[00:00:00.413,146] &amp;lt;wrn&amp;gt; bma4xx: Driver tested for BMA422. Check for unintended operation.

BOOT WITH SENSOR_SAMPLE_FETCH ENABLED

*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
Found bma400@14
[00:00:00.435,974] &amp;lt;err&amp;gt; os: ***** USAGE FAULT *****
[00:00:00.441,802] &amp;lt;err&amp;gt; os:   Illegal use of the EPSR
[00:00:00.447,845] &amp;lt;err&amp;gt; os: r0/a1:  0x00009170  r1/a2:  0x0000003b  r2/a3:  0x00000000
[00:00:00.456,817] &amp;lt;err&amp;gt; os: r3/a4:  0x00000000 r12/ip:  0x00002335 r14/lr:  0x00000693
[00:00:00.465,820] &amp;lt;err&amp;gt; os:  xpsr:  0x00000000
[00:00:00.471,221] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00000000
[00:00:00.479,400] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 35: Unknown error on CPU 0
[00:00:00.487,548] &amp;lt;err&amp;gt; os: Current thread: 0x20000278 (unknown)
[00:00:00.494,567] &amp;lt;err&amp;gt; os: Halting system
[00:00:00.407,775] &amp;lt;dbg&amp;gt; bma4xx: bma4xx_chip_init: chip_id is 0x90
[00:00:00.414,611] &amp;lt;wrn&amp;gt; bma4xx: Driver tested for BMA422. Check for unintended operation.

BOOT WITH SENSOR_CHANNEL_GET ENABLED

*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
Found bma400@14
[00:00:00.437,408] &amp;lt;err&amp;gt; os: ***** USAGE FAULT *****
[00:00:00.443,237] &amp;lt;err&amp;gt; os:   Illegal use of the EPSR
[00:00:00.449,279] &amp;lt;err&amp;gt; os: r0/a1:  0x00009174  r1/a2:  0x00000003  r2/a3:  0x20001ea0
[00:00:00.458,282] &amp;lt;err&amp;gt; os: r3/a4:  0x00000000 r12/ip:  0x00002339 r14/lr:  0x00000695
[00:00:00.467,285] &amp;lt;err&amp;gt; os:  xpsr:  0x00000000
[00:00:00.472,686] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00000000
[00:00:00.480,865] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 35: Unknown error on CPU 0
[00:00:00.489,044] &amp;lt;err&amp;gt; os: Current thread: 0x20000278 (unknown)
[00:00:00.496,063] &amp;lt;err&amp;gt; os: Halting system
[00:00:00.410,308] &amp;lt;dbg&amp;gt; bma4xx: bma4xx_chip_init: chip_id is 0x90
[00:00:00.417,144] &amp;lt;wrn&amp;gt; bma4xx: Driver tested for BMA422. Check for unintended operation.

BOOT WITH BOTH SENSOR COMMANDS DISABLED

*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
Found bma400@14
Sensor Reporting!
AX: 256.000032; AY: 0.023725; AZ: -1.037648;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Above output is from 4 boots with different configurations of the sensor.... lines enabled.&amp;nbsp; In all 4 cases the chip is identified ID:90, and&amp;nbsp;Found bma400@14. which is correct.&lt;/p&gt;
&lt;p&gt;So neither &amp;quot;sensor_sample_fetch&amp;quot; or &amp;quot;sensor_channel_get&amp;quot; work with the bma4xx driver, both get fatal errors.&lt;/p&gt;
&lt;p&gt;I have created a sample test case, attached. I have removed the build directory to reduce size.&lt;/p&gt;
&lt;p&gt;I was building on nRF52840dk-nRF52840 development board, nRF-connect 2.7.0 I have a BMA400 connected to the standard i2c0 pins, p0.26 and p0.27.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5875.bma4xx_5F00_example.zip"&gt;devzone.nordicsemi.com/.../5875.bma4xx_5F00_example.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/542430?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 17:10:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b72f10-9fae-432f-85f0-a3424018b710</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes: per my reply above I think it was the:&amp;nbsp;&lt;strong&gt;CONFIG_SENSOR_ASYNC_API=y,&amp;nbsp;&lt;/strong&gt;line that was the main missing link.&lt;/p&gt;
&lt;p&gt;After digging around in the driver files I found this in the: &lt;strong&gt;bma4xx/Kconfig file&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	depends on DT_HAS_BOSCH_BMA4XX_ENABLED
	depends on SENSOR_ASYNC_API&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/542418?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 16:04:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b45ebd4-cbbf-49a6-a615-d4546411a88b</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is common error &amp;#39;&amp;#39;: undefined reference to `__device_dts_ord_105&amp;#39;&amp;#39; when driver is not enabled for the sensors in the prj.conf file.&lt;/p&gt;
&lt;p&gt;Try adding CONFIG_BMA400=y and&amp;nbsp;CONFIG_BMA400_I2C=y in the prj.conf file and run the sample again.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure of the BMA4xx driver to compile</title><link>https://devzone.nordicsemi.com/thread/542389?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 12:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ac946d8-40c5-416e-9737-b9f08b990718</guid><dc:creator>chrisstv</dc:creator><description>&lt;p&gt;Hi Thanks,&lt;/p&gt;
&lt;p&gt;I may have tracked down the issue after trawling through the build directory I discovered that there had been no attempt to compile the driver so the cause of the error was no &amp;quot;bma4xx.obj&amp;quot; file.&amp;nbsp; The error only showed at link time...&lt;/p&gt;
&lt;p&gt;It appear that two new CONFIG entries are required for this driver but not the previous Bosch drivers.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SENSOR_ASYNC_API=y
CONFIG_BMA4XX=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As I&amp;#39;m at work I can only try this on the testcase I submitted which now compiles.&amp;nbsp; I will try in the full code this evening.&lt;/p&gt;
&lt;p&gt;This is not mentioned here, maybe it should be!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0-preview3/page/zephyr/build/dts/api/bindings/sensor/bosch_bma4xx-i2c.html"&gt;docs.nordicsemi.com/.../bosch_bma4xx-i2c.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps other users.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>