This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

s120 example for eval board

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

  • You can use them, as there is no difference in the chip itself, but you may have to redefine PIN and LED usage, since the Evaluation kit have only 2 LEDs and buttons, while the Development Kit + Starter Kit have 8 LEDs and 8 buttons.

    Changing the BOARD_-define in the target options should be a good start.

    Edit 1: I just tested this, and attached is a working ble_app_hrs_c for PCA10001. It seems there is a bug in main, in that it includes nrf6310.h directly instead of boards.h, but apart from that, no modifications were needed.

    Edit 2: Added a Makefile that works with the pure-gcc toolchain. Beware that the nRF6350 files apparently use upper-case names. I'd recommend lower-casing them manually on platforms where this matters. See in Include/ext_sensors and Source/ext_sensors/nRF6350/.

    ble_app_hrs_c_pca10001.zip

    Makefile.txt

  • 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?

  • I am trying to build nrf51/nrf51822/Board/nrf6310/s120/experimental/ble_app_hrs_c for pca10001.

    Here are the project. It also contains Makefile.template (add s120), which shoud be put in nrf51-pure-gcc-setup

    meb_fix.zip

  • I just tested this, and didn't really have any problems. I'm hence still not sure I understand how you got this error, and you don't provide any of the details I asked for, so I can't really say much more. Anyway, I added the modified project as an attachment to my first reply, so you can have a look at that if you still have problems.

Related