Closed beikeland closed 4 years ago
\
git clone https://github.com/theBASTI0N/zephyr-ruuvi.git ~/zephyr-ruuvi
ln -s ~/zephyr-ruuvi/boards/arm/nrf52_ruuvi ~/zephyrproject/zephyr/boards/arm
\
made some progress by copying from ~/ruuvi_zephyr/ruuvitag to ~/ruuvi_zephyr/zephyr which is missing in instructions. will keep poking at the UART failure.
user@hostname:~/ruuvi_zephyr$ ls
bootloader build modules ruuvitag tools zephyr
user@hostname:~/ruuvi_zephyr$ ls ruuvitag/boards/arm/
nrf52_ruuvi
user@hostname:~/ruuvi_zephyr$ cp -r ruuvitag/boards/arm/nrf52_ruuvi zephyr/boards/arm
cd zephyr
user@hostname:~/ruuvi_zephyr/zephyr$ west build -p auto -b nrf52_ruuvi samples/basic/blinky/
-- west build: making build dir /home/user/ruuvi_zephyr/zephyr/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/user/ruuvi_zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/user/ruuvi_zephyr/zephyr/samples/basic/blinky
-- Zephyr version: 2.2.99 (/home/user/ruuvi_zephyr/zephyr)
CMake Warning (dev) at /home/user/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args`
(PythonInterp) does not match the name of the calling package (Zephyr).
This can lead to problems in calling code that expects `find_package`
result variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
/home/user/ruuvi_zephyr/zephyr/cmake/backports/FindPythonInterp.cmake:174 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/home/user/ruuvi_zephyr/zephyr/cmake/python.cmake:22 (include)
/home/user/ruuvi_zephyr/zephyr/cmake/app/boilerplate.cmake:115 (include)
/home/user/ruuvi_zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/home/user/ruuvi_zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.8", minimum required is "3.6")
-- Board: nrf52_ruuvi
-- Found west: /home/user/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")
-- Found toolchain: zephyr (/home/user/zephyr-sdk-0.11.2)
-- Found BOARD.dts: /home/user/ruuvi_zephyr/zephyr/boards/arm/nrf52_ruuvi/nrf52_ruuvi.dts
nrf52_ruuvi.dts.pre.tmp:122.22-130.5: Warning (unique_unit_address_if_enabled): /soc/i2c@40003000: duplicate unit-address (also used in node /soc/spi@40003000)
also defined at nrf52_ruuvi.dts.pre.tmp:363.7-369.3
-- Generated zephyr.dts: /home/user/ruuvi_zephyr/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/user/ruuvi_zephyr/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/user/ruuvi_zephyr/zephyr/Kconfig
Loaded configuration '/home/user/ruuvi_zephyr/zephyr/boards/arm/nrf52_ruuvi/nrf52_ruuvi_defconfig'
Merged configuration '/home/user/ruuvi_zephyr/zephyr/samples/basic/blinky/prj.conf'
error: UART_0_NRF_UART (defined at drivers/serial/Kconfig.nrfx:25) 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_UART_0_NRF_UART.html
and/or look up UART_0_NRF_UART 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/user/ruuvi_zephyr/zephyr/cmake/kconfig.cmake:217 (message):
command failed with return code: 1
Call Stack (most recent call first):
/home/user/ruuvi_zephyr/zephyr/cmake/app/boilerplate.cmake:504 (include)
/home/user/ruuvi_zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/home/user/ruuvi_zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/user/.local/bin/cmake -B/home/user/ruuvi_zephyr/zephyr/build -S/home/user/ruuvi_zephyr/zephyr/samples/basic/blinky -GNinja -DBOARD=nrf52_ruuvi
user@hostname:~/ruuvi_zephyr/zephyr$
Hey,
Thanks for noticing the mistake in the instructions.
I have updated them and your should be able to build it now.
just run west build && west flash
when in the ruuvi folder
Seems there is another issue, possibly relating to this being made for 2.2.0 and the current is 2.2.9
diff --git a/boards/arm/nrf52_ruuvi/nrf52_ruuvi_defconfig b/boards/arm/nrf52_ruuvi/nrf52_ruuvi_defconfig
index 2424555..16836ae 100644
--- a/boards/arm/nrf52_ruuvi/nrf52_ruuvi_defconfig
+++ b/boards/arm/nrf52_ruuvi/nrf52_ruuvi_defconfig
@@ -14,7 +14,7 @@ CONFIG_GPIO=y
# enable uart driver
CONFIG_SERIAL=y
-CONFIG_UART_0_NRF_UART=y
+#CONFIG_UART_0_NRF_UART=y
# enable console
CONFIG_CONSOLE=y
enables me to build west build -p auto -b nrf52_ruuvi samples/bluetooth/hci_uart
, now I just need to flash it somehow.
thanks for doing the ground work!
Hey Try the last commit.
If you copy the nrf52_ruuvi to zephyr/boards/arm you will be able to build the hci_uart example with build -b nrf52_ruuvi. My included example needs some work to be able to build again against this new version of Zephyr.
Thank you so much!
I've tried following this, both the existing install and fresh install and end up with
No board named 'nrf52_ruuvi' found
in both cases, so it seems I'm missing something.(also
pip3 install -r /zephyr/scripts/requirements.txt
I guess should bepip3 install -r zephyr/scripts/requirements.txt
without the leading/
?)