Hello,
I would like to experiment s120 on the evaluation board. There are some examples but in nrf51/nrf51822/Board/nrf6310/s120/experimental. Can I use it ? Or is there something better elsewhere ? Thanks, Olivier
Hello,
I would like to experiment s120 on the evaluation board. There are some examples but in nrf51/nrf51822/Board/nrf6310/s120/experimental. Can I use it ? Or is there something better elsewhere ? Thanks, Olivier
Ok !
I have done the changes. Compile is ok but not the link ... undefined reference to `sd_evt_get' find ../../../nrf51 -name "*.[ch]" | xargs grep sd_evt_get ../../../nrf51/nrf51422/Source/ble/rpc/ble_rpc_sd_stub.c:uint32_t sd_evt_get(uint32_t * p_evt_id) ../../../nrf51/nrf51422/Source/sd_common/softdevice_handler.c: err_code = sd_evt_get(&evt_id); ../../../nrf51/nrf51422/Include/s310/nrf_soc.h: * The event can be retrieved with sd_evt_get(); ../../../nrf51/nrf51422/Include/s310/nrf_soc.h:SVCALL(SD_EVT_GET, uint32_t, sd_evt_get(uint32_t * p_evt_id)); ../../../nrf51/nrf51422/Include/s210/nrf_soc.h: * The event can be retrieved with sd_evt_get(); ../../../nrf51/nrf51422/Include/s210/nrf_soc.h:SVCALL(SD_EVT_GET, uint32_t, sd_evt_get(uint32_t * p_evt_id)); ../../../nrf51/nrf51822/Board/nrf6310/s120/experimental/common/softdevice_handler.c: err_code = sd_evt_get(&evt_id); ../../../nrf51/nrf51822/Source/ble/rpc/ble_rpc_sd_stub.c:uint32_t sd_evt_get(uint32_t * p_evt_id) ../../../nrf51/nrf51822/Source/sd_common/softdevice_handler.c: err_code = sd_evt_get(&evt_id); ../../../nrf51/nrf51822/Include/s110/nrf_soc.h: * The event can be retrieved with sd_evt_get(); ../../../nrf51/nrf51822/Include/s110/nrf_soc.h:SVCALL(SD_EVT_GET, uint32_t, sd_evt_get(uint32_t * p_evt_id)); I have no nrf_soc.h for s120 ... What should I do ?
Thanks,
Olivier
Ok !
I have done the changes. Compile is ok but not the link ... undefined reference to `sd_evt_get' find ../../../nrf51 -name "*.[ch]" | xargs grep sd_evt_get ../../../nrf51/nrf51422/Source/ble/rpc/ble_rpc_sd_stub.c:uint32_t sd_evt_get(uint32_t * p_evt_id) ../../../nrf51/nrf51422/Source/sd_common/softdevice_handler.c: err_code = sd_evt_get(&evt_id); ../../../nrf51/nrf51422/Include/s310/nrf_soc.h: * The event can be retrieved with sd_evt_get(); ../../../nrf51/nrf51422/Include/s310/nrf_soc.h:SVCALL(SD_EVT_GET, uint32_t, sd_evt_get(uint32_t * p_evt_id)); ../../../nrf51/nrf51422/Include/s210/nrf_soc.h: * The event can be retrieved with sd_evt_get(); ../../../nrf51/nrf51422/Include/s210/nrf_soc.h:SVCALL(SD_EVT_GET, uint32_t, sd_evt_get(uint32_t * p_evt_id)); ../../../nrf51/nrf51822/Board/nrf6310/s120/experimental/common/softdevice_handler.c: err_code = sd_evt_get(&evt_id); ../../../nrf51/nrf51822/Source/ble/rpc/ble_rpc_sd_stub.c:uint32_t sd_evt_get(uint32_t * p_evt_id) ../../../nrf51/nrf51822/Source/sd_common/softdevice_handler.c: err_code = sd_evt_get(&evt_id); ../../../nrf51/nrf51822/Include/s110/nrf_soc.h: * The event can be retrieved with sd_evt_get(); ../../../nrf51/nrf51822/Include/s110/nrf_soc.h:SVCALL(SD_EVT_GET, uint32_t, sd_evt_get(uint32_t * p_evt_id)); I have no nrf_soc.h for s120 ... What should I do ?
Thanks,
Olivier
Which exact project are you working with? There should not be any reference to this function in the Central code as far as I know. The function in question was renamed from sd_event_get() to sd_evt_get() only in S110 version 6.0.0. This change will most likely also be done for S120 at some point in time, but haven't been done for the 0.8.0 release that is currently out. I'm therefore a little unsure how you managed to get this.
If you have further problems, could you please edit your reply and upload the complete project your working with?