Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ:AD14N / AC104N V1.2.1 SDK如何在OTA设备升级过程中保持IO状态? #87

Open
KKyer opened this issue Jun 1, 2022 · 0 comments

Comments

@KKyer
Copy link

KKyer commented Jun 1, 2022

一、简介

原始SDK在OTA设备升级时,I/O口会复位到默认状态,不会保持住升级前的状态。如果需要保持I/O状态,需要下载补丁,修改相应文件。

补丁下载地址:ad140-release_v1.2.1_ota_keep_io_status.zip

二、涉及的SDK版本

AD14N

  • ad140-release_v1.2.1

AC104N

  • ac104n-release_v1.2.1

三、操作步骤

  1. 替换 include_lib\liba\sh54\update_lib.a
  2. 替换下载目录里的 ota.binota_debug.bin
  3. app_config.c 添加配置变量:
//设备升级时,是否保持住io的状态, 0:不保持   1:保持
const u8 dev_update_keep_io_status = 0;

图片

  1. include_lib\update\update.h 替换结构体定义:
struct UPDATA_EXT_PARM {
    char sd_port;
    u32 sd_speed;
    u32 porta_die_dir;
    u32 porta_pu_pd;
    u32 porta_out_dieh;
    u32 portb_die_dir;
    u32 portb_pu_pd;
    u32 portb_out_dieh;
};

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant