This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

more than one section matches selector - cannot all be FIRST/LAST compilation error

Dear all, I wanted go a step forward on BLE services and characteristics trying include two characteristics on a BLE

service, I think one of best examples is Github ble_app_lbs_master. The example was downloaded for SDK 8.0.0, it seems there are not updated

exampe for SDK 9.0.0, anyway CMSIS and CMSIS Device components were missing. I Just added these components but after compilation one error is

remaining "more than one section matches selector - cannot all be FIRST/LAST". It seems the problem is on pstorage.c and pstorage_platform.h, parameter PSTORAGE_MAX_APPLICATIONS that has value 2 anybody can help? Thanks and regards. Luis Tenedorio Globaltronic SA

  • Hi Luis,

    This is an error I've seen when you have two arm_startup_nrf51.s files in your project. Could you verify if you have two of these (one in "Device" from packs, and one in "Source code" for instance) and if yes; remove one of them?

    Cheers, Håkon

  • Dear Hakon, first I would like thank you your support for my e-mail. I will repeat here:

    Hi Luis, This is an error I've seen when you have two arm_startup_nrf51.s files in your project. Could you verify if you have two of these (one in "Device" from packs, and one in "Source code" for instance) and if yes; remove one of them?

    Cheers, Håkon

    Yes Hakon, you have reason, there was two arm_startup_nrf51.s files, I just removed one of them (startup flolder, not CMSIS Device folder) and problem is cleared, now I have no errors but after flash programming nRFgo Studio says that application must be programmed without softdevice alone previous programming, OK, programm was flashed without problems but after didn't appears on Master Control Panel, can you help?

    Regards. Luis

  • Dear Hakon, first I would like thank you your support for my e-mail. I will repeat here:

    Hi Luis, This is an error I've seen when you have two arm_startup_nrf51.s files in your project. Could you verify if you have two of these (one in "Device" from packs, and one in "Source code" for instance) and if yes; remove one of them?

    Cheers, Håkon

    Yes Hakon, you have reason, there was two arm_startup_nrf51.s files, I just removed one of them (startup flolder, not CMSIS Device folder) and problem is cleared, now I have no errors but after flash programming nRFgo Studio says that application must be programmed without softdevice alone previous programming, OK, programm was flashed without problems but after didn't appears on Master Control Panel, can you help?

    Regards. Luis

  • You next question is completely different question that the one you asked. Håkon's answer helped you, so please accept his answer and open a new question for the problem you are facing now.

  • OK Aryan, thanks, I'll open a new question soon. Regards

    Luis Tenedorio

Related