Is it possible that running Matter_light and BLE peripheral_uart at the same time?

Maybe the title doesn't make that clear. 

First of all, I have customed my own nrf54l15 board, and I successfully built and run some ncs demos.

Now, I want to do something different. I want to run Matter_light and ble peripheral_uart on one board at the same time. But strictly speaking, it is not actually at the same time, I just want to switch between peripheral_uart and Matter_light using a toglgle switch.

Now, I have two ideas:

1. Make peripheral_uart and Matter_light run in two different slots, is this possible? How to do this?

2. Combine the codes of peripheral_uart  and codes of Matter_light into one project and build out a functionally combined firmware, using some conditional statements to make it switch to peripheral_uart codes or Matter_light codes. I am tring this way now, but some conflict of code appeared. For example, when I set CONFIG_BT_SMP=y, I would get this booting error.

So, what's your advice about this?

Related