Coder Social home page Coder Social logo

rt-loc / zephyr-dwm1001 Goto Github PK

View Code? Open in Web Editor NEW
43.0 7.0 26.0 1.56 MB

Open source DWM1001 + Zephyr example implementations

Home Page: https://rtloc.com

License: GNU General Public License v3.0

C 84.88% C++ 15.12%
decawave rtls dwm1001 zephyr localization tracking position-tracking

zephyr-dwm1001's People

Contributors

fredericmes avatar fremes avatar wimmar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

zephyr-dwm1001's Issues

Init failed in SIMPLE TX V1.3

I am able to build the code for dwm1001c but it always shows init failed, I realised it uses
CONFIG_SPI_1=y
CONFIG_SPI_1_NRF_SPIM=y
In the .dts file, it shows SPI1 is connected to

&spi1 {
compatible = "nordic,nrf-spi";
status = "okay";
sck-pin = <4>;
mosi-pin = <6>;
miso-pin = <7>;
cs-gpios = <&gpio0 3 0>;
};

When I checked dwm1001c datasheet I found out the spi configuration is as such
sck-pin = <16>;
mosi-pin = <20>;
miso-pin = <18>;

I tried changing it but it stills shows up INIT FAILED
please help me figure out the issue.

It doesn't work with Zephyr 3.1.x

Hi,
this code does not work with Zephyr 3.1.x. In particular the 02_listener does not work, due to some changes on dts an some deprecated structures.
Do you have a working version for Zephyr 3.1.x?

Thanks in Advance

Error when building with latest Zephyr (2.3.99)

At some point, baseline Zephyr began supporting the DWM1001 board. I've got Zephyr 2.3.99 setup per the Getting Started Guide, and can build, flash, and run the "blinky" example on the DWM1001-dev board.

I tried to build the zephyr-dwm1001 example 01a with the updated Zephyr (version 2.3.99) but get this error:

~/zephyrproject/zephyr$ west build -p auto -b decawave_dwm1001_dev ../zephyr-dwm1001/examples/ex_01a_simple_tx
-- west build: making build dir /home/control/zephyrproject/zephyr/build pristine
-- west build: generating a build system
-- Application: /home/control/zephyrproject/zephyr-dwm1001/examples/ex_01a_simple_tx
-- Zephyr version: 2.3.99 (/home/control/zephyrproject/zephyr)
-- Found Python3: /usr/bin/python3.6 (found suitable exact version "3.6.9") found components: Interpreter
-- Found west: /home/control/.local/bin/west (found suitable version "0.7.3", minimum required is "0.7.1")
-- Board: decawave_dwm1001_dev
ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found toolchain: zephyr (/home/control/bin/zephyr-sdk-0.11.3)
-- Found dtc: /home/control/bin/zephyr-sdk-0.11.3/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/control/zephyrproject/zephyr/boards/arm/decawave_dwm1001_dev/decawave_dwm1001_dev.dts
-- Generated zephyr.dts: /home/control/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/control/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/control/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/control/zephyrproject/zephyr/boards/arm/decawave_dwm1001_dev/decawave_dwm1001_dev_defconfig'
Merged configuration '/home/control/zephyrproject/zephyr-dwm1001/examples/ex_01a_simple_tx/prj.conf'

error: SPI_1_NRF_SPIM (defined at drivers/spi/Kconfig.nrfx:71) is assigned in a configuration file,
but is not directly user-configurable (has no prompt). It gets its value indirectly from other
symbols. See http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_SPI_1_NRF_SPIM.html
and/or look up SPI_1_NRF_SPIM in the menuconfig/guiconfig interface. The Application Development
Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
might be helpful too.

CMake Error at /home/control/zephyrproject/zephyr/cmake/kconfig.cmake:230 (message):
command failed with return code: 1
Call Stack (most recent call first):
/home/control/zephyrproject/zephyr/cmake/app/boilerplate.cmake:529 (include)
CMakeLists.txt:2 (include)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/control/zephyrproject/zephyr/build -S/home/control/zephyrproject/zephyr-dwm1001/examples/ex_01a_simple_tx -GNinja -DBOARD=decawave_dwm1001_dev

Sorry, can I ask you a question? I am in the steps of "Build your first application"

微信截图_20240201171423

I alraeady followed all the steps before, but now the error occurs. I use Zephyr V2.7.0 and the latest Zephyr SDK. Can I use "west" to build the file?

"CMake Error at CMakeLists.txt:7 (include):
include could not find requested file:

/cmake/app/boilerplate.cmake

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:8 (project):
No CMAKE_C_COMPILER could be found."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.