简体   繁体   English

BlueNRG1 上的 BlueNRG_Stack_Initialization 错误 0x48

[英]BlueNRG_Stack_Initialization error 0x48 on BlueNRG1

I have been having struggles while programming the Bluenrg1, more specifically when trying to start the BLE mode on it.我在对 Bluenrg1 进行编程时遇到了困难,更具体地说,是在尝试在其上启动 BLE 模式时。

The method BlueNRG_Stack_Initialization is returning 0x48 which refers to BLE_STATUS_OUT_OF_MEMORY . BlueNRG_Stack_Initialization方法返回 0x48,它指的是BLE_STATUS_OUT_OF_MEMORY All this happened with the DK version 3.2.2 for the bluenrg1 and bluenrg2.所有这一切都发生在 bluenrg1 和 bluenrg2 的 DK 版本 3.2.2 中。

I could obtain the 3.2.1 version of the DK and it works well.我可以得到 3.2.1 版本的 DK,它运行良好。 After some research I found the value that cause the error, I'll post the solution for my own question to help anybody having the same problem.经过一些研究,我发现了导致错误的值,我将发布我自己的问题的解决方案,以帮助遇到同样问题的任何人。

The problem appears because of a change on the Bluenrg1_stack.h header located on the folder ../Bluetooth_LE/inc/ of the DK 3.2.2 ->出现问题是因为Bluenrg1_stack.h header 位于 DK 3.2.2 的文件夹../Bluetooth_LE/inc/上的更改->

Change FIXED_BUFFER_SIZE_BYTES from 6480 (DK 3.2.1) to 6536 (DK 3.2.2) FIXED_BUFFER_SIZE_BYTES从 6480 (DK 3.2.1) 更改为 6536 (DK 3.2.2)
Change VARIABLE_BUFFER_SIZE_PER_LINK_BYTES from 336 (DK 3.2.1) to 344 (DK 3.2.2)VARIABLE_BUFFER_SIZE_PER_LINK_BYTES从 336 (DK 3.2.1) 更改为 344 (DK 3.2.2)

The VARIABLE_BUFFER_SIZE_PER_LINK_BYTES creates the error because it requires more memory allocation than the one created on the beacon configuration. VARIABLE_BUFFER_SIZE_PER_LINK_BYTES会产生错误,因为它需要比在信标配置上创建的分配更多的 memory 分配。

Just rever the value to the one on the DK 3.2.1 and it will run without an error.只需将值恢复为 DK 3.2.1 上的值,它就会运行而不会出现错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM