-
Notifications
You must be signed in to change notification settings - Fork 31
Restructure sample documentation #511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| .. _getting_started_with_the_samples: | ||
|
|
||
| Getting Started with the samples | ||
| ################################ | ||
|
|
||
| This section is a general description of how you can explore and try out the samples provided with the |BMlong|. | ||
| It describes how you can create a copy of a sample, configure it, build it, program it, and run it on a supported Nordic development kit. | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
| :caption: Subpages | ||
| :glob: | ||
|
|
||
| /sample/intro/create_sample | ||
| /sample/intro/configure_and_build_sample | ||
| /sample/intro/program_sample |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| .. _sample_intro_program: | ||
|
|
||
| Programming a sample | ||
| #################### | ||
|
|
||
| This section describes how you program the DK with all the different firmware modules and the extra data that is needed. | ||
| This description assumes you are using |nRFVSC|. | ||
| For details, see `UI overview`_. | ||
|
|
||
| * `Applications View`_ - Select what to program. | ||
|
|
||
| 1. Select which application should be the active one. | ||
| #. In case the project has multiple build contexts, select the one that should be used. | ||
| #. Within the build context, you can select between programming the whole project (all images) by selecting the build folder, or just one of the images within the build context by selecting one of the domains within the build folder. | ||
|
|
||
| * `Actions View`_ - Specify how to program. | ||
|
|
||
b-gent marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| * :guilabel:`Flash` - This will flash the active context selected in the Application View and only replace the memory section specified by the active context. | ||
|
|
||
| * :guilabel:`Erase and Flash to Board` - This will first do a chip Erase All erasing all NVM including UICR and KMU content, before it flashes the active context. | ||
|
|
||
| * Select which target (DK) to program. | ||
|
|
||
| In case there is only one DK connected, only that one will be flashed. | ||
| In case you have more than one DK connected, you will be promted and can select one or multiple DKs to be flashed. | ||
|
|
||
| Special cases | ||
| ************* | ||
|
|
||
| MCUboot | ||
| ======= | ||
|
|
||
| When running samples with MCUboot and firmware loader included, the project will have signing key(s) included. | ||
b-gent marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| It is required to provision the key(s) when programming the board for the first time. | ||
| This can be done by programming with the :guilabel:`Erase and Flash to Board` option. | ||
| See :ref:`ug_bootloader_kmu_autokeys` for more details. | ||
|
|
||
| Immutable Bootloader (IRoT) configuration | ||
| ========================================= | ||
|
|
||
| When running a sample with MCUboot set as Immutable Root of Trust (IRoT), you must take special care when programming. | ||
| See :ref:`ug_memorypartiton_irot` for more details. | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -56,23 +56,14 @@ LED 0: | |||
| LED 1: | ||||
| Lit when a device is connected. | ||||
|
|
||||
| Programming the S115 SoftDevice | ||||
| ******************************* | ||||
|
|
||||
| .. include:: /includes/softdevice_flash.txt | ||||
|
|
||||
| .. _ble_bms_sample_testing: | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cleanup.
Suggested change
I see this tag to sample testing is removed from lots of the other samples. Remove it here and in
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is very low priority and doesn't affect output, I will postpone this to the release PR |
||||
|
|
||||
| Building and running | ||||
| ******************** | ||||
|
|
||||
| This sample can be found under :file:`samples/bluetooth/ble_bms/` in the |BMshort| folder structure. | ||||
|
|
||||
| .. include:: /includes/create_sample.txt | ||||
|
|
||||
| .. include:: /includes/configure_and_build_sample.txt | ||||
|
|
||||
| .. include:: /includes/program_sample.txt | ||||
| For details on how to create, configure, and program a sample, see :ref:`getting_started_with_the_samples`. | ||||
|
|
||||
| Testing | ||||
| ======= | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For release PR, ncs_release must be updated.