Arduino Nano 33 BLE sense rev2 serial Monitor in zephyr envirnoment

Hi, after uploading a Zephyr project (like the "Hello World" example), I couldn't see the device in the serial monitor. i add the below commend in overlay file also but still nothing is happening i read some document says the uart stack is not enabled in the arduino board after uploading the sample code but after enabling that also same issue i am getting. 

Board: Arduino Nano 33 BLE sense Rev2 (which has nRF52840 microcontroller in it)
Platform : nrF connect sdk in vs code and zephyr environment both i tried

overlay file:

&usbd {
status = "okay";
cdc_acm_uart {
compatible = "zephyr,cdc-acm-uart";
label = "CDC_ACM";
};
};

Need to see the serial monitor in zephyr environment using Arduino Nano33 BLE sense rev 2 board.
Parents
  • Hi,

    I have two questions.

    1. Is there anything that i should particularly change for my nano 33 board like usb pid like that? or just need to add the configuration and overlay file in the hello world built project for nano BLE33?

    2. I saw one more example which is console , that one also has the similar conf and overlay file, my doupt in that is inside the chosen @cdc_acm_uart0 is there rght,

    when i check the reference its entering into the node that we created &zephyr_udc0, but after built the application which is the sample console i check the dts of the application , this is for nano_33_ble_sense board




    nrf52840 dongle built dts file is this:


    so i changed in the overlay file into &uart0, so i am getting this error

    devicetree error: Label 'uart0' appears on /soc/uart@40002000 and on /soc/usbd@40027000/uart0
    CMake Error at /home/ebi777/ncs/v2.9.0/zephyr/cmake/modules/dts.cmake:295 (execute_process):
    execute_process failed command indexes:

    1: "Child return code: 1"

    Call Stack (most recent call first):
    /home/ebi777/ncs/v2.9.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
    /home/ebi777/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    /home/ebi777/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:4 (find_package)


    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
    CMake configure failed for Zephyr project: console

    Location: /home/ebi777/console
    Call Stack (most recent call first):
    cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
    cmake/modules/sysbuild_default.cmake:20 (include)
    /home/ebi777/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
    /home/ebi777/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    /home/ebi777/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 "/home/ebi777/console/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /home/ebi777/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -DWEST_PYTHON=/home/ebi777/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 -B/home/ebi777/console/build -GNinja -DBOARD=arduino_nano_33_ble/nrf52840/sense -DNCS_TOOLCHAIN_VERSION=NONE -S/home/ebi777/ncs/v2.9.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/ebi777/console

    is this the right process or need to approach in a different way?

    Regards,
    Ebi

Reply
  • Hi,

    I have two questions.

    1. Is there anything that i should particularly change for my nano 33 board like usb pid like that? or just need to add the configuration and overlay file in the hello world built project for nano BLE33?

    2. I saw one more example which is console , that one also has the similar conf and overlay file, my doupt in that is inside the chosen @cdc_acm_uart0 is there rght,

    when i check the reference its entering into the node that we created &zephyr_udc0, but after built the application which is the sample console i check the dts of the application , this is for nano_33_ble_sense board




    nrf52840 dongle built dts file is this:


    so i changed in the overlay file into &uart0, so i am getting this error

    devicetree error: Label 'uart0' appears on /soc/uart@40002000 and on /soc/usbd@40027000/uart0
    CMake Error at /home/ebi777/ncs/v2.9.0/zephyr/cmake/modules/dts.cmake:295 (execute_process):
    execute_process failed command indexes:

    1: "Child return code: 1"

    Call Stack (most recent call first):
    /home/ebi777/ncs/v2.9.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
    /home/ebi777/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    /home/ebi777/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:4 (find_package)


    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
    CMake configure failed for Zephyr project: console

    Location: /home/ebi777/console
    Call Stack (most recent call first):
    cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
    cmake/modules/sysbuild_default.cmake:20 (include)
    /home/ebi777/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
    /home/ebi777/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    /home/ebi777/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 "/home/ebi777/console/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /home/ebi777/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -DWEST_PYTHON=/home/ebi777/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 -B/home/ebi777/console/build -GNinja -DBOARD=arduino_nano_33_ble/nrf52840/sense -DNCS_TOOLCHAIN_VERSION=NONE -S/home/ebi777/ncs/v2.9.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/ebi777/console

    is this the right process or need to approach in a different way?

    Regards,
    Ebi

Children
No Data
Related