看日志已经广播了,你的板子是我们开发板吗,如果不是的话你的板子的频偏需要调一下
Mars
@Mars
Mars 发布的帖子
-
RE: 直接把SDK里的例程examples\none_evm\ble_simple_peripheral 编译烧录后,用手机蓝牙调试工具搜索不到这个蓝牙,怎么解?
-
RE: FR8018HA怎么进行flash读写
#include "os_timer.h"
os_timer_t timer_update_id;
uint8_t flag =0;
uint8_t read_data[128]={0};
uint8_t read_data_W[128]={0};
void timer_update_task(void* vag)
{
co_printf("%s, mem (0x%x)\r\n", func, os_get_free_heap_size());
// ool_write( , );if(flag==0) { flash_read(0x3F000,128,&read_data[0]); co_printf("\r\n Read flash\r\n"); show_reg(read_data,128,1); flag=1; } else if(flag ==1) { flash_erase(0x3F000,0x1000); for(uint8_t i =0;i<128;i++) { read_data[i]=i; } show_reg(read_data,128,1); flag=2; } else if(flag ==2) { flash_write(0x3F000,128,&read_data[0]); flag=3; } else if(flag ==3) { flash_read(0x3F000,128,&read_data_W[0]); co_printf("\r\n read_data_W\r\n"); show_reg(read_data_W,128,1); os_timer_stop(&timer_update_id); }
}
void timer_task_send(uint8_t on_off, uint32_t ms, bool num)
{
#if 1
static uint8_t flag = 1;
if(flag)
{
os_timer_init(&timer_update_id,timer_update_task,NULL);
}
if(on_off)
{
os_timer_start(&timer_update_id,ms,num);
}
else
{
os_timer_stop(&timer_update_id);
}
flag=0;
#endif
}参考一下,写的地址不能写在代码区,A、B区之外,计算A、B区就是image_size*2之后就是用户可以操作的flash
-
RE: FR306设备做ble host/central流程问题
配置初始化的参数
gap_security_param_t smp_param = {
.mitm = true,
.secure_connection = false,
.bond = true,
.rsp_mode = ENABLE_AUTO_RSP,
.oob_used = GAP_OOB_AUTH_DATA_NOT_PRESENT,
.io_cap = GAP_IO_CAP_KB_ONLY, // OR GAP_IO_CAP_KB_ONLY
};
gap_security_param_init(&smp_param);
第一在GAP_EVT_SMP_SEC_REQ中加入绑定
!
第二、加入在GAP_EVT_SMP_TK_REQ加入填写密钥