![]() ![]() Useful if you want to use the debugger or RTT viewer (see the following section)Īnd prevent disconnection of the RTT link. initiate a soft-reset by using the following command: nrfjprog -r.Launch the example by using one of the following options: build/examples/light_switch/client/light_switch_client_nrf52832_xxAA_s132_7.2.0.hex -sectorerase Run the following command: nrfjprog -program -chiperase. The required SoftDevice binary is s132_nrf52_7.2.0_softdevice.hex.ĭownload the SoftDevice that you want to build the Bluetooth mesh stack with. If you do not know the SoftDevice version that was used to build the Bluetooth mesh stack, check the nameįor example, if the example's binary name is light_switch_client_nrf52832_xxAA_s132_7.2.0.hex, In the corresponding example folder, in the build/ directory. The SoftDevice binaries are located in the bin/softdevice/ folder. You need to know the path to SoftDevice binaries to run examples with nrfjprog. Running examples using nrfjprog command line tool requires you to program a SoftDevice ![]() Running examples using nrfjprog how_to_run_examples_nrfjprog It then displays a list of connected boards.įrom the list of connected boards, choose the board to program the SoftDevice and example firmware onto. If required, it rebuilds them before flashing. Whether the example binaries are up-to-date. when using ninja build tool: ninja -t targets or ninja helpĪfter you issue the command to flash the example, the build system checks You can run custom CMake targets using either ninja or make.ĭepending on you choice, you have to use different commands:Ĭonnect a Development Kit to your computer with a USB cable.įlash the example by running one of the following commands from the build directory:īuild $ make that flash examples start with "flash_". Running examples using custom CMake target how_to_run_examples_cmake_custom [custom CMake how_to_run_examples_cmake_custom)īoth use files created by CMake to compile the project.Running examples in CMake-based build environment how_to_run_examples_cmakeĪfter you [built the example with how_to_build_cmake), you can run the example using either: If the debugging does not start, reset the J-Link: Target -> Reset J-Link. When the download is complete, select Debug -> Go again to start the code execution.This downloads the matching SoftDeviceĪnd the compiled example, and starts the debugger. Erase the device from the SES options menu: Target -> Erase all.In SES, connect to the development kit with Target -> Connect J-Link.Connect the Development Kit with the USB cable to your computer.To run the examples in a build environment based on SEGGER Embedded Studio (SES): The following procedure only works if you have [built the example with SEGGER Embedded how_to_build_segger_compiling_building). Running examples using SEGGER Embedded Studio how_to_run_examples_ses [Interacting with examples using SEGGER segger-rtt).[Running examples using how_to_run_examples_nrfjprog). ![]()
0 Comments
Leave a Reply. |