Mac 上的 Nordic nRF51 DK 与 CrossWorks [英] Nordic nRF51 DK on Mac with CrossWorks
问题描述
在带有 Rowley Associates CrossWorks 的 OSX 上,将 Nordic nRF51 DK 的简单 BLE UART 示例代码编译和运行到 iPhone 所需的步骤是什么.
On OSX with Rowley Associates CrossWorks what are the steps needed to compile and run a simple BLE UART sample code for Nordic nRF51 DK to an iPhone.
我在这里找到了 iOS 和 Android 代码,并且对这部分感到满意:https://www.nordicsemi.com/Products/nRFready-Demo-APPS
I found iOS and Android code here and am comfortable with that part: https://www.nordicsemi.com/Products/nRFready-Demo-APPS
但我不确定如何在 nRF51 板上设置和运行工具链.我看过一些关于 SDK 6.x 的说明,但找不到任何关于 SDK 7.x 的内容.
But I am not sure how to get the toolchain setup and running on the nRF51 board. I've seen some directions for SDK 6.x but can't find anything for SDK 7.x.
推荐答案
这就是我让它工作的方式:
This is how I got it to work:
设置nRF51 SDK"
解压nRF51_SDK_8.0.0_5fpacks2c3a>/nRF_SoftDevice_S110/NordicSemiconductor.nRF_SoftDevice_S110.8.0.0.pack"
unzip "nRF51_SDK_8.0.0_5fc2c3a_packs/nRF_SoftDevice_S110/NordicSemiconductor.nRF_SoftDevice_S110.8.0.0.pack"
加载$nRF51_SDK_8.0.0_5fc2c3a/components/softdevice/s110/hex/s110_softdevice.hex" 在 nRF51 上使用 RKNRFGO.app
Load "$nRF51_SDK_8.0.0_5fc2c3a/components/softdevice/s110/hex/s110_softdevice.hex" on nRF51 with RKNRFGO.app
在 CrossWorks File->Import Project 中选择$nRF51_SDK_8.0.0_5fc2c3a/examples/ble_peripheral/ble_app_uart"
In CrossWorks File->Import Project and select "$nRF51_SDK_8.0.0_5fc2c3a/examples/ble_peripheral/ble_app_uart"
5.在选择模板"中选择nRF51_EXE - ..."模板列表
5.in "Select Template" select "nRF51_EXE - ..."template list
从项目中删除retarget.c"(这是最简单的如果您现在构建,则会出现错误)
Remove "retarget.c" from project (it is easiest if you build now so you get the error)
在项目资源管理器中选择项目项->项目'nrf51422_xxac_s110'"
Select Project Item-> "Project 'nrf51422_xxac_s110'" in project explorer
在属性窗口"中向下滚动到链接器选项"并将节放置宏"设置为:
In "Properties Window" scroll down to "Linker Options" and set "Section Placement Macros" to:
FLASH_START=0x18000
FLASH_START=0x18000
RAM_START=0x20002000
RAM_START=0x20002000
还要确保 Properties Window->Target Loader Options->Can Erase All 设置为No"
Also make sure Properties Window->Target Loader Options->Can Erase All is set to "No"
- 选择构建->nrf51422_xxac_s110...
9.5 选择目标 -> 连接 -> SEGGER J-LINK
9.5 Select Target -> Connect -> SEGGER J-LINK
- 选择调试->开始
现在应用可以连接到nRF51 DK板
- iOS 应用
- Android 应用是安卓版.
在此处获取移动应用源代码.
Get the mobile app source code here.
查看这篇帖子了解更多详情.
See this post for more details.
这篇关于Mac 上的 Nordic nRF51 DK 与 CrossWorks的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!