rt-thread/bsp/nrf5x/nrf51822
JCZou 0369db718c Fix compiler flags issue
CCFLAGS is used by gcc and g++ compiler. So CFLAGS should be used for
gcc to avoid passing gcc flags to g++.
2021-08-19 08:53:27 +02:00
..
applications add the templete of nrfx 2021-04-11 12:24:47 +08:00
board add the ld file 2021-04-11 12:53:34 +08:00
.config add the ld file 2021-04-11 12:53:34 +08:00
Kconfig add the templete of nrfx 2021-04-11 12:24:47 +08:00
README.md add the templete of nrfx 2021-04-11 12:24:47 +08:00
SConscript add the templete of nrfx 2021-04-11 12:24:47 +08:00
SConstruct Fix compiler flags issue 2021-08-19 08:53:27 +02:00
project.uvoptx add the ld file 2021-04-11 12:53:34 +08:00
project.uvprojx add the ld file 2021-04-11 12:53:34 +08:00
rtconfig.h add the ld file 2021-04-11 12:53:34 +08:00
rtconfig.py add the templete of nrfx 2021-04-11 12:24:47 +08:00
template.uvoptx add the templete of nrfx 2021-04-11 12:24:47 +08:00
template.uvprojx add the templete of nrfx 2021-04-11 12:24:47 +08:00

README.md

nRF51822 BSP说明

简介

该文件夹主要存放所有主芯片为nRF51822的板级支持包。目前默认支持的开发板是Micro:bitV1.5 本文主要内容如下:

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

开发板介绍

Microbit是BCC基于nordic的mcu nrf51822的开发板基于ARM Cortex-M0内核最高主频64 MHz具有丰富的外设资源。

开发板外观如下图所示

nrf51822 开发板常用 板载资源 如下:

  • MCUNRF51822主频 16MHz256kB FLASH 16kB RAM
  • MCU 外设: GPIO, UART, SPI, I2C(TWI), RTC,TIMER,PWM,ADC
  • 板载外设
    • LED墙25个矩阵控制。
    • 按键3个2个USER and 1个RESET 。
    • 三轴加速度传感器: LSM303AGR
    • CMSIS-DAP: KL26Z调试器
  • 调试接口板载CMSIS-DAP 调试器。

更详细的整理的资料见nrf51822

官方主页nrf51822

外设支持

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

片上外设 支持情况 备注
GPIO 待支持
UART 支持 UART0

进阶使用

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

  1. 在 bsp 下打开 env 工具。

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

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

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

支持其他开发板

可以在board/Kconfig里面的bsp choice里面添加对应的其他开发板

联系人信息

维护人: