[riot-users] help please driver_lis3dh

Walter Literowich wliterow at gmail.com
Sun Aug 6 02:15:09 CEST 2017


I’m trying to get the tests/driver_lis3dh  running  on a Nordic nrf51   using
1; a BLE400



http://www.ebay.com/itm/NRF51822-Eval-BLE400-Mother-
Board-BLE4-0-Bluetooth-2-4G-Wireless-Module-Kit-/322579874665?var=&hash=
item4b1b424369:m:m428eWQ4GIwIx9XKgxJ1D4w



interfaced to a accelerometer  cjmcu-33



http://www.ebay.com/itm/CJMCU-33-LIS33DE-Three-Axis-Accelerated-Speed-Meter-
Module-Stable-Digital-Output-/332204857695





and



2; a CJMCU-8223 Nrf51822



http://www.dx.com/p/cjmcu-8223-nrf51822-lis3dh-
bluetooth-acceleration-module-purple-449109#.WYZbu4QrJQI





my problem is that I cannot get any output from term  - it seems to lock
out without any output



I’m trying to debug it with gdb , put having got the skills to really
understand its output



============================================================
===================

0x000015c0 in spi_transfer_bytes (bus=bus at entry=0, cs=cs at entry=30,

    cont=cont at entry=true,

    out=out at entry=0x200009f7 <main_stack+1343>,

    in=in at entry=0x0 <interrupt_vector>, len=len at entry=1)

    at /home/vagrant/RIOT/cpu/nrf5x_common/periph/spi.c:107

#0  0x000015c0 in spi_transfer_bytes (bus=bus at entry=0,

    cs=cs at entry=30, cont=cont at entry=true,

    out=out at entry=0x200009f7 <main_stack+1343>,

    in=in at entry=0x0 <interrupt_vector>, len=len at entry=1)

    at /home/vagrant/RIOT/cpu/nrf5x_common/periph/spi.c:107

#1  0x00001680 in spi_transfer_regs (bus=0, cs=30,

    reg=reg at entry=207 'Ï', out=out at entry=0x0 <interrupt_vector>,

    in=in at entry=0x20000a37 <main_stack+1407>, len=len at entry=1)

    at /home/vagrant/RIOT/drivers/periph_common/spi.c:68

#2  0x00001298 in lis3dh_read_regs (

    dev=dev at entry=0x20000a60 <main_stack+1448>,

    reg=reg at entry=LIS3DH_REG_WHO_AM_I, len=len at entry=1 '\001',

    buf=buf at entry=0x20000a37 <main_stack+1407> "")

    at /home/vagrant/RIOT/drivers/lis3dh/lis3dh.c:241

#3  0x00001444 in lis3dh_init (

    dev=dev at entry=0x20000a60 <main_stack+1448>,

    params=params at entry=0x2740 <lis3dh_params>)

    at /home/vagrant/RIOT/drivers/lis3dh/lis3dh.c:55

#4  0x00000fa8 in main ()

    at /home/vagrant/RIOT/tests/driver_lis3dh/main.c:50

Continuing.







I been at this for several days without any success of understanding of the
problems or issues





The header files have been set up for both the boards and peripherals





Thanks for your help and responses
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/users/attachments/20170805/391325da/attachment.html>


More information about the users mailing list