BLE示例支柱4(安全性)不起作用

Learn More常见问题解答教程

12个帖子/ 0新
最后一篇
advanchip @ pacbe ...
离线
最后一次露面:3 years 6 months ago
加入:2017-05-10 23:35
BLE示例支柱4(安全性)不起作用

我正在使用DA14585-00ATDEVKT-P开发套件 - PRO具有DA14585_SDK 6.0.2.243和KEIL UVERSION v5.23.0.0。

I am following the UM-B-080_DA14585_586_SDK_6_Software_Developer's_Guide_3v0.pdf to check out the examples without any codes modification. Now I am at 8.5 Pillar 4 (Security) which I didn't see the device name "Dialog-Security" show-up in my iOS LightBlue app. (Attached is the screen shot of the errors). All the previous examples are working successfully.

在UM-B-080_DA14585_586_SDK_6_SOFTWARE_DEVOPELER'S_GUIDE_3V0.PDF
Page 72图43:Pillar 4应用程序 - 用户应用程序代码流使用PassKey条目配对,我无法找到App_easy_security_set_tk(),app_easy_security_tk_exchange(),app_on_ltk_exchange()和default_app_on_ltk_exchange()。

此外,图44

请指教。

Thanks.

Device:
mt_dialog.
离线
最后一次露面:2天4小时前
职员
加入:2015-06-08 11:34
嗨advanchip,

嗨advanchip,

Well, the ble_app_security project requires a flash in order to operate (that is if you have set the USER_CFG_APP_BOND_DB_USE_SPI_FLASH, if not the device can operate without a flash), so if there is no flash attached the device will end up in a NMI_Handler() in case there is an interaction with the flash and no flash attached. The NMI_Handler() means that the watchdog has elapsed.

关于app_on_ltk_exchange,触发的回调是.app_on_ltk_exch和应用程序侧的默认操作是default_app_on_ltk_exch,关于app_easy_tk_exchange()sdk中的函数是app_easy_security_tk_exch()关于app_easy_security_set_tk()这是一个函数一个旧的SDK(一个580 SDK)不再在6.0.2中使用,该密钥通过App_easy_security_set_tk()函数设置,然后通过app_easy_security_tk_exch()函数发送,是API的新SDK直接设置并发送TK。

For the .app_on_ltk_exchange callback the app_on_ltk_exch name is used and the corresponding default function is the default_app_on_ltk_exch().

此外,如果你不介意我问,你正在使用的设备是一个Pro Kit子板?

谢谢mt_dialog.

advanchip @ pacbe ...
离线
最后一次露面:3 years 6 months ago
加入:2017-05-10 23:35
是的,DA14585设备是

是的,DA14585设备安装在DA14585-00ATDEVKT-P开发套件 - Pro的子板中(请参阅附加的硬件信息的照片)。

我按照UM-B-080_DA14585_586_SDK_6_Software_Developer's_Guide_3V0.pdf图45选择目标处理器“BLE_APP_SECURINATE_585”,其中没有闪光灯,我假设软件将自动保理Flash问题。现在我将user_cfg_app_bond_db_use_spi_flash更改为undef,并且示例工作。我想知道第8.8节Parkar 7(一体化)的例子是否会有同样的问题?

Thanks.

mt_dialog.
离线
最后一次露面:2天4小时前
职员
加入:2015-06-08 11:34
嗨advanchip,

嗨advanchip,

您还可以使用答辩l flash provided from the motherboard, so there is the functionallity to use a flash even on the 585, either using a flash or not is controlled by the USER_CFG_APP_BOND_DB_USE_SPI definition that i have indicated. Yes the same applies for the all in one example, it also has the same configurations under the same definitions.

谢谢mt_dialog.

advanchip @ pacbe ...
离线
最后一次露面:3 years 6 months ago
加入:2017-05-10 23:35
如何使用外部

如何使用外部flash provided from the motherboard in this example?

In my original question, you told me to #undef USER_CFG_APP_BOND_DB_USE_SPI in order to make the security example works. From the test, I know that #define USER_CFG_APP_BOND_DB_USE_SPI doesn't work. Now you said that "either using a flash or not is controlled by the USER_CFG_APP_BOND_DB_USE_SPI definition", this statement confused me. Please clarify.

Thanks.

mt_dialog.
离线
最后一次露面:2天4小时前
职员
加入:2015-06-08 11:34
嗨advanchip,

嗨advanchip,

In the example you are testing you can either operate it with a flash or without, in order to define if a flash is used or not the definition USER_CFG_APP_BOND_DB_USE_SPI_FLASH should be defined. In case you would like to use the flash with the 585 you will have to connect the flash located on the motherboard of the pro kit. In order to check how to connect the flash please check the UM-B-049 Getting started with the DA1458x Development Kit - Pro. There is also a schematic on the pro board itself right next to the J5 header in order to select either UART or SPI configuration.

So if you have the flash connected that means that the example will be able to operate if you have the USER_CFG_APP_BOND_DB_USE_SPI_FLASH definition.

If you dont have the flash connected the example will operate only with the USER_CFG_APP_BOND_DB_USE_SPI_FLASH undefined.

谢谢mt_dialog.

vanaja
离线
最后一次露面:2 years 2 weeks ago
加入:2018-11-27 07:25
我正在使用da14580开发套件。

我正在使用da14580开发套件。使用UART连接到Flash代码。BLE示例Pillar 4(安全性)在NMI_Handler()中失败,如预期。如果按照闪存的闪存器所示进行SPI连接,则KEIL提供“未找到Cortex-M SW设备”的失败消息。

我需要使用绑定功能。你能告诉我错过的地方吗?

PM_DIALOG.
离线
最后一次露面:33分17秒前
职员
加入:2018-02-08 11:03
Hi vanaja,

Hi vanaja,

您发布的问题与此论坛线程无关,因为当前线程指的是DA14585芯片而不是DA14580。如果您有任何其他后续问题,请为邮寄和标记为DA14580芯片创建一个新的。此误差意味着DA14580和Keil之间没有通信。请尝试重置它并下载SDK的任何其他示例?你还有同样的问题吗?此外,请转到目标 - >调试 - >设置Keil环境的选项,并确保检测到DA14580。如果是,则应看到J-Link的SN

谢谢,PM_DIALOG.

vanaja
离线
最后一次露面:2 years 2 weeks ago
加入:2018-11-27 07:25
PM_DIALOG,

PM_DIALOG,

我在对象网站上搜索了很多,以创建新帖子,但不能在存在的帖子中发表评论。之前可以创建新帖子。

使用SPI连接,J-Link的SN可在设置窗口中可见仍然相同。

PM_DIALOG.
离线
最后一次露面:33分17秒前
职员
加入:2018-02-08 11:03
Hi vanaja,

Hi vanaja,

如果您能够用SDK的任何其他示例复制它,请让我知道吗?另外,您是否将固件下载到SPI Flash?似乎无法检测到您的设备。

谢谢,PM_DIALOG.

vanaja
离线
最后一次露面:2 years 2 weeks ago
加入:2018-11-27 07:25
Hello PM_Dialog,

Hello PM_Dialog,

我无法刷新任何应用程序。切勿将固件下载到SPI Flash中。

PM_DIALOG.
离线
最后一次露面:33分17秒前
职员
加入:2018-02-08 11:03
嗨vanaja,

嗨vanaja,

您可以尝试使用SmartSnippets Toolbox连接您的电路板吗?可能在DA14585和JLINK FW之间尝试与设备通信之间没有连接。这可能是从与PCB的问题联系起来的任何东西,使得585无法运行。我的建议是检查引导加载程序是否正在执行才能验证585是否正常运行。您可以探测P04和P05引脚,并且应切换引导程序的一部分的引脚,因此在连接到终端时,您应该看到设备打印垃圾。

谢谢,PM_DIALOG.