nrf52840 #42
tianrking
started this conversation in
Show and tell
Replies: 2 comments
-
uf2conv.py firmware.bin -c -b 0x26000 -f 0xADA52840 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Arduino nRF52xxx |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
nRF52840开发笔记
1. 准备工作
1.1 安装ARM GCC工具链
ARM GCC工具链用于编译ARM架构的代码
1.2 下载nRF5 SDK
wget https://www.nordicsemi.com/-/media/Software-and-other-downloads/SDKs/nRF5/Binaries/nRF5_SDK_17.1.0_ddde560.zip unzip nRF5_SDK_17.1.0_ddde560.zip -d ~/Downloads/NRFSDK/DeviceDownload/
nRF5 SDK包含了开发nRF52系列芯片所需的库和示例
1.3 下载uf2conv.py
uf2conv.py用于将hex文件转换为uf2格式,便于直接拷贝烧录
2. 配置环境
2.1 设置ARM GCC工具链路径
将ARM GCC工具链添加到系统PATH中
2.2 修改SDK的Makefile.posix
nano ~/Downloads/NRFSDK/DeviceDownload/nRF5_SDK_17.1.0_ddde560/components/toolchain/gcc/Makefile.posix
修改内容:
配置SDK使用正确的GCC工具链路径和版本
3. 编译项目
3.1 进入项目目录
3.2 编译
使用make命令编译项目,指定GCC工具链路径
4. 生成UF2文件
5. 烧录
UF2文件可以直接拖拽到开发板上进行烧录
Beta Was this translation helpful? Give feedback.
All reactions