11
iap/iap.c
11
iap/iap.c
@@ -395,11 +395,11 @@ static int _iap_entry(rt_bool_t is_boot)
|
||||
_response_cmd(IAP_V5_CMD_ONE_REPLY);
|
||||
|
||||
rt_thread_mdelay(200);
|
||||
if (!iap_v5_req_char(console_dev, &_wait, 'c', 1000))
|
||||
{
|
||||
err = RT_ENOSYS;
|
||||
goto _exit;
|
||||
}
|
||||
// if (!iap_v5_req_char(console_dev, &_wait, 'c', 1000))
|
||||
// {
|
||||
// err = RT_ENOSYS;
|
||||
// goto _exit;
|
||||
// }
|
||||
|
||||
_response_cmd(IAP_V5_CMD_C_REPLY);
|
||||
|
||||
@@ -410,6 +410,7 @@ static int _iap_entry(rt_bool_t is_boot)
|
||||
rt_kprintf("rt_malloc failed\n");
|
||||
goto _exit;
|
||||
}
|
||||
ctx->parent.v5_iap_adapt = RT_TRUE;
|
||||
|
||||
ctx->flash = fal_partition_find(IapAppAddr? IAP_FLASH_BOOT_SEC: IAP_FLASH_APP_SEC);
|
||||
if (ctx->flash == RT_NULL)
|
||||
|
Reference in New Issue
Block a user