<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Openimu300ZI SPI communication using TX2 spidev]]></title><description><![CDATA[<p>Hi, I followed the process below, but still don't get what I want.</p>
<ol>
<li>
<p>flash the IMU to the newest VG_AHRS/INS program.</p>
</li>
<li>
<p>inside program:<br />
nRST-&gt;LOW<br />
initialize SPI<br />
sleep 500ms<br />
nRST-&gt;HIGH<br />
sleep 500ms<br />
DRDY-&gt;LOW<br />
<img src="https://navview.blob.core.windows.net/forum/upload/3-l0wdglwh.png" alt="3.png" class="img-responsive img-markdown" /></p>
</li>
<li>
<p>CS(using GPIO)-&gt;LOW<br />
transfer 0x04, 0x00<br />
transfer 0x00, 0x00<br />
CS(using GPIO)-&gt;HIGH<br />
<img src="https://navview.blob.core.windows.net/forum/upload/4-l0wdgyih.png" alt="4.png" class="img-responsive img-markdown" /></p>
</li>
</ol>
<p>Note:</p>
<ol>
<li>I choose to use GPIO as CS control, because the spidev automatically pull high the CS between data blocks. So I use GPIO to always keep it low during transmit and receive.</li>
<li>According to the time printed out in my program, the time span between transmit and receive is about 500 usec, which is greater than 20 usec, so I expect it to be working.<br />
<img src="https://navview.blob.core.windows.net/forum/upload/5-l0wdh64v.png" alt="5.png" class="img-responsive img-markdown" /></li>
<li>Reading most of the registers give back 0x00s, only some give back weird results, like 0x37, 0x56, 0x57.<br />
transmit 0x37 gives back 0x00 0xc0<br />
transmit 0x56 gives back 0x60 0x00<br />
transmit 0x57 gives back 0x00 0x06<br />
I guess this is because the data shift for 1 bit or something, so this would be a minor problem.<br />
But except these, the other registers don't give any information.</li>
</ol>
<p>I'd like to know what else I can do to receive some information about the accelerations, rates, and angles.<br />
Thanks!</p>
]]></description><link>https://forum.aceinna.com//topic/330/openimu300zi-spi-communication-using-tx2-spidev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 00:41:42 GMT</lastBuildDate><atom:link href="https://forum.aceinna.com//topic/330.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Mar 2022 12:05:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Fri, 18 Mar 2022 12:05:39 GMT]]></title><description><![CDATA[<p>Hi, I followed the process below, but still don't get what I want.</p>
<ol>
<li>
<p>flash the IMU to the newest VG_AHRS/INS program.</p>
</li>
<li>
<p>inside program:<br />
nRST-&gt;LOW<br />
initialize SPI<br />
sleep 500ms<br />
nRST-&gt;HIGH<br />
sleep 500ms<br />
DRDY-&gt;LOW<br />
<img src="https://navview.blob.core.windows.net/forum/upload/3-l0wdglwh.png" alt="3.png" class="img-responsive img-markdown" /></p>
</li>
<li>
<p>CS(using GPIO)-&gt;LOW<br />
transfer 0x04, 0x00<br />
transfer 0x00, 0x00<br />
CS(using GPIO)-&gt;HIGH<br />
<img src="https://navview.blob.core.windows.net/forum/upload/4-l0wdgyih.png" alt="4.png" class="img-responsive img-markdown" /></p>
</li>
</ol>
<p>Note:</p>
<ol>
<li>I choose to use GPIO as CS control, because the spidev automatically pull high the CS between data blocks. So I use GPIO to always keep it low during transmit and receive.</li>
<li>According to the time printed out in my program, the time span between transmit and receive is about 500 usec, which is greater than 20 usec, so I expect it to be working.<br />
<img src="https://navview.blob.core.windows.net/forum/upload/5-l0wdh64v.png" alt="5.png" class="img-responsive img-markdown" /></li>
<li>Reading most of the registers give back 0x00s, only some give back weird results, like 0x37, 0x56, 0x57.<br />
transmit 0x37 gives back 0x00 0xc0<br />
transmit 0x56 gives back 0x60 0x00<br />
transmit 0x57 gives back 0x00 0x06<br />
I guess this is because the data shift for 1 bit or something, so this would be a minor problem.<br />
But except these, the other registers don't give any information.</li>
</ol>
<p>I'd like to know what else I can do to receive some information about the accelerations, rates, and angles.<br />
Thanks!</p>
]]></description><link>https://forum.aceinna.com//post/1372</link><guid isPermaLink="true">https://forum.aceinna.com//post/1372</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Fri, 18 Mar 2022 12:05:39 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Mon, 18 Apr 2022 01:32:13 GMT]]></title><description><![CDATA[<ol>
<li>Remove &quot;nRST-&gt;LOW&quot; and &quot;nRST-&gt;HIGH&quot; ,at the same, dont connect the nRst.</li>
<li>Add &quot;delay(20us)&quot; after &quot;CS(using GPIO)-&gt;LOW&quot; and add &quot;delay(20us)&quot; befor &quot;CS(using GPIO)-&gt;HIGH<br />
&quot;</li>
<li>Retry it, Pls.</li>
</ol>
]]></description><link>https://forum.aceinna.com//post/1383</link><guid isPermaLink="true">https://forum.aceinna.com//post/1383</guid><dc:creator><![CDATA[chengyong]]></dc:creator><pubDate>Mon, 18 Apr 2022 01:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Mon, 23 May 2022 12:43:09 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/1428">@chengyong</a> Thanks for your reply.<br />
But I have a clearer picture now, so I gotta ask another question.<br />
I really need a quick reply now. Hope someone could answer me as soon as possible~<br />
另外中文溝通也行。</p>
<p>As in the photos below, I am able to read data by sending 0x56, but nothing from 0x04.<br />
The third photo shows the output of every single read.<br />
Also I am able to burst read from 0x3E but not 0x3D.</p>
<p><img src="https://navview.blob.core.windows.net/forum/upload/0x56-l3ipgqwu.png" alt="0x56.png" class="img-responsive img-markdown" /><br />
<img src="https://navview.blob.core.windows.net/forum/upload/255d5ebd-0b4f-44c7-a6b2-eeca01622b0b-image-l3iphx80.png" alt="255d5ebd-0b4f-44c7-a6b2-eeca01622b0b-image.png" class="img-responsive img-markdown" /><br />
<img src="https://navview.blob.core.windows.net/forum/upload/singleread-l3ipmc86.png" alt="singleread.png" class="img-responsive img-markdown" /><br />
<img src="https://navview.blob.core.windows.net/forum/upload/0x3E-l3ipp3ol.png" alt="0x3E.png" class="img-responsive img-markdown" /><br />
<img src="https://navview.blob.core.windows.net/forum/upload/0x3D-l3ipq851.png" alt="0x3D.png" class="img-responsive img-markdown" /></p>
<p>I am now using arduino to transfer SPI signals.<br />
I used STlink to flash the software to INS app by the method shown here:<br />
(I downloaded the bin file from <a href="https://developers.aceinna.com/code/apps" rel="nofollow">here</a><br />
<img src="https://navview.blob.core.windows.net/forum/upload/flash-l3iptwyh.png" alt="flash.png" class="img-responsive img-markdown" /></p>
<p>I don't know if it is the hardware problem or the software problem.<br />
Please help me investigate.<br />
Appreciate!</p>
]]></description><link>https://forum.aceinna.com//post/1428</link><guid isPermaLink="true">https://forum.aceinna.com//post/1428</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Mon, 23 May 2022 12:43:09 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Mon, 23 May 2022 12:45:48 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/87">@cek</a><br />
looking forward for your help.<br />
Sincerely</p>
]]></description><link>https://forum.aceinna.com//post/1429</link><guid isPermaLink="true">https://forum.aceinna.com//post/1429</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Mon, 23 May 2022 12:45:48 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Mon, 23 May 2022 13:07:17 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/4">@Li-YiFan</a><br />
Sincerely looking forward for your help.</p>
]]></description><link>https://forum.aceinna.com//post/1430</link><guid isPermaLink="true">https://forum.aceinna.com//post/1430</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Mon, 23 May 2022 13:07:17 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Mon, 23 May 2022 13:19:30 GMT]]></title><description><![CDATA[<p>My SN number is 2008400344</p>
]]></description><link>https://forum.aceinna.com//post/1431</link><guid isPermaLink="true">https://forum.aceinna.com//post/1431</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Mon, 23 May 2022 13:19:30 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Mon, 23 May 2022 13:22:26 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/87">@cek</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/4">@Li-YiFan</a><br />
Sincerely looking forward for your help.<br />
My SN number is 2008400344</p>
]]></description><link>https://forum.aceinna.com//post/1432</link><guid isPermaLink="true">https://forum.aceinna.com//post/1432</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Mon, 23 May 2022 13:22:26 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Mon, 23 May 2022 16:07:41 GMT]]></title><description><![CDATA[<p>I have now recovered the whole EEPROM bin which I backed up.<br />
Everything works fine, including all single reads and 0x3E burst read.<br />
So maybe it confirms that the INS app from <a href="https://developers.aceinna.com/code/apps" rel="nofollow">https://developers.aceinna.com/code/apps</a> is having some problem(?<br />
Or maybe the way I uploaded the firmware is incorrect.</p>
<p>Following the ST-link method instruction.<br />
I did the folowing:</p>
<ol>
<li>download the bin file of firmwares</li>
<li>start uploading from the address 0x08010000</li>
</ol>
<p>Do I have to set the ending address or something?<br />
If this is not the problem, then perhaps I 'll need to ask for a customized bin file with my SN number 2008400344.<br />
And I'd like to have the VG_AHRS firmware.<br />
I couldn't get data from VG_AHRS at first, so I turned to the INS app.<br />
After all , I just want to get the angle data + rate data.</p>
<p>Truly appreciate!<br />
Looking forward to any reply!</p>
]]></description><link>https://forum.aceinna.com//post/1433</link><guid isPermaLink="true">https://forum.aceinna.com//post/1433</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Mon, 23 May 2022 16:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Tue, 24 May 2022 08:40:20 GMT]]></title><description><![CDATA[<p>I noticed that there is an initialization issue in AHRS and INS app.<br />
Is it necessary if I want to get data from burst read 0x3D?</p>
]]></description><link>https://forum.aceinna.com//post/1434</link><guid isPermaLink="true">https://forum.aceinna.com//post/1434</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Tue, 24 May 2022 08:40:20 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Fri, 27 May 2022 08:34:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/2264">@drib861204</a> Hi,  I didn't have a 300zi available to do a tset as you said these days, but now I do and I will do a tset and reply you as soon as possible.</p>
]]></description><link>https://forum.aceinna.com//post/1440</link><guid isPermaLink="true">https://forum.aceinna.com//post/1440</guid><dc:creator><![CDATA[Liang Zhang]]></dc:creator><pubDate>Fri, 27 May 2022 08:34:45 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Fri, 27 May 2022 09:24:56 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/2315">@Liang-Zhang</a> Many thanks!<br />
May I update what I've tried these days.<br />
I used the upload function from vscode aceinna extension to upload VG_AHRS to my imu.(photo 1)<br />
The imu output is the same as I downloaded the bin file from <a href="https://developers.aceinna.com/code/apps" rel="nofollow">https://developers.aceinna.com/code/apps</a><br />
They both can only answer to 0x56, 0x3E, etc, but not 0x3D and others.(photo 2)<br />
So I feel like I skipped the initialization step of this app.<br />
But still I have no idea how to initialize.<br />
<img src="https://navview.blob.core.windows.net/forum/upload/VSCodeToolBar-l3o8gf1o.png" alt="VSCodeToolBar.png" class="img-responsive img-markdown" /><br />
<img src="https://navview.blob.core.windows.net/forum/upload/singleread-l3o8ldiy.png" alt="singleread.png" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.aceinna.com//post/1441</link><guid isPermaLink="true">https://forum.aceinna.com//post/1441</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Fri, 27 May 2022 09:24:56 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Thu, 09 Jun 2022 16:02:22 GMT]]></title><description><![CDATA[<p>I solved the problem adding <code>volatile</code> to &quot;data&quot; in the function: void FillSPIBurstDataBuffer() inside UserMessagingSPI.c on VSCode open source VG-AHRS application.<br />
<img src="https://navview.blob.core.windows.net/forum/upload/VGAHRS_v3_code-l4776l43.png" alt="VGAHRS_v3_code.png" class="img-responsive img-markdown" /><br />
Now I can finally get roll and pitch angles by sending 0x3D SPI command.<br />
If this error happens to other openimu300zi's, then it is a freaking HUGE bug that should've been solved already.<br />
Anyone suffers from the same problem? Or anyone uses SPI on openimu300zi and finds it works just fine? Let me know if you are in either of the situation. Thanks!</p>
]]></description><link>https://forum.aceinna.com//post/1444</link><guid isPermaLink="true">https://forum.aceinna.com//post/1444</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Thu, 09 Jun 2022 16:02:22 GMT</pubDate></item><item><title><![CDATA[Reply to Openimu300ZI SPI communication using TX2 spidev on Thu, 09 Jun 2022 16:36:52 GMT]]></title><description><![CDATA[<p>Hi folks<br />
Here is the arduino codes I use, please use them if you need some quick setup.<br />
<a href="https://www.dropbox.com/sh/v86c8owlpwf26k8/AADKFPKmRmg14mmroI32NZW3a?dl=0" rel="nofollow">https://www.dropbox.com/sh/v86c8owlpwf26k8/AADKFPKmRmg14mmroI32NZW3a?dl=0</a><br />
openimu300zi.ino serial monitor:<br />
<img src="https://navview.blob.core.windows.net/forum/upload/VGAHRS_v3_2-l478h7tv.png" alt="VGAHRS_v3_2.png" class="img-responsive img-markdown" /><br />
openimu300zi_roll_pitch.ino serial plotter:<br />
<img src="https://navview.blob.core.windows.net/forum/upload/VGAHRS_v3_monitor-l478kkso.png" alt="VGAHRS_v3_monitor.png" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.aceinna.com//post/1445</link><guid isPermaLink="true">https://forum.aceinna.com//post/1445</guid><dc:creator><![CDATA[drib861204]]></dc:creator><pubDate>Thu, 09 Jun 2022 16:36:52 GMT</pubDate></item></channel></rss>