rt-loc / zephyr-dwm1001 Goto Github PK
View Code? Open in Web Editor NEWOpen source DWM1001 + Zephyr example implementations
Home Page: https://rtloc.com
License: GNU General Public License v3.0
Open source DWM1001 + Zephyr example implementations
Home Page: https://rtloc.com
License: GNU General Public License v3.0
if there any examples to work with the app named DRTLS_Manager_R2.apk
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.
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
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
I'm wondering if this would possibly work with the nrf52840DK with just a DWM module attached to it
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."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.