rt-thread-official/bsp/nrf5x/nrf52832
latercomer fe3c4d456e bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句 2024-06-20 14:40:42 +08:00
..
.vscode [bsp/nrf5x] update config file 2021-06-28 22:34:35 +08:00
applications format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
board format link scripts 2023-01-08 22:52:13 -05:00
.config [bsp] update projects 2024-03-21 11:23:29 +08:00
.gitignore [ADD]vscode support for nrf52832 2021-03-02 13:47:40 +08:00
Kconfig bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句 2024-06-20 14:40:42 +08:00
README.md [bsp/nrf5x] add hwtimer driver 2021-11-24 09:25:52 +08:00
SConscript add the bsp of nrf5x 2020-04-14 22:18:42 +08:00
SConstruct [Scons][iar][iccarm] IAR统一使用iccarm作为判断条件而不是是用IDE的名字来进行判断 2022-06-09 07:01:59 +08:00
project.uvoptx [update] bsp .config file and rtconfig.h file. 2021-10-14 14:49:53 +08:00
project.uvprojx [bsp] update projects 2024-03-21 11:23:29 +08:00
rtconfig.h [bsp] update projects 2024-03-21 11:23:29 +08:00
rtconfig.py [bsp] Improve rtconfig.py path definition (#5739) 2022-03-29 22:15:09 +08:00
template.uvoptx [bsp/nrfx5]: fix the board of nrf52832(pca10040) 2020-08-07 21:43:06 +08:00
template.uvprojx [bsp/nrfx5]: fix the board of nrf52832(pca10040) 2020-08-07 21:43:06 +08:00

README.md

nRF52832-PCA10040 BSP说明

简介

该文件夹主要存放所有主芯片为nRF52832的板级支持包。目前默认支持的开发板是官方PCA10040 主要内容如下:

  • 开发板资源介绍
  • 进阶使用方法

开发板介绍

PCA10040-nRF52832是Nordic 官方的开发板搭载nRF52832 芯片基于ARM Cortex-M4内核最高主频64 MHz具有丰富的资源。

开发板外观如下图所示

PCA10040-nrf52832开发板常用 板载资源 如下:

  • MCUNRF52832主频 64MHz512kB FLASH 64kB RAM
  • MCU 外设: GPIO, UART, SPI, I2C(TWI), RTC,TIMER,NFC,PWM,ADC
  • 板载设
    • LED4个 。
    • 按键5个4个USER and 1个RESET 。
  • 常用接口Arduino Uno 接口
  • 调试接口:板载 J-LINK 调试器。

开发板更多详细信息请参考NORDIC官方PCA10040

外设支持

本 BSP 目前对外设的支持情况如下:

片上外设 支持情况 备注
GPIO 支持 GPION
UART 支持 UART0
PWM 支持 支持
SPI 支持 支持
RTC 支持
ADC 支持
TIMER 支持 TIMER0~TIMER4

进阶使用

此 BSP 默认只开启了 GPIO 和 串口 0 的功能,更多高级功能需要利用 env 工具对 BSP 进行配置,步骤如下:

  1. 在 bsp 下打开 env 工具。

  2. 输入menuconfig命令配置工程,配置好之后保存退出。

  3. 输入pkgs --update命令更新软件包。

  4. 输入scons --target=mdk4/mdk5/iar 命令重新生成工程。

VS Code开发支持

配置步骤:

  1. 在命令行设置以下两个环境变量:

    export RTT_CC=gcc
    export RTT_EXEC_PATH=<工具链路径/bin>
    
  2. 搜索插件Cortex-debug并安装。

  3. 安装nRF Command Line Tools以支持nrfjprog命令。

  4. 在.vscode/settings.json内配置工具链和JlinkGDBServersample

    {
        "cortex-debug.armToolchainPath": "/usr/local/gcc-arm-none-eabi-9-2019-q4-major/bin/",
        "cortex-debug.armToolchainPrefix": "arm-none-eabi",
        "cortex-debug.JLinkGDBServerPath": "/Applications/SEGGER/JLink/JLinkGDBServer"
    }
    
  5. 点击终端->运行任务->build编译,点击终端->运行任务->flash烧录,点击左侧debug->run使用VS Code进行debug。

支持其他开发板

客户可以将自己的开发板的.config文件和board/Kconfig文件到board/$(board_name)下面添加README.md即可

注意事项

联系人信息

维护人: