NRF_802154_USE_RAW_API is always being set to 1

We want to use the non raw functions of 802154 such as "nrf_802154_transmit" however they're compiled out by the definition of NRF_802154_USE_RAW_API being set to 1.

How do we ensure this is set to 0?

Using extra CMake arguments didn't work:  Defining preprocessor options using Visual Studio Code 

I've tried variations of the below in the top level CMakeLists.txt file:

add_definitions(-DNRF_802154_USE_RAW_API=0)
add_compile_options(-DNRF_802154_USE_RAW_API=0)
add_compile_definitions(-DNRF_802154_USE_RAW_API=0)
target_compile_options(-DNRF_802154_USE_RAW_API=0)
and also adding CONFIG_IEEE802154_RAW_MODE=n in the overlay file appears to do nothing.
We're trying to get the server and client echo samples to compile having added this:
Parents Reply Children
  • Hello Richard,

    Sorry again for the late reply. 

    Can you please try the attached project in either v2.1.2 or v2.2.0? Use the build command "west build -b nrf5340dk_nrf5340_cpuapp -d build -- -DCONFIG_NRF_802154_SER_HOST=y D802154_rpmsgCONFIG_NRF_802154_RADIO_DRIVER=y"

    (The last config, D802154_rpmsgCONFIG_NRF_802154_RADIO_DRIVER=y, can alternatively be added by creating a prj.conf file inside echo_client_rx\child_image\802154_rpmsg\prj.conf, and add the command CONFIG_NRF_802154_RADIO_DRIVER=y in there.)

    Best regards,

    Edvin

Related