<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Walter Literowich</b> <span dir="ltr"><<a href="mailto:wliterow@gmail.com" target="_blank">wliterow@gmail.com</a>></span><br>Date: Sat, Aug 5, 2017 at 8:15 PM<br>Subject: help please driver_lis3dh<br>To: <a href="mailto:users@riot-os.org" target="_blank">users@riot-os.org</a><br><br><br><div dir="ltr">
<div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530WordSection1"><p class="MsoNormal">I’m trying to get the tests/driver_lis3dh<span>  </span>running<span>  </span>on a Nordic nrf51<span>   </span>using 1; a BLE400<span>  </span><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><a href="http://www.ebay.com/itm/NRF51822-Eval-BLE400-Mother-Board-BLE4-0-Bluetooth-2-4G-Wireless-Module-Kit-/322579874665?var=&hash=item4b1b424369:m:m428eWQ4GIwIx9XKgxJ1D4w" target="_blank">http://www.ebay.com/itm/NRF518<wbr>22-Eval-BLE400-Mother-Board-BL<wbr>E4-0-Bluetooth-2-4G-Wireless-<wbr>Module-Kit-/322579874665?var=&<wbr>hash=item4b1b424369:m:m428eWQ4<wbr>GIwIx9XKgxJ1D4w</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">interfaced to a accelerometer <span> </span>cjmcu-33<span>  </span><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><a href="http://www.ebay.com/itm/CJMCU-33-LIS33DE-Three-Axis-Accelerated-Speed-Meter-Module-Stable-Digital-Output-/332204857695" target="_blank">http://www.ebay.com/itm/CJMCU-<wbr>33-LIS33DE-Three-Axis-Accelera<wbr>ted-Speed-Meter-Module-Stable-<wbr>Digital-Output-/332204857695</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">and <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">2; a CJMCU-8223 Nrf51822<span>  </span><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><a href="http://www.dx.com/p/cjmcu-8223-nrf51822-lis3dh-bluetooth-acceleration-module-purple-449109#.WYZbu4QrJQI" target="_blank">http://www.dx.com/p/cjmcu-8223<wbr>-nrf51822-lis3dh-bluetooth-acc<wbr>eleration-module-purple-449109<wbr>#.WYZbu4QrJQI</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">my problem is that I cannot get any output from term<span>  </span>- it seems to lock out without any output<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m trying to debug it with <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">gdb</span> , put having got the skills to really understand <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">its</span> output <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">==============================<wbr>==============================<wbr>===================<u></u><u></u></p><p class="MsoNormal">0x000015c0 in <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">spi_transfer_bytes</span> (bus=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">bus@entry</span>=0, <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cs</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cs@entry</span>=30, <u></u><u></u></p><p class="MsoNormal"><span>    </span><span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cont</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cont@entry</span>=true, <u></u><u></u></p><p class="MsoNormal"><span>    </span>out=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">out@entry</span>=0x200009f7 <main_stack+1343>, <u></u><u></u></p><p class="MsoNormal"><span>    </span><span lang="ES">in=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">in@entry</span>=0x0 <<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">interrupt_vector</span>>, <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">len</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">len@entry</span>=1)<u></u><u></u></span></p><p class="MsoNormal"><span lang="ES"><span>    </span></span>at /home/vagrant/RIOT/<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cpu</span>/nrf5x_c<wbr>ommon/<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">periph</span>/spi.c:107<u></u><u></u></p><p class="MsoNormal">#0<span>  </span>0x000015c0 in <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">spi_transfer_bytes</span> (bus=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">bus@entry</span>=0, <u></u><u></u></p><p class="MsoNormal"><span>    </span><span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cs</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cs@entry</span>=30, <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cont</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cont@entry</span>=true, <u></u><u></u></p><p class="MsoNormal"><span>    </span>out=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">out@entry</span>=0x200009f7 <main_stack+1343>, <u></u><u></u></p><p class="MsoNormal"><span>    </span><span lang="ES">in=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">in@entry</span>=0x0 <<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">interrupt_vector</span>>, <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">len</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">len@entry</span>=1)<u></u><u></u></span></p><p class="MsoNormal"><span lang="ES"><span>    </span></span>at /home/vagrant/RIOT/<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cpu</span>/nrf5x_c<wbr>ommon/<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">periph</span>/spi.c:107<u></u><u></u></p><p class="MsoNormal">#1<span>  </span>0x00001680 in <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">spi_transfer_regs</span> (bus=0, <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">cs</span>=30, <u></u><u></u></p><p class="MsoNormal"><span>    </span><span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE"><span lang="ES">reg</span></span><span lang="ES">=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">reg@entry</span>=207 'Ï', <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">out</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">out@entry</span>=0x0 <<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">interrupt_vector</span>>, <u></u><u></u></span></p><p class="MsoNormal"><span lang="ES"><span>    </span></span>in=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">in@entry</span>=0x20000a37 <main_stack+1407>, <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">len</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">len@entry</span>=1)<u></u><u></u></p><p class="MsoNormal"><span>    </span>at /home/vagrant/RIOT/drivers/<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">per<wbr>iph_common</span>/spi.c:68<u></u><u></u></p><p class="MsoNormal">#2<span>  </span>0x00001298 in lis3dh_read_regs (<u></u><u></u></p><p class="MsoNormal"><span>    </span>dev=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">dev@entry</span>=0x20000a60 <main_stack+1448>, <u></u><u></u></p><p class="MsoNormal"><span>    </span><span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">reg</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">reg@entry</span>=LIS3DH_REG_W<wbr>HO_AM_I, <span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">len</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">len@entry</span>=1 '\001', <u></u><u></u></p><p class="MsoNormal"><span>    </span><span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">buf</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">buf@entry</span>=0x20000a37 <main_stack+1407> "")<u></u><u></u></p><p class="MsoNormal"><span>    </span>at /home/vagrant/RIOT/drivers/lis<wbr>3dh/lis3dh.c:241<u></u><u></u></p><p class="MsoNormal">#3<span>  </span>0x00001444 in lis3dh_init (<u></u><u></u></p><p class="MsoNormal"><span>    </span>dev=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">dev@entry</span>=0x20000a60 <main_stack+1448>, <u></u><u></u></p><p class="MsoNormal"><span>    </span><span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">params</span>=<span class="m_-4613892686969810152m_-7267829152494453058m_3687720271240004530SpellE">params@entry</span>=0x2740 <lis3dh_params>)<u></u><u></u></p><p class="MsoNormal"><span>    </span>at /home/vagrant/RIOT/drivers/lis<wbr>3dh/lis3dh.c:55<u></u><u></u></p><p class="MsoNormal">#4<span>  </span>0x00000fa8 in main ()<u></u><u></u></p><p class="MsoNormal"><span>    </span>at /home/vagrant/RIOT/tests/drive<wbr>r_lis3dh/main.c:50<u></u><u></u></p><p class="MsoNormal">Continuing.<u></u><u></u></p><div style="border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in"><p class="MsoNormal" style="border:none;padding:0in"><u></u> <u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I been at this for several days without any success of understanding of the problems or issues <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The header files have been set up for both the boards and peripherals <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks for your help and responses <u></u><u></u></p></div></div></div>
</div><br></div>