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

Port nrf52-ble-app-uart-long-range(git playground) from SES to armgcc

Hello

There seems to be no makefile in this example to use with armgcc compiler(why?) so Im trying to port it using the makefile from the ble_app_att_mtu_throughput example, but coming up with alot of errors

Most errors occur in the ble_advertising.c in methods like set_adv_mode_directed() and I wonder how you get around these in segger? Some are pure namechange i.e. "interval"->"duration" but others don't exist i.e. "type"->? (type is no longer a variable within the struct "ble_gap_adv_params_t" in ble_gap.h for S140 v6)

the struct "ble_gap_adv_params_t" in ble_gap.c in softdevice s140 has changed and do not contain "type" but other variables. Is there a patch available or a migration guide that tells me what changes need to be made to use the S140 v6-alpha softdevice with the SDK14.2?

BR Mike

Parents
  • "There seems to be no makefile in this example to use with armgcc compiler(why?)"

    Nordic Playground are projects which we feel may be of interest to developers, but they are not production quality releases with the throughout testing, device support, and compiler support you find in our "official" releases. For good compiler support and higher quality testing, please check out the nRF5 SDK.

    "Most errors occur in the ble_advertising.c..."

    Sounds like you are running an older SDK on a newer SoftDevice with a new API. You will have to port the firmware to use a newer SoftDevice API, or simply pick up an example from the new nRF5 SDK 15.0.0. The latter is by far the simplest.

    "Is there a patch available or a migration guide that tells me what changes need to be made to use the S140 v6-alpha softdevice with the SDK14.2?"

    The SoftDevice release, available here, comes with a comprehensive migration guide. The "Required changes" section is the important part you will have to check out.

    Best regards,
    Rune Holmgren

Reply
  • "There seems to be no makefile in this example to use with armgcc compiler(why?)"

    Nordic Playground are projects which we feel may be of interest to developers, but they are not production quality releases with the throughout testing, device support, and compiler support you find in our "official" releases. For good compiler support and higher quality testing, please check out the nRF5 SDK.

    "Most errors occur in the ble_advertising.c..."

    Sounds like you are running an older SDK on a newer SoftDevice with a new API. You will have to port the firmware to use a newer SoftDevice API, or simply pick up an example from the new nRF5 SDK 15.0.0. The latter is by far the simplest.

    "Is there a patch available or a migration guide that tells me what changes need to be made to use the S140 v6-alpha softdevice with the SDK14.2?"

    The SoftDevice release, available here, comes with a comprehensive migration guide. The "Required changes" section is the important part you will have to check out.

    Best regards,
    Rune Holmgren

Children
No Data
Related