Skip to content

Commit 109b943

Browse files
committed
Add BOOT_LOG_INF to check unsecure OTA flow
1 parent ac127bb commit 109b943

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/target.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,11 @@ int target_init(void) {
251251
storageType storage_type = (storageType)RTCGetBKPRegister(RTC_BKP_DR1);
252252
uint32_t offset = RTCGetBKPRegister(RTC_BKP_DR2);
253253
uint32_t update_size = RTCGetBKPRegister(RTC_BKP_DR3);
254-
BOOT_LOG_DBG("Try OTA 0x%x, 0x%x, 0x%x", storage_type, offset, update_size);
254+
BOOT_LOG_INF("Start OTA 0x%X 0x%X 0x%X", storage_type, offset, update_size);
255255
int ota_result = tryOTA(storage_type, offset, update_size);
256256
if (ota_result == 0) {
257257
// clean reboot with success flag
258+
BOOT_LOG_INF("Sketch updated");
258259
RTCSetBKPRegister(RTC_BKP_DR0, 0);
259260
HAL_FLASH_Lock();
260261
// wait for external reboot (watchdog)

0 commit comments

Comments
 (0)