ota双备份升级成功
This commit is contained in:
@ -530,6 +530,7 @@ void JL_rcsp_msg_deal(void *hdl, u8 event, u8 *msg)
|
|||||||
|
|
||||||
case MSG_JL_ENTER_UPDATE_MODE:
|
case MSG_JL_ENTER_UPDATE_MODE:
|
||||||
rcsp_printf("MSG_JL_ENTER_UPDATE_MODE:%x %x\n", msg[0], msg[1]);
|
rcsp_printf("MSG_JL_ENTER_UPDATE_MODE:%x %x\n", msg[0], msg[1]);
|
||||||
|
clk_set("sys",96*1000000L);
|
||||||
bt_set_low_latency_mode(0);
|
bt_set_low_latency_mode(0);
|
||||||
if (support_dual_bank_update_en && !tws_api_get_role()) {
|
if (support_dual_bank_update_en && !tws_api_get_role()) {
|
||||||
u8 status = 0;
|
u8 status = 0;
|
||||||
|
|||||||
@ -28,6 +28,7 @@
|
|||||||
#include "./sensor/AK8963.h"
|
#include "./sensor/AK8963.h"
|
||||||
#include "asm/rtc.h"
|
#include "asm/rtc.h"
|
||||||
#include "system/timer.h"
|
#include "system/timer.h"
|
||||||
|
#include "adv_time_stamp_setting.h"
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//宏定义
|
//宏定义
|
||||||
#define ENABLE_XLOG 1
|
#define ENABLE_XLOG 1
|
||||||
@ -50,13 +51,15 @@
|
|||||||
void send_data_to_ble_client(const u8* data, u16 length);
|
void send_data_to_ble_client(const u8* data, u16 length);
|
||||||
extern void create_process(u16* pid, const char* name, void *priv, void (*func)(void *priv), u32 msec);
|
extern void create_process(u16* pid, const char* name, void *priv, void (*func)(void *priv), u32 msec);
|
||||||
extern void close_process(u16* pid,char* name);
|
extern void close_process(u16* pid,char* name);
|
||||||
|
void start_collect_fuc(void);
|
||||||
|
void BLE_send_fuc(void);
|
||||||
//END -- 函数定义
|
//END -- 函数定义
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//START -- 变量定义
|
//START -- 变量定义
|
||||||
|
static u32 timer_offset_ms = 0;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
// -- 六轴 --
|
// -- 六轴 --
|
||||||
@ -69,7 +72,9 @@ typedef struct {
|
|||||||
int adc_P;
|
int adc_P;
|
||||||
int adc_T;
|
int adc_T;
|
||||||
// -- 左/右腿 --
|
// -- 左/右腿 --
|
||||||
uint8_t foot; //1:左脚;2:右脚
|
uint8_t foot_state; //1:左脚;2:右脚
|
||||||
|
// -- 时间 --
|
||||||
|
u32 timestamp_ms;
|
||||||
|
|
||||||
} BLE_send_data_t;
|
} BLE_send_data_t;
|
||||||
|
|
||||||
@ -79,9 +84,27 @@ static int count = 0;
|
|||||||
static circle_buffer_t BLE_send_buff; // 环形缓冲区管理结构体
|
static circle_buffer_t BLE_send_buff; // 环形缓冲区管理结构体
|
||||||
BLE_send_data_t BLE_send_data[SENSOR_DATA_BUFFER_SIZE];
|
BLE_send_data_t BLE_send_data[SENSOR_DATA_BUFFER_SIZE];
|
||||||
|
|
||||||
|
// -- 任务id --
|
||||||
|
u16 SC7U22_calibration_id;
|
||||||
|
u16 start_collect_fuc_id;
|
||||||
|
u16 BLE_send_fuc_id;
|
||||||
//END -- 变量定义
|
//END -- 变量定义
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
// 重置计时器
|
||||||
|
void reset_ms_timer(void) {
|
||||||
|
timer_offset_ms = sys_timer_get_ms();
|
||||||
|
xlog("Timer has been reset.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取从上次重置后经过的毫秒数
|
||||||
|
u32 get_ms_timer(void) {
|
||||||
|
return sys_timer_get_ms() - timer_offset_ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------------------------------------------
|
||||||
|
// --------------------------------------------定时器回调函数----------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* @brief 六轴静态校准
|
* @brief 六轴静态校准
|
||||||
*
|
*
|
||||||
@ -131,8 +154,7 @@ void SC7U22_static_calibration(void){
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void start_collect_fuc(void){
|
void start_collect_fuc(void){
|
||||||
// xlog("=======sensor_read_data START\n");
|
// xlog("=======sensor_read_data START\n");
|
||||||
|
|
||||||
static signed short combined_raw_data[6];
|
static signed short combined_raw_data[6];
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
static int calibration_done = 0;
|
static int calibration_done = 0;
|
||||||
@ -165,6 +187,9 @@ void start_collect_fuc(void){
|
|||||||
memcpy(&BLE_send_data_tmp.SC7U22_data[3], gyr_data_buf, 3 * sizeof(signed short));
|
memcpy(&BLE_send_data_tmp.SC7U22_data[3], gyr_data_buf, 3 * sizeof(signed short));
|
||||||
memcpy(BLE_send_data_tmp.mmc5603nj_buffer, mmc5603nj_buffer, 9);
|
memcpy(BLE_send_data_tmp.mmc5603nj_buffer, mmc5603nj_buffer, 9);
|
||||||
BLE_send_data_tmp.speed_cms = speed;
|
BLE_send_data_tmp.speed_cms = speed;
|
||||||
|
extern u8 foot_init;
|
||||||
|
BLE_send_data_tmp.foot_state = foot_init;
|
||||||
|
BLE_send_data_tmp.timestamp_ms = get_ms_timer();
|
||||||
|
|
||||||
// -- 放进缓冲区 --
|
// -- 放进缓冲区 --
|
||||||
if(circle_buffer_is_full(&BLE_send_buff) == 0){
|
if(circle_buffer_is_full(&BLE_send_buff) == 0){
|
||||||
@ -296,9 +321,69 @@ void BLE_send_fuc(void){
|
|||||||
|
|
||||||
send_data_to_ble_client(&speed_packet, SPEED_PACKET_LEN);
|
send_data_to_ble_client(&speed_packet, SPEED_PACKET_LEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// --- 封装并发送数据 ---
|
||||||
|
{
|
||||||
|
// 协议定义: 包头(2) + 长度(1) + 类型(1) + 数据(5) = 9字节
|
||||||
|
const uint8_t OTHER_PACKET_LEN = 9;
|
||||||
|
const uint8_t OTHER_PAYLOAD_LEN = 6; // 类型(1) + 数据(5)
|
||||||
|
const uint8_t OTHER_TYPE = 0x05;
|
||||||
|
|
||||||
|
uint8_t oher_packet[OTHER_PACKET_LEN];
|
||||||
|
|
||||||
|
// 填充包头
|
||||||
|
oher_packet[0] = 0xBB;
|
||||||
|
oher_packet[1] = 0xBE;
|
||||||
|
// 填充长度
|
||||||
|
oher_packet[2] = OTHER_PACKET_LEN;
|
||||||
|
// 填充类型
|
||||||
|
oher_packet[3] = OTHER_TYPE;
|
||||||
|
|
||||||
|
// 小端模式
|
||||||
|
oher_packet[4] = (uint8_t)data_to_send.foot_state; // 数据来源
|
||||||
|
|
||||||
|
oher_packet[5] = (uint8_t)((data_to_send.timestamp_ms >> 0) & 0xFF); // LSB
|
||||||
|
oher_packet[6] = (uint8_t)((data_to_send.timestamp_ms >> 8) & 0xFF);
|
||||||
|
oher_packet[7] = (uint8_t)((data_to_send.timestamp_ms >> 16) & 0xFF);
|
||||||
|
oher_packet[8] = (uint8_t)((data_to_send.timestamp_ms >> 24) & 0xFF); // MSB
|
||||||
|
send_data_to_ble_client(&oher_packet, OTHER_PACKET_LEN);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// ------------------------------------------------------------------------------------------------------
|
||||||
|
// ------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 六轴静态校验
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void start_calibration(void){
|
||||||
|
create_process(&SC7U22_calibration_id,"SC7U22_calibration",NULL,SC7U22_static_calibration,10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 开始采集传感器数据并通过ble发送
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void start_clloct(void){
|
||||||
|
reset_ms_timer();
|
||||||
|
create_process(&start_collect_fuc_id,"start_collect",NULL,start_collect_fuc,10);
|
||||||
|
create_process(&BLE_send_fuc_id,"BLE_send_fuc",NULL,BLE_send_fuc,1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 停止采集和ble发送
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void stop_clloct(void){
|
||||||
|
close_process(&start_collect_fuc_id,"start_collect");
|
||||||
|
close_process(&BLE_send_fuc_id,"BLE_send_fuc");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 初始化,在app_main.c的app_main函数被调用
|
||||||
|
*
|
||||||
|
*/
|
||||||
void xtell_task_create(void){
|
void xtell_task_create(void){
|
||||||
|
|
||||||
#if TCFG_GSENOR_USER_IIC_TYPE
|
#if TCFG_GSENOR_USER_IIC_TYPE
|
||||||
@ -320,8 +405,7 @@ void xtell_task_create(void){
|
|||||||
circle_buffer_init(&BLE_send_buff, BLE_send_data, SENSOR_DATA_BUFFER_SIZE, sizeof(BLE_send_data_t));
|
circle_buffer_init(&BLE_send_buff, BLE_send_data, SENSOR_DATA_BUFFER_SIZE, sizeof(BLE_send_data_t));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -334,36 +418,21 @@ void bmp280_test(void){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void gsensor_test(void){
|
void gsensor_test(void){
|
||||||
// static signed short combined_raw_data[6];
|
|
||||||
// static int initialized = 0;
|
|
||||||
// static int calibration_done = 0;
|
|
||||||
// char status = 0;
|
|
||||||
// BLE_send_data_t BLE_send_data_tmp;
|
|
||||||
// signed short acc_data_buf[3];
|
|
||||||
// signed short gyr_data_buf[3];
|
|
||||||
// float angle[3];
|
|
||||||
// float quaternion_output[3];
|
|
||||||
|
|
||||||
// // -- 读数据 --
|
|
||||||
// SL_SC7U22_RawData_Read(acc_data_buf,gyr_data_buf);
|
|
||||||
|
|
||||||
// memcpy(&combined_raw_data[0], acc_data_buf, 3 * sizeof(signed short));
|
|
||||||
// memcpy(&combined_raw_data[3], gyr_data_buf, 3 * sizeof(signed short));
|
|
||||||
|
|
||||||
// // -- 四元数 --
|
|
||||||
// status = Q_SL_SC7U22_Angle_Output(0, combined_raw_data, angle,NULL, 0, quaternion_output);
|
|
||||||
|
|
||||||
// // -- 速度计算 --
|
|
||||||
// memcpy(acc_data_buf, &combined_raw_data[0], 3 * sizeof(signed short));
|
|
||||||
// memcpy(gyr_data_buf, &combined_raw_data[3], 3 * sizeof(signed short));
|
|
||||||
// uint16_t speed = sensor_processing_task(acc_data_buf,gyr_data_buf,angle, quaternion_output);
|
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
if(count >= 5){
|
if(count >= 5){
|
||||||
xlog("==============time============\n");
|
xlog("==============time============\n");
|
||||||
u32 current_ms = sys_timer_get_ms();
|
|
||||||
xlog("====== current system time: %u ms\n", current_ms);
|
u32 current_time = get_ms_timer();
|
||||||
|
xlog("Time since last reset: %u ms\n", current_time);
|
||||||
|
|
||||||
|
// 为了演示,我们在这里调用重置
|
||||||
|
if (current_time > 5000) { // 比如超过5秒就重置一次
|
||||||
|
reset_ms_timer();
|
||||||
|
}
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
}
|
}
|
||||||
count++;
|
count++;
|
||||||
|
|||||||
@ -83,17 +83,17 @@ extern u8 init_ok;
|
|||||||
extern u8 sniff_out;
|
extern u8 sniff_out;
|
||||||
unsigned char xtell_bl_state=0; //存放经典蓝牙的连接状态,0断开,1是连接
|
unsigned char xtell_bl_state=0; //存放经典蓝牙的连接状态,0断开,1是连接
|
||||||
u8 bt_newname =0;
|
u8 bt_newname =0;
|
||||||
unsigned char xt_ble_new_name[9] = "CM-33333";
|
unsigned char xt_ble_new_name[9] = "CM-22222";
|
||||||
static u16 play_poweron_ok_timer_id = 0;
|
static u16 play_poweron_ok_timer_id = 0;
|
||||||
|
|
||||||
// -- 初始化标志位 --
|
// -- 初始化标志位 --
|
||||||
u8 SC7U22_init = 0x10; //六轴是否初始化
|
u8 SC7U22_init = 0x10; //六轴是否初始化
|
||||||
u8 MMC5603nj_init = 0x20; //地磁是否初始化
|
u8 MMC5603nj_init = 0x20; //地磁是否初始化
|
||||||
u8 BMP280_init = 0x30; //气压计初始化
|
u8 BMP280_init = 0x30; //气压计初始化
|
||||||
|
u8 foot_init = 0x40; //数据来源初始化:左脚0x41 or 右脚0x42
|
||||||
// -- 线程id --
|
// -- 线程id --
|
||||||
u16 SC7U22_calibration_id;
|
|
||||||
u16 start_collect_fuc_id;
|
|
||||||
u16 BLE_send_fuc_id;
|
|
||||||
u16 gsensor_test_id = 0;
|
u16 gsensor_test_id = 0;
|
||||||
//
|
//
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -103,6 +103,10 @@ extern void create_process(u16* pid, const char* name, void *priv, void (*func)(
|
|||||||
extern void close_process(u16* pid,char* name);
|
extern void close_process(u16* pid,char* name);
|
||||||
extern void start_collect_fuc(void);
|
extern void start_collect_fuc(void);
|
||||||
extern void BLE_send_fuc(void);
|
extern void BLE_send_fuc(void);
|
||||||
|
extern void start_calibration(void);
|
||||||
|
extern void start_clloct(void);
|
||||||
|
extern void stop_clloct(void);
|
||||||
|
extern void set_foot_state(u8 state);
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/*
|
/*
|
||||||
* 模式状态机, 通过start_app()控制状态切换
|
* 模式状态机, 通过start_app()控制状态切换
|
||||||
@ -241,7 +245,7 @@ void le_user_app_event_handler(struct sys_event* event){
|
|||||||
send_data_to_ble_client(&send2_0,5);
|
send_data_to_ble_client(&send2_0,5);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
create_process(&SC7U22_calibration_id,"SC7U22_calibration",NULL,SC7U22_static_calibration,10);
|
start_calibration();
|
||||||
}else if(event->u.app.buffer[4] == 0x02){ //地磁
|
}else if(event->u.app.buffer[4] == 0x02){ //地磁
|
||||||
if(mmc5603nj_init() == 0){
|
if(mmc5603nj_init() == 0){
|
||||||
MMC5603nj_init = 0x20;
|
MMC5603nj_init = 0x20;
|
||||||
@ -265,29 +269,37 @@ void le_user_app_event_handler(struct sys_event* event){
|
|||||||
send_data_to_ble_client(&send2_0,5);
|
send_data_to_ble_client(&send2_0,5);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x01: //数据包类型为:获取指定传感器初始化状态
|
case 0x01: //设置传感器采集对象:左脚or右脚
|
||||||
u8 send2_1[5] = {0xBB,0xBE,0x02,0x00,0x00};
|
u8 send2_1[9] = {0xBB,0xBE,0x06,0x05,0x00,0x00,0x00,0x00,0x00};
|
||||||
if(event->u.app.buffer[4] == 0x01){ //六轴
|
if(event->u.app.buffer[4] == 0x01){ //设定数据来源是左脚
|
||||||
send2_1[4] = SC7U22_init;
|
foot_init = 0x41;
|
||||||
}else if(event->u.app.buffer[4] == 0x02){ //地磁
|
}else if(event->u.app.buffer[4] == 0x02){//设定数据来源是右脚
|
||||||
send2_1[4] = MMC5603nj_init;
|
foot_init = 0x42;
|
||||||
}else if(event->u.app.buffer[4] == 0x03){ //气压计
|
|
||||||
send2_1[4] = BMP280_init;
|
|
||||||
}
|
}
|
||||||
send_data_to_ble_client(&send2_1,5);
|
send2_1[4] = foot_init;
|
||||||
|
send_data_to_ble_client(&send2_1,9);
|
||||||
break;
|
break;
|
||||||
case 0x02: //开始/停止滑雪计算
|
case 0x02: //数据包类型为:获取指定传感器初始化状态
|
||||||
|
u8 send2_2[5] = {0xBB,0xBE,0x02,0x00,0x00};
|
||||||
|
if(event->u.app.buffer[4] == 0x01){ //六轴
|
||||||
|
send2_2[4] = SC7U22_init;
|
||||||
|
}else if(event->u.app.buffer[4] == 0x02){ //地磁
|
||||||
|
send2_2[4] = MMC5603nj_init;
|
||||||
|
}else if(event->u.app.buffer[4] == 0x03){ //气压计
|
||||||
|
send2_2[4] = BMP280_init;
|
||||||
|
}
|
||||||
|
send_data_to_ble_client(&send2_2,5);
|
||||||
|
break;
|
||||||
|
case 0x03: //开始/停止滑雪计算
|
||||||
if(event->u.app.buffer[4] == 0x01){ //开始滑雪计算
|
if(event->u.app.buffer[4] == 0x01){ //开始滑雪计算
|
||||||
if(SC7U22_init == 0x10 || MMC5603nj_init == 0x20 || BMP280_init == 0x30){ //传感器未进行初始化
|
if(SC7U22_init == 0x10 || MMC5603nj_init == 0x20 || BMP280_init == 0x30){ //传感器未进行初始化
|
||||||
u8 send2_2[5] = {0xBB,0xBE,0x02,0x00,0x00};
|
u8 send2_3[5] = {0xBB,0xBE,0x02,0x00,0x00};
|
||||||
send_data_to_ble_client(&send2_2,5);
|
send_data_to_ble_client(&send2_3,5);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
create_process(&start_collect_fuc_id,"start_collect",NULL,start_collect_fuc,10);
|
start_clloct();
|
||||||
create_process(&BLE_send_fuc_id,"BLE_send_fuc",NULL,BLE_send_fuc,1);
|
|
||||||
}else if(event->u.app.buffer[4] == 0x02){ //停止滑雪计算
|
}else if(event->u.app.buffer[4] == 0x02){ //停止滑雪计算
|
||||||
close_process(&start_collect_fuc_id,"start_collect");
|
stop_clloct();
|
||||||
close_process(&BLE_send_fuc_id,"BLE_send_fuc");
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -253,6 +253,7 @@
|
|||||||
_MASK_MEM_BEGIN = ABSOLUTE(0x19fc00);
|
_MASK_MEM_BEGIN = ABSOLUTE(0x19fc00);
|
||||||
_MASK_MEM_SIZE = ABSOLUTE(0x1a4);
|
_MASK_MEM_SIZE = ABSOLUTE(0x1a4);
|
||||||
|
|
||||||
|
|
||||||
EXTERN(
|
EXTERN(
|
||||||
_start
|
_start
|
||||||
|
|
||||||
@ -281,6 +282,7 @@ cvsd_encoder
|
|||||||
|
|
||||||
msbc_encoder
|
msbc_encoder
|
||||||
audio_dac_driver
|
audio_dac_driver
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
UPDATA_SIZE = 0x80;
|
UPDATA_SIZE = 0x80;
|
||||||
@ -416,7 +418,8 @@ SECTIONS
|
|||||||
battery_notify_begin = .;
|
battery_notify_begin = .;
|
||||||
*(.battery_notify)
|
*(.battery_notify)
|
||||||
battery_notify_end = .;
|
battery_notify_end = .;
|
||||||
. = ALIGN(4);
|
|
||||||
|
. = ALIGN(4);
|
||||||
__VERSION_BEGIN = .;
|
__VERSION_BEGIN = .;
|
||||||
KEEP(*(.sys.version))
|
KEEP(*(.sys.version))
|
||||||
__VERSION_END = .;
|
__VERSION_END = .;
|
||||||
@ -506,6 +509,7 @@ SECTIONS
|
|||||||
*(.audio_track_data)
|
*(.audio_track_data)
|
||||||
*(.audio_adc_data)
|
*(.audio_adc_data)
|
||||||
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.data*)
|
*(.data*)
|
||||||
|
|
||||||
@ -714,6 +718,7 @@ SECTIONS
|
|||||||
|
|
||||||
} > ram0
|
} > ram0
|
||||||
|
|
||||||
|
|
||||||
data_code_pc_limit_end = .;
|
data_code_pc_limit_end = .;
|
||||||
__report_overlay_end = .;
|
__report_overlay_end = .;
|
||||||
|
|
||||||
@ -803,6 +808,7 @@ SECTIONS
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.data : ALIGN(4)
|
.data : ALIGN(4)
|
||||||
@ -834,6 +840,7 @@ SECTIONS
|
|||||||
|
|
||||||
UPDATE_CODE_TOTAL_SIZE = update_code_end - update_code_start;
|
UPDATE_CODE_TOTAL_SIZE = update_code_end - update_code_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.data : ALIGN(4)
|
.data : ALIGN(4)
|
||||||
@ -936,6 +943,7 @@ BTSTACK_LE_HOST_MESH_RAM_TOTAL = BTSTACK_LE_HOST_MESH_DATA_SIZE + BTSTACK_LE_HOS
|
|||||||
BTSTACK_LE_HOST_MESH_FLASH_TOTAL = BTSTACK_LE_HOST_MESH_CODE_SIZE;
|
BTSTACK_LE_HOST_MESH_FLASH_TOTAL = BTSTACK_LE_HOST_MESH_CODE_SIZE;
|
||||||
|
|
||||||
BTSTACK_CODE_SIZE = (btstack_code_end - btstack_code_start) + (btstack_data_end - btstack_data_start);
|
BTSTACK_CODE_SIZE = (btstack_code_end - btstack_code_start) + (btstack_data_end - btstack_data_start);
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.data : ALIGN(4)
|
.data : ALIGN(4)
|
||||||
@ -1229,6 +1237,7 @@ SECTIONS
|
|||||||
*(.os_code)
|
*(.os_code)
|
||||||
} > ram0
|
} > ram0
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.data : ALIGN(4)
|
.data : ALIGN(4)
|
||||||
@ -1438,6 +1447,7 @@ SECTIONS
|
|||||||
BTCTLER_RAM_TOTAL = (btctler_data_end - btctler_data_start) + (btctler_bss_end - btctler_bss_start);
|
BTCTLER_RAM_TOTAL = (btctler_data_end - btctler_data_start) + (btctler_bss_end - btctler_bss_start);
|
||||||
BTCTLER_CODE_TOTAL = (btctler_code_end - btctler_code_start);
|
BTCTLER_CODE_TOTAL = (btctler_code_end - btctler_code_start);
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.data : ALIGN(4)
|
.data : ALIGN(4)
|
||||||
@ -1555,7 +1565,8 @@ SECTIONS
|
|||||||
*(.timer.text.cache.L1)
|
*(.timer.text.cache.L1)
|
||||||
*(.gpio.text.cache.L1)
|
*(.gpio.text.cache.L1)
|
||||||
*(.iic_hw.text.cache.L1)
|
*(.iic_hw.text.cache.L1)
|
||||||
driver_data_code_end = .;
|
|
||||||
|
driver_data_code_end = .;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} > ram0
|
} > ram0
|
||||||
|
|
||||||
@ -1565,6 +1576,7 @@ SECTIONS
|
|||||||
DRIVER_DATA_CODE_TOTAL = (driver_data_code_end - driver_data_code_start);
|
DRIVER_DATA_CODE_TOTAL = (driver_data_code_end - driver_data_code_start);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.data : ALIGN(4)
|
.data : ALIGN(4)
|
||||||
@ -2004,6 +2016,7 @@ SECTIONS
|
|||||||
} > ram0
|
} > ram0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
text_begin = ADDR(.text);
|
text_begin = ADDR(.text);
|
||||||
text_size = SIZEOF(.text);
|
text_size = SIZEOF(.text);
|
||||||
text_end = text_begin + text_size;
|
text_end = text_begin + text_size;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1702,6 +1702,7 @@ objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_upd
|
|||||||
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,get_curr_device_type,l
|
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,get_curr_device_type,l
|
||||||
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,rcsp_update_loader_download_init,l
|
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,rcsp_update_loader_download_init,l
|
||||||
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,update_mode_api_v2,l
|
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,update_mode_api_v2,l
|
||||||
|
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,clk_set,l
|
||||||
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,bt_set_low_latency_mode,l
|
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,bt_set_low_latency_mode,l
|
||||||
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,JL_CMD_response_send,l
|
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,JL_CMD_response_send,l
|
||||||
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,check_le_pakcet_sent_finish_flag,l
|
-r=objs/apps/common/third_party_profile/jieli/JL_rcsp/rcsp_updata/rcsp_adv_user_update.c.o,check_le_pakcet_sent_finish_flag,l
|
||||||
@ -5752,12 +5753,11 @@ objs/apps/earphone/xtell_Sensor/xtell_handler.c.o
|
|||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,i2c_scanner_probe,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,i2c_scanner_probe,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,send_data_to_ble_client,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,send_data_to_ble_client,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,SL_SC7U22_Config,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,SL_SC7U22_Config,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,SC7U22_static_calibration,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,start_calibration,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,mmc5603nj_init,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,mmc5603nj_init,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,bmp280_init,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,bmp280_init,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,start_collect_fuc,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,start_clloct,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,BLE_send_fuc,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,stop_clloct,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,close_process,l
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,printf,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,printf,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,clk_set,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,clk_set,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,clk_get,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,clk_get,l
|
||||||
@ -5802,22 +5802,23 @@ objs/apps/earphone/xtell_Sensor/xtell_handler.c.o
|
|||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,SC7U22_init,pl
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,SC7U22_init,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,MMC5603nj_init,pl
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,MMC5603nj_init,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,BMP280_init,pl
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,BMP280_init,pl
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,foot_init,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,gsensor_test_id,pl
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,gsensor_test_id,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,SC7U22_calibration_id,pl
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,start_collect_fuc_id,pl
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,BLE_send_fuc_id,pl
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,app_var,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,app_var,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,init_ok,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,init_ok,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,config_btctler_mode,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,config_btctler_mode,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,sniff_out,l
|
-r=objs/apps/earphone/xtell_Sensor/xtell_handler.c.o,sniff_out,l
|
||||||
objs/apps/earphone/xtell_Sensor/send_data.c.o
|
objs/apps/earphone/xtell_Sensor/send_data.c.o
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,reset_ms_timer,pl
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,sys_timer_get_ms,l
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,printf,l
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,get_ms_timer,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SC7U22_static_calibration,pl
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SC7U22_static_calibration,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,set_SC7U22_Error_Flag,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,set_SC7U22_Error_Flag,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SL_SC7U22_RawData_Read,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SL_SC7U22_RawData_Read,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,Q_SL_SC7U22_Angle_Output,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,Q_SL_SC7U22_Angle_Output,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,close_process,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,close_process,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,send_data_to_ble_client,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,send_data_to_ble_client,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,printf,l
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,start_collect_fuc,pl
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,start_collect_fuc,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,mmc5603nj_read_origin_data,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,mmc5603nj_read_origin_data,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,bmp280_read_originanl_data,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,bmp280_read_originanl_data,l
|
||||||
@ -5827,16 +5828,20 @@ objs/apps/earphone/xtell_Sensor/send_data.c.o
|
|||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,BLE_send_fuc,pl
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,BLE_send_fuc,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,circle_buffer_is_empty,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,circle_buffer_is_empty,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,circle_buffer_read,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,circle_buffer_read,l
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,start_calibration,pl
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,create_process,l
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,start_clloct,pl
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,stop_clloct,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,xtell_task_create,pl
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,xtell_task_create,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,hw_iic_init,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,hw_iic_init,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,circle_buffer_init,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,circle_buffer_init,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,bmp280_test,pl
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,bmp280_test,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,gsensor_test,pl
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,gsensor_test,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,rtc_init,l
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,write_sys_time,l
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,read_sys_time,l
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SC7U22_init,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SC7U22_init,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SC7U22_calibration_id,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SC7U22_calibration_id,pl
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,foot_init,l
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,start_collect_fuc_id,pl
|
||||||
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,BLE_send_fuc_id,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,BLE_send_data,pl
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,BLE_send_data,pl
|
||||||
objs/apps/earphone/xtell_Sensor/buffer/circle_buffer.c.o
|
objs/apps/earphone/xtell_Sensor/buffer/circle_buffer.c.o
|
||||||
-r=objs/apps/earphone/xtell_Sensor/buffer/circle_buffer.c.o,circle_buffer_init,pl
|
-r=objs/apps/earphone/xtell_Sensor/buffer/circle_buffer.c.o,circle_buffer_init,pl
|
||||||
|
|||||||
274836
cpu/br28/tools/sdk.lst
274836
cpu/br28/tools/sdk.lst
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -146,4 +146,5 @@ objs/apps/earphone/xtell_Sensor/send_data.c.o: \
|
|||||||
apps/earphone/xtell_Sensor/calculate/../xtell.h \
|
apps/earphone/xtell_Sensor/calculate/../xtell.h \
|
||||||
apps/earphone/xtell_Sensor/./ano/ano_protocol.h \
|
apps/earphone/xtell_Sensor/./ano/ano_protocol.h \
|
||||||
apps/earphone/xtell_Sensor/./sensor/BMP280.h \
|
apps/earphone/xtell_Sensor/./sensor/BMP280.h \
|
||||||
apps/earphone/xtell_Sensor/./sensor/AK8963.h
|
apps/earphone/xtell_Sensor/./sensor/AK8963.h \
|
||||||
|
apps/common/third_party_profile/jieli/JL_rcsp/adv_app_setting\adv_time_stamp_setting.h
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user