<?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>Need BMA400 SPI Driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110173/need-bma400-spi-driver</link><description>Hi Team, 
 I could not able to find any SPI driver for BMA400 sensor so let me know if there is any other way around. 
 I am trying to connect nrf52840 with BMA400 on SPI1 port. 
 
 Regards, 
 Aman</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 May 2024 11:00:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110173/need-bma400-spi-driver" /><item><title>RE: Need BMA400 SPI Driver</title><link>https://devzone.nordicsemi.com/thread/482490?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 11:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13c7d5fb-7a17-4cf7-a4db-fa7c288687a3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The crash log suggests that your application is calling a zero-initialized function pointer. I would recommend you look up the LR register address with &amp;#39;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/topic/build-errors-and-fatal-errors/"&gt;addr2line&lt;/a&gt;&amp;#39; to see if you can find where this call was made.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need BMA400 SPI Driver</title><link>https://devzone.nordicsemi.com/thread/482480?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 10:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e04928d2-d263-4b40-a9c3-0cbbec740326</guid><dc:creator>Aman711</dc:creator><description>&lt;p&gt;i have written the SPI drivers for BMA4XX Drivers and getting some runtime errors.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715163807059v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please check the log above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need BMA400 SPI Driver</title><link>https://devzone.nordicsemi.com/thread/478553?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 12:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3a0a8e-ef7b-499f-80a0-a75d2a9335d8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, I assumed the driver had not been added since it was not mentioned in the linked PR nor or included in NCS v2.6.0. If you want to add SPI support, I recommend you use one of the other bosch sensors as a reference. For instance, the bme680 spi driver.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need BMA400 SPI Driver</title><link>https://devzone.nordicsemi.com/thread/478536?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 11:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38093493-480a-4ede-b8c2-6137ed3fa0fc</guid><dc:creator>Aman711</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;Above PR they only have I2C driver and I have also checked zephyr os main thread which contains BMA4XX drivers but they also not included SPI ones.&lt;/p&gt;
&lt;p&gt;If my sensor don&amp;#39;t have driver for SPI then how could i use the Zephyr platform SPI api to fetch the details?&lt;/p&gt;
&lt;p&gt;I would like to write my own drivers if you help me out for the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Aman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need BMA400 SPI Driver</title><link>https://devzone.nordicsemi.com/thread/478534?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 11:39:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957c3c10-b8db-43d6-b319-485562e018ee</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Aman,&lt;/p&gt;
&lt;p&gt;Unfortunately, there is no driver for the BMA400 driver in the SDK. There was a PR for it here:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/52193"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/52193&lt;/a&gt;, but it was never completed. You may use this driver as a starting point if you want to create an SDK driver. Alternatively, you can use the Zephyr SPI api from your application. Here&amp;#39;s an example of how you can use the API&amp;nbsp;&lt;a href="https://github.com/too1/ncs-spi-master-slave-example"&gt;https://github.com/too1/ncs-spi-master-slave-example&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>