{"id":29014082,"url":"https://github.com/armmbed/nrf51-sdk","last_synced_at":"2025-08-04T06:16:45.644Z","repository":{"id":72728310,"uuid":"45975419","full_name":"ARMmbed/nrf51-sdk","owner":"ARMmbed","description":"Module to contain files provided by the nordic nRF51 SDK","archived":false,"fork":false,"pushed_at":"2016-04-11T12:58:31.000Z","size":1053,"stargazers_count":14,"open_issues_count":4,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-25T20:12:46.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ARMmbed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-11-11T10:36:01.000Z","updated_at":"2025-03-08T23:40:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"3269fdc2-2de8-433c-a15f-cbceeb1979d4","html_url":"https://github.com/ARMmbed/nrf51-sdk","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/ARMmbed/nrf51-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARMmbed%2Fnrf51-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARMmbed%2Fnrf51-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARMmbed%2Fnrf51-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARMmbed%2Fnrf51-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ARMmbed","download_url":"https://codeload.github.com/ARMmbed/nrf51-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARMmbed%2Fnrf51-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268657587,"owners_count":24285532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-25T20:12:44.534Z","updated_at":"2025-08-04T06:16:45.636Z","avatar_url":"https://github.com/ARMmbed.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nrf51-sdk\nModule to contain files provided by the nordic nRF51 SDK. The latest version of this module uses files from Nordic SDK 10.0.0. The files are extracted from [here](https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v10.x.x/nRF51_SDK_10.0.0_dc26b5e.zip).\n\n## Changes made to Nordic files\nThe files are kept the same as much as possible to the Nordic SDK. Modifications are made in order to integrate with mbed.\n    - ble/common/ble_conn_state.c: Preprocessor tests regarding S110, S120 or S130 macro should be replace by TARGET_MCU_NRF51_XXK_SXXX tests\n    - `ble.h` in `source/nordic_sdk/components/softdevice/s130/headers/ble.h` has to be renamed `nrf_ble.h`. All files which include this file should be updated accordingly.\n\n\n## Porting new versions of Nordic SDK\nA list of files currently requierd by mbed is maintained in [script/required_files.txt](https://github.com/ARMmbed/nrf51-sdk/blob/master/script/required_files.txt). [A python script](https://github.com/ARMmbed/nrf51-sdk/blob/master/script/pick_nrf51_files.py) is written to help porting from nordic sdk releases. **required_files.txt** is parsed to find a list of filenames. The script searches for these filenames in the sdk folder, and copy then into the yotta module mirroring the folder structure in the sdk. **extraIncludes** is automatically added to module.json to allow direct inclusion of noridc headers with just the filename.\n\n### Script usage\n```\npython pick_nrf51_files.py [options] \u003cfull-noridc-sdk-path\u003e \u003cnrf51-sdk-yotta-module-path\u003e\noptions: --purge   : to delete all existing files and start again\n         --dry-run : to list the files to be copied but not actually copy them\n```\n\nThere are files in the sdk with the same filename but in different folder. This is dealt with by excluding certain directories. The excluded directories are listed in [pick_nrf51_files.py](https://github.com/ARMmbed/nrf51-sdk/blob/master/script/pick_nrf51_files.py).\n\nAfter running the script, the changes in [the previous section](#changes-made-to-nordic-files) will have to be applied manually again.\n\nFolder structure or even file name can change between releases of the nordic sdk, hence a degree of manual adjustment is needed when porting.\n\n## Using Noridc Headers\nThe nordic sdk is written in C and yotta modules support C++. If you are trying to include Nordic files in a cpp program, you need to use the `extern \"C\"` keyword around the includes.\n```c\nextern \"C\" {\n#include \"softdevice_handler.h\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmmbed%2Fnrf51-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmmbed%2Fnrf51-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmmbed%2Fnrf51-sdk/lists"}