Re: Dual core configuration of peripheral from other core/DTS file (e.g. nRF5340)
lairdjm
The main core has to set which pins can be accessed/controlled by the secondary core, for example with the nRF5340 there is code which is included and runs on the main core to enable the UART pins to be used by the secondary core - DTS of the main board has no knowledge of it so in the reset .c file it is not getting the details from DTS, it's just using defines: https://github.com/zephyrproject-rtos/zephyr/blob/master/boards/arm/nrf5340dk_nrf5340/nrf5340_cpunet_reset.cHi,Maybe a simple example would help. The main core does not get involved with what the secondary core does with them, it's only to setup which are routed to the primary core or the secondary core, all peripheral configuration for the secondary core is performed by that core. |
|