NRF52833 study notes (1)-build environment, compile and burn

1. Build the environment

1.1 Install Keil 5

Download from official website: http://www2.keil.com/mdk5/
Baidu Netdisk : https://pan.baidu.com/s/1T_eF5NDYeq38bR0cqjiZkw Extraction code: 562z

1.2 Download SDK

Download from official website: https://www.nordicsemi.com/Software-and-tools/Software/nRF5-SDK/Download#infotabs
Baidu web disk: https://pan.baidu.com/s/1YBe-Mp2qGf6xBMMm8rEhBw Extraction code: 97zh

1.3 Install Nordic Packet

Note: To correspond with the SDK version
http://developer.nordicsemi.com/nRF5_SDK/pieces/nRF_DeviceFamilyPack/
official website to download: http://www.keil.com/dd2/Pack/#/third-party-download-dialog
selection Nordic Semiconductor nRF ARM devices Device Family Pack with BSD

Baidu Netdisk : https://pan.baidu.com/s/1XHUFqTnaPEfpquUYjYBLHA Extraction code: vgb2
Download in Keil:

1.4 Install ARM CMSIS kernel 4.5.0

Baidu network disk: https://pan.baidu.com/s/1V-magEmEUoGxVhCeT9hIcw Extraction code: m5n7

1.5 Install protocol stack software nRFgo Studio

Download from official website: https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRFgo-Studio/Download
Baidu network disk: https://pan.baidu.com/s/1GxBDyzCS1_R-wVh2zyA2vA Extraction code: qlfj

二、SoftDevice

2.1 Naming rules

Take Sxyz as an example, where S stands for Software, and the meaning of each letter is shown below. Detailed descriptions of different protocol stacks can be found here .

2.1.1 General rules

x-protocol stack type

  • 1 : BLE stack
  • 2:ANT stack
  • 3:BLE&ANT stack

y-BLE role

  • 1:peripheral role
  • 2:central role
  • 3:all roles(central/peripheral/advertiser/observer)

z-series chip

  • 0:nRF51 series
  • 2:nRF52 series
  • 3: misc series
    such as S113 represents the low-power BLE protocol stack, slave devices, for nRF52805, nRF52810, nRF52811, nRF52820, nRF52832, nRF52833 and nRF52840 series SoC.

2.1.2 Specific rules

x-Protocol stack type
Same as above

yz-chip model

  • 40: For the chip 52840
    tips: S140 is a large and complete protocol stack, including all Bluetooth functions.

Note that the ROM and RAM occupied by different softdevices are different, see their manuals S112 , S113 , S122 , S130 , S132 , S140 , S212 , S312 , S332 , S340 ...

2.2 Directory Framework

  • components: Various SDKs developed by Nordic, which only contain header files, source files and library files, do not modify them!
  • config: Configuration files of different types of chips.
  • documentation: SDK and different softdeviceAPI reference documentation.
  • examples: Examples are designed according to application scenarios such as different transmission protocols/BLE roles/peripherals. This directory is very commonly used.
  • external: third-party library or source code.
  • external_tools: third-party tools.
  • integration: Integrate the driver (also known as legacy) of the old version of the SDK (≤SDK14).
  • modules: The new version of SDK (>SDK14) drives nrfx, and supports nRF5 SDK (for nRF51/52 chips) and nRF Connect SDK (supports nRF91/53 chips).

Two, compile

Open BLE slave serial port transmission example project ble_app_uart
path: SDK\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10100\s140\arm5_no_packs

Click the button to compile

Note: Other projects might generate compilation error when missing micro_ecc_lib_nrf52.lib file, view the lack of micro_ecc_lib_nrf52.lib when the project file is compiled NRF52832: Solution

Three, burn

3.1 Burning in Keil

  1. First burn protocol stack

  2. And then burning application

Note: There may be problems during the debugging process. Because the official nRF52833 DK development board is used, the JLINK version needs to be updated.
nRF-Command-Line-Tools_10_12_0_Installer.exe extraction code: 7lub

3.2 Burn in nRFgo

  1. Open nRFgo Studio
  2. If it is the first time to burn, erase first (can be skipped)
  3. Burning protocol stack
    Select the protocol stack corresponding to the SDK version (usually downloaded along with the SDK)
    path: nRF5_SDK_17.0.2_d674dde\components\softdevice\s140\hex

    replace the protocol stack hex file

    4. Burning application
    path: nRF5_SDK_17.0.2_d674dde \examples\ble_peripheral\ble_app_uart\pca10100\s140\arm5_no_packs\ _build


Written by Leung on December 7, 2020

• Reference: NORDIC nrf52833 use notes
    nRF52832 development environment to build a
    green wind electronic community

Guess you like

Origin blog.csdn.net/qq_36347513/article/details/110819378