diff --git a/Core/Inc/sys_conf.h b/Core/Inc/sys_conf.h index f10502a..241072d 100644 --- a/Core/Inc/sys_conf.h +++ b/Core/Inc/sys_conf.h @@ -47,12 +47,12 @@ extern "C" { /** * @brief Verbose level for all trace logs */ -#define VERBOSE_LEVEL VLEVEL_M +#define VERBOSE_LEVEL VLEVEL_OFF /** * @brief Enable trace logs */ -#define APP_LOG_ENABLED 1 +#define APP_LOG_ENABLED 0 /** * @brief Activate monitoring (probes) of some internal RF signals for debug purpose @@ -75,7 +75,7 @@ extern "C" { * @brief Enable/Disable MCU Debugger pins (dbg serial wires) * @note by HW serial wires are ON by default, need to put them OFF to save power */ -#define DEBUGGER_ENABLED 1 +#define DEBUGGER_ENABLED 0 /** * @brief Disable Low Power mode diff --git a/STM32CubeIDE/Release/WLE5CC_NODE_STS.bin b/STM32CubeIDE/Release/WLE5CC_NODE_STS.bin index c931136..f295c3e 100644 Binary files a/STM32CubeIDE/Release/WLE5CC_NODE_STS.bin and b/STM32CubeIDE/Release/WLE5CC_NODE_STS.bin differ diff --git a/STM32CubeIDE/Release/WLE5CC_NODE_STS.elf b/STM32CubeIDE/Release/WLE5CC_NODE_STS.elf index f8a4fca..9fea867 100644 Binary files a/STM32CubeIDE/Release/WLE5CC_NODE_STS.elf and b/STM32CubeIDE/Release/WLE5CC_NODE_STS.elf differ diff --git a/STM32CubeIDE/Release/sts_l8_rtm_kwh_accessories_20250619r1.bin b/STM32CubeIDE/Release/sts_l8_rtm_kwh_accessories_20250619r1.bin new file mode 100644 index 0000000..f295c3e Binary files /dev/null and b/STM32CubeIDE/Release/sts_l8_rtm_kwh_accessories_20250619r1.bin differ diff --git a/STS/Core/Src/yunhorn_sts_process.c b/STS/Core/Src/yunhorn_sts_process.c index 521114a..be8e0e4 100644 --- a/STS/Core/Src/yunhorn_sts_process.c +++ b/STS/Core/Src/yunhorn_sts_process.c @@ -543,7 +543,7 @@ void STS_YunhornSTSEventP5_Process(void) } #elif defined(L8) //STS_TOF_VL53L8X_Process(); - printf("\r\n P5 process \r\n"); + //printf("\r\n P5 process \r\n"); STSWakeupScanTimerStop(); STS_TOF_L8_Process(); diff --git a/STS/TOF/App/app_tof.c b/STS/TOF/App/app_tof.c index e45db2c..1bd0b06 100644 --- a/STS/TOF/App/app_tof.c +++ b/STS/TOF/App/app_tof.c @@ -220,7 +220,7 @@ void STS_LMZ_Ambient_Height_Scan_Process(void) if (status != BSP_ERROR_NONE) { - printf("VL53L8A1_RANGING_SENSOR_Start failed\n"); + APP_LOG(TS_OFF, VLEVEL_M, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n"); while (1); } #endif @@ -241,13 +241,15 @@ void STS_LMZ_Ambient_Height_Scan_Process(void) //} else { for (i = 0; i < 64; i++) { - if (i % 8 ==0) APP_LOG(TS_OFF, VLEVEL_H, "\r\n[cm] "); + if (i % 8 ==0) { + APP_LOG(TS_OFF, VLEVEL_H, "\r\n[cm] "); + } //if ((Result.ZoneResult[i].NumberOfTargets > 0)) - { + //{ bg_distance[i] += (uint16_t) Result.ZoneResult[i].Distance[0]; idx[i] ++; APP_LOG(TS_OFF, VLEVEL_H, "|%3d ", Result.ZoneResult[i].Distance[0]/10); - } + //} //else APP_LOG(TS_OFF, VLEVEL_H, "|%3d ", 0); } @@ -424,11 +426,11 @@ void sts_generate_fall_gesture_map(void) #if 0 for (i=0; i<64; i++) { - if (i%8==0) printf("\r\n"); - printf("|%d ", (uint8_t)fhmos_gesture.maskoff[i]); + if (i%8==0) APP_LOG(TS_OFF, VLEVEL_M, "\r\n"); + APP_LOG(TS_OFF, VLEVEL_M, "\r\n|%d ", (uint8_t)fhmos_gesture.maskoff[i]); } for (i=0; i<8; i++) - printf("%02X\r\n",fhmos_gesture_bitmap[i]); + APP_LOG(TS_OFF, VLEVEL_M, "\r\n%02X\r\n",fhmos_gesture_bitmap[i]); #endif sts_fhmos_bitmap_pending = FHMOS_BITMAP_GENERATED; @@ -558,7 +560,7 @@ static void MX_53L8A1_ThresholdDetection_Init(void) if (status != BSP_ERROR_NONE) { - printf("VL53L8A1_RANGING_SENSOR_Init failed\n"); + APP_LOG(TS_OFF, VLEVEL_L, "\r\nVL53L8A1_RANGING_SENSOR_Init failed\n"); //while (1); } APP_LOG(TS_OFF, VLEVEL_M, "\r\n ----------- SERNSOR ID =%4x \r\n", sensor_id); @@ -582,7 +584,7 @@ void MX_53L8A1_ThresholdDetection_ConfigIT(uint32_t low_threshold, uint32_t high if (status != BSP_ERROR_NONE) { - printf("VL53L8A1_RANGING_SENSOR_Start failed\n"); + APP_LOG(TS_OFF, VLEVEL_M, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n"); while (1); } } @@ -625,7 +627,7 @@ static void MX_53L8A1_ThresholdDetection_Process(void) if (status != BSP_ERROR_NONE) { - printf("VL53L8A1_RANGING_SENSOR_Start failed\n"); + APP_LOG(TS_OFF, VLEVEL_L, "\r\nVL53L8A1_RANGING_SENSOR_Start failed\n"); while (1); } #if 0