Hello,
I am using Nordic nRF Connect SDK v3.1.1 and nRF5340DK board.
My project is based on the project: GitHub - nordic-auko/nRF5-ble-timesync-demo: nRF52 clock synchronization demo code.
Timesync project is intended to be built on cpunet, so also my project.
I want to collect data from ADC, send it via BLE and synchronizing (like in ble-timesync-demo), so I want to build this project on cpuapp or make multi core app where cpuapp will collect data from ADC and cpunet will sending/receiving data via BLE and synchronizing.
Is it possible and if so, how to do it?
When I tried to build this project on cpuapp i get many errors. Below are some of them:
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:65:41: error: unknown type name 'NRF_RADIO_Type'
65 | NRF_RADIO_TASK_TXEN = offsetof(NRF_RADIO_Type, TASKS_TXEN), /**< Enable RADIO in TX mode. */
| ^~~~~~~~~~~~~~
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:66:41: error: unknown type name 'NRF_RADIO_Type'
66 | NRF_RADIO_TASK_RXEN = offsetof(NRF_RADIO_Type, TASKS_RXEN), /**< Enable RADIO in RX mode. */
| ^~~~~~~~~~~~~~
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:67:41: error: unknown type name 'NRF_RADIO_Type'
67 | NRF_RADIO_TASK_START = offsetof(NRF_RADIO_Type, TASKS_START), /**< Start RADIO. */
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:328:47: error: 'RADIO_SHORTS_ADDRESS_RSSISTART_Msk' undeclared here (not in a function)
328 | NRF_RADIO_SHORT_ADDRESS_RSSISTART_MASK = RADIO_SHORTS_ADDRESS_RSSISTART_Msk, /**< Shortcut between ADDRESS event and RSSISTART task. */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:329:47: error: 'RADIO_SHORTS_END_START_Msk' undeclared here (not in a function); did you mean 'SPIM_SHORTS_END_START_Msk'?
329 | NRF_RADIO_SHORT_END_START_MASK = RADIO_SHORTS_END_START_Msk, /**< Shortcut between END event and START task. */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| SPIM_SHORTS_END_START_Msk
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:330:47: error: 'RADIO_SHORTS_ADDRESS_BCSTART_Msk' undeclared here (not in a function); did you mean 'NRF_RADIO_SHORT_ADDRESS_RSSISTART_MASK'?
330 | NRF_RADIO_SHORT_ADDRESS_BCSTART_MASK = RADIO_SHORTS_ADDRESS_BCSTART_Msk, /**< Shortcut between ADDRESS event and BCSTART task. */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| NRF_RADIO_SHORT_ADDRESS_RSSISTART_MASK
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:507:41: error: 'RADIO_MODE_MODE_Ble_1Mbit' undeclared here (not in a function)
507 | NRF_RADIO_MODE_BLE_1MBIT = RADIO_MODE_MODE_Ble_1Mbit, /**< 1 Mbit/s Bluetooth Low Energy. */
| ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:543:37: error: 'RADIO_CRCCNF_OFFSET_Include' undeclared here (not in a function)
543 | NRF_RADIO_CRC_ADDR_INCLUDE = RADIO_CRCCNF_OFFSET_Include, /**< CRC calculation includes address field. */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:548:37: error: 'RADIO_CRCCNF_OFFSET_Skip' undeclared here (not in a function)
548 | NRF_RADIO_CRC_ADDR_SKIP = RADIO_CRCCNF_OFFSET_Skip, /**< CRC calculation does not include address field. */
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:713:47: error: unknown type name 'NRF_RADIO_Type'; did you mean 'NRF_GPIO_Type'?
713 | NRF_STATIC_INLINE void nrf_radio_task_trigger(NRF_RADIO_Type * p_reg, nrf_radio_task_t task);
| ^~~~~~~~~~~~~~
| NRF_GPIO_Type
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:725:55: error: unknown type name 'NRF_RADIO_Type'; did you mean 'NRF_GPIO_Type'?
725 | NRF_STATIC_INLINE uint32_t nrf_radio_task_address_get(NRF_RADIO_Type const * p_reg,
| ^~~~~~~~~~~~~~
| NRF_GPIO_Type
C:/ncs/v3.1.1/modules/hal/nordic/nrfx/hal/nrf_radio.h:734:46: error: unknown type name 'NRF_RADIO_Type'; did you mean 'NRF_GPIO_Type'?
734 | NRF_STATIC_INLINE void nrf_radio_event_clear(NRF_RADIO_Type * p_reg, nrf_radio_event_t event);
| ^~~~~~~~~~~~~~
| NRF_GPIO_Type
Best Regards