CMake Error at C:/ncs/v2.9.0/zephyr/cmake/modules/boards.cmake:196 (message): Error finding board: nrf52833dk

Hi guys, I am using the SDK v2.9.0 and the toolchains b620d30767. To add the build configuration for the sample peripheral_uart, the console print some error log.The log as below:

uilding peripheral_uart

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
CMake Error at C:/ncs/v2.9.0/zephyr/cmake/modules/boards.cmake:196 (message):
Error finding board: nrf52833dk

Error message: Traceback (most recent call last):

File "C:\ncs\v2.9.0\zephyr\scripts\list_boards.py", line 469, in <module>
dump_v2_boards(args)
File "C:\ncs\v2.9.0\zephyr\scripts\list_boards.py", line 416, in dump_v2_boards
boards = find_v2_boards(args)
^^^^^^^^^^^^^^^^^^^^
File "C:\ncs\v2.9.0\zephyr\scripts\list_boards.py", line 341, in find_v2_boards
b, e = load_v2_boards(args.board, board_yml, systems)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ncs\v2.9.0\zephyr\scripts\list_boards.py", line 230, in load_v2_boards
b = yaml.load(f.read(), Loader=SafeLoader)
^^^^^^^^

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa2 in position 46:
illegal multibyte sequence

Call Stack (most recent call first):
cmake/modules/sysbuild_default.cmake:15 (include)
C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/ncs/v2.9.0/nrf/samples/bluetooth/peripheral_uart/build_6/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-Bc:\ncs\v2.9.0\nrf\samples\bluetooth\peripheral_uart\build_6' -GNinja -DBOARD=nrf52833dk/nrf52820 -DNCS_TOOLCHAIN_VERSION=NONE '-SC:\ncs\v2.9.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\ncs\v2.9.0\nrf\samples\bluetooth\peripheral_uart'

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Could you help me to fix it? thank you!the window

Parents
  • Hi

    I see that you both are trying to build the peripheral_uart sample for the nRF52820 SoC. It only has 32kB of RAM, which explains Jakob is seeing at least. From the build log of the nRF52840 we can see that the application takes up 14,75% of the nRF52840's 256kB of RAM which equals to ~37kB. This is more than what the nRF52820 has available and is why the build fails with a RAM overflow. You can try doing some memory optimizations to try and lower this. Disable debugging and logging would help a lot for example.

    As for the original post, I think it could be related, but that it is propagating in these strange error message that seems to be due to the build system not finding the board file for the nRF52833 DK. Can you share some more info on how you downloaded and installed the nRF Connect SDK on your end?

    Best regards,

    Simon

Reply
  • Hi

    I see that you both are trying to build the peripheral_uart sample for the nRF52820 SoC. It only has 32kB of RAM, which explains Jakob is seeing at least. From the build log of the nRF52840 we can see that the application takes up 14,75% of the nRF52840's 256kB of RAM which equals to ~37kB. This is more than what the nRF52820 has available and is why the build fails with a RAM overflow. You can try doing some memory optimizations to try and lower this. Disable debugging and logging would help a lot for example.

    As for the original post, I think it could be related, but that it is propagating in these strange error message that seems to be due to the build system not finding the board file for the nRF52833 DK. Can you share some more info on how you downloaded and installed the nRF Connect SDK on your end?

    Best regards,

    Simon

Children
Related