This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52805 BLE and PWM

Heija Guys,

I have a question regarding the usage of the Zephyr BLE and the PWM. I would like to use the Zephyr BLE Stack and the PWM Driver together. The Problem now is, that I get an Error, when I try to compile the project (cmake doesnt report a configuration issue). The Error is following:

the Line "BUILD_ASSERT(...)" is executed, because, as far as I understand, the BLE Stack uses the same PPI channels as the pwm driver. the question now is, can I change the PPI channels for the BLE stack or the PWM Driver, so that I can use both?

If yes: where do I need to change these channels?

if no: is there another way to use both?

Setup:

- Visual Code Studio as IDE ( I dont think that matters, but you never know..)

- zephyr version 2.4.99

- ncs Toolchain 1.5.1

- configured for board nrf52dk_nrf52805

- the prj.conf file looks kinda like this

# Bluetooth
CONFIG_BT=y
CONFIG_BT_LL_SW_SPLIT=y
CONFIG_BT_CTLR_TX_PWR_PLUS_4=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_DEVICE_NAME="BLE Device1"
CONFIG_BT_EXT_ADV=y
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=251

# Debug console
CONFIG_DEBUG_OPTIMIZATIONS=y

# Serial
CONFIG_SERIAL=n

# Segger RTT
CONFIG_PRINTK=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_UART=n

# PWM
CONFIG_PWM=y
CONFIG_PWM_NRF5_SW=y
CONFIG_PWM_LOG_LEVEL_DBG=y

thanks in advance for any help or tip!

Parents Reply Children
Related