导航

    Freqchip开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    1. 主页
    2. gianfyu
    G
    • 继续与 gianfyu 聊天
    • 开始与 gianfyu 的新会话
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 主题
    • 帖子
    • 最佳
    • 群组

    gianfyu

    @gianfyu

    0
    声望
    4
    帖子
    200
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    gianfyu 关注

    gianfyu 发布的帖子

    • OTA UART flashing irreversible error

      we are currently testing BLE chip FR8000 FW update procedures over UART, and we got a situation that we think requires further analysis.

      we downloaded over UART a new FW version in the chip and commanded reboot but after reboot the BLE chip does not work anymore meaning that the new FW does not start and we cannot erase or program anymore the chip using SWD interface.

      probably we did some error in the UART update procedure (is under development), but the serious problem is that, from that moment, the chip can't be re-flashed with a valid FW even using the SWD interface.

      when using JFlash we successfully connect to the device it's ok but sending Erase chip command we got errors or sending Erase sector we got errors also trying to Program the device results in errors.
      During JFlash SWD operation, the FR8000 chip seems to reset itself several times.

      Considering this problem from a general perspective, an error during FW transfer over UART is always possible and there should be a way to recover this situation by starting a new FW download over UART.

      From FW upload documentation is seems that the new FW is copied in an alternative flash bank and only after checking CRC consistency the new FW is applied at reboot.
      Is that statement, correct?
      3_1781359445506_connect.png 2_1781359445506_erase chip.png 1_1781359445506_erase sector.png 0_1781359445505_programming.png
      which is the root cause of the situation we generated with our UART FW update attempt?

      Thank You for your support

      发布在 FR800x
      G
      gianfyu
    • RE: OTA uart FW UPGRADE with AT+cmd?

      Thanks. The attached example does not include AT command handling.
      Starting from the ble_at example from the SDK, is there a complete example that also includes OTA UART?

      发布在 FR800x
      G
      gianfyu
    • OTA uart FW UPGRADE with AT+cmd?

      I need to implement the OTA firmware update via UART and with AT commands.
      The FR800X_sdk1.2_43ed3f4 SDK contains an example for AT commands, and evt.event_id = AT_RECV_UPGRADE_DATA is also provided.

      The procedure begins with AT+MODE:U
      at_ota_init(); --> missing api
      chk_ret = check_whole_pkt_in_upgrade_mode(); --> missing api
      but the code is not complete.

      firmware upgrade process is expected while receiving from uart:
      app_at_recv_c
      if(gAT_ctrl_env.upgrade_start == true)
      gAT_env.upgrade_data_processing == 0

      Where can I find the complete code and manual?

      发布在 FR800x
      G
      gianfyu