STM32 YMODEM reader C implementation

在STM32上进行IAP项目时,作者遇到使用YMODEM通过UART下载固件的问题。AN4767文档中的CRC-16计算错误导致CRC验证失败,且旧文档中的信息已过时。作者计划使用node.js编写JS版本的发送器,以适应MAC平台的下载需求。
摘要由CSDN通过智能技术生成

Summary

Currently I am working on a project about IAP, using uart to download firmware to the other bank on my STM32. 

After reading some online ST docs:

1. AN4767 STM32 on the fly update for dualbank

2. The famous "XMODEM/YMODEM protocol reference" by Chuck Forsberg, 1988

And started to write my own sender, I found problems never mentioned. I do think nowadays' IOT scenario is very similar to the times where internet had just emerged. Low band width, low handling speed of terminals. So I think YModem would be the exactly standards. 

Problems I met

1. AN4767 use 32 bit CRC for CRC-16 calculation

So I will never pass the CRC packet verification in ymodem.c source code.  Will the source code work with any ymodem sender? I tried with minicom, nope!

2. This old doc talk about outdated info only

Ymodem should be simple and consistent. But no. In this doc, CRC algorithm is not the same as the standard XMODEM-CRC online. What a pity.

Things let:

1. I am using node.js for a JS version sender.

It should be used as a means of downloading on MAC.

2. Standard YMOEM today

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值