yabo国际娱乐Dialog Semiconductor客户支持- SDK 5.0.4 https://support.dialog-semiconductor.com/resource-keywords/sdk-504 动态内存分配的问题 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/problem-dynamic-memory-allocation < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”

Hello, >, >, >,我有一个小问题分配相对较大的数组使用这个芯片,我使用SDK 5.0.4,我有一个2结构,

typedef struct{uint8_t x, uint8_t y;} s1;然后,我动态地为第二个结构体s2分配内存,

s2* mys2 = malloc(sizeof(s2));如果内部数组的长度相对较小(70),那么一切都可以正常工作,但如果我增加这个长度以上,程序崩溃,它看起来像一个内存错误。我已经看了文档,DA15580有足够的RAM和ROM (82KB ROM, 42KB SRAM)。

我的代码是基于SDK的模板,内存分配在我的初始化函数中被调用,它被传递给.app_on_init。我想知道是否有任何限制对动态内存分配造成的BLE堆栈,或者这可能是我的程序组织的问题。谢谢你的帮助。< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / malloc”“=“skos:概念”属性=“rdfs: label skos: prefLabel” datatype="">malloc

Device: 
2018年9月02日星期日22:34:56 +0000 uched41 226018年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/problem-dynamic-memory-allocation#comments
双模式配置外设和中心 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/dual-mode-configuration-peripheral-and < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >你好Dialog_Support, < / p > < p >我想配置DA14583双模式设备[中央和外设]。
我的场景是我有两个DA14583设备Device_A和Device_B。< br / > 1。Device_A总是处于外设模式,以便我可以使用App和Device_B与它通信。< br / > 2。Device_B也应该与App和Device_A通信。意味着我的device_B应该在双模式配置下工作。当Device_B与Device_A通话时,它应该处于中心模式。同样,当应用程序想要与Device_B对话时,它也应该以外设模式工作。我的问题是:
1。 is it possible to configure DA15483 work in dual mode central as well as peripheral as per my requirement
2. if yes, then in which all files and functions are responsible for dual mode configuration?
3. which steps do i follow to make my Device_B work in central as well as in peripheral mode?

As i have a short deadline for my project so can you please reply me in details if this kind of dual mode configuration is possible?

Thanks and Regards
Rohit

Device: 
2017年8月7日星期一12:10:36 +0000 Rajapurerohit 77084年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/dual-mode-configuration-peripheral-and#comments