Commit Graph

6 Commits

Author SHA1 Message Date
Alberto Escolar Piedras 9dabc55c3e nrf5340bsim: Add support for NRF53_SYNC_RTC & ENABLE_CPUNET
Add support for these two options in the simulated board.

Before these options were otherwise defined in the real
BOARD/SOC kconfig files, which meant samples/tests which
used them would not be able to build due to a kconfig error.

With this change they can both be selected, and the right
functionality is built in.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-10-26 17:33:16 +02:00
Alberto Escolar Piedras 3f1eed17f8 nrf53_bsim: Get IPC shared memory buffer size from DT
Before we were defining the buffer in the runner context
which is simpler and less error prone, but it had a hardcoded
size decoupled from DT as it could not be based on DT
information.
Instead, let's allocate the buffer in the application core
image. This allows us to size it based on the device tree
configuration.
Note that this then requires the application core image
to be present during link time of the final executable
when the IPC subsystem is used.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-10-25 17:31:59 +03:00
Alberto Escolar Piedras f8e8083ab3 nrf53_bsim: Provide shared memory buffer for IPC rpmsg backend
Provide the actual shared memory buffer for the
IPC rpmsg backend in this platform.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-10-24 15:26:10 +02:00
Alberto Escolar Piedras d116a06a92 boards nrf_bsim: Add MCU number to traces
When we have more than 1 MCU, add the MCU number to the traces
so we can identify from which MCU they come from.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-09-29 16:21:43 +03:00
Alberto Escolar Piedras af00bd8cb1 nrf_bsim: Handle test options for N MCUs
Handle test options for N MCUs instead of just 1.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-09-29 16:21:43 +03:00
Alberto Escolar Piedras 4fd9ffb995 boards nrf52_bsim: Rename folder to nrf_bsim
As we will now we having more nrf5*_bsim boards defined in this
same folder, the old folder names became missleading.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-09-29 16:21:43 +03:00