havenxie / stm32-iap-uart-boot Goto Github PK
View Code? Open in Web Editor NEWSTM32 IAP(UART模式)的BOOT部分
STM32 IAP(UART模式)的BOOT部分
目前看代码,有点疑惑,目前想在h7上移植下:
1.上位机在发送SOT后,bootloader端会发送ACK,但是看上位机并没有处理该回执,然后上位机再次发送closingpacket,bootloader接收然后处理成功后发送ACk并且退出;是不是上位机应该在SOT后处理一次ACK
2.bootloader处理filesize时为什么是判定空格符呢,我看上位机填充的结束符是0
for (i = 0, file_ptr ++; (*file_ptr != ' ') && (i < FILE_SIZE_LENGTH);)
{
3.bootloader在接收packet出错时,应该直接发送nack之类的直接结束下载吧,为啥是统计error呢,下载出错还继续下载流程,不太理解设计初衷是什么
default://error check yang:maybe poor,should abort directly
if (session_begin > 0)
{
errors ++;
}
if (errors > MAX_ERRORS)
{
Send_Byte(CA);
Send_Byte(CA);
return 0;
}
Send_Byte(CRC16);//send crcֵ
break;
能否解答下
我的板子一直以来USART BOOT模式进不了,显示init device fail , 感觉是ST 出厂 SP Bootloader有问题,用Jlink Dump 0x0-0x7FFFFFF 内容是空的,所以想试下其它boot loader,用FLASH ROM启动,
现在下载了你的这个BOOT,烧进去后,模式BOOT0 =0, 用串口得到的是乱码,
请问是怎么回事?谢谢
[11:49:26.517] *y絢鮹齟=-#縠5#�刊S繜肟��7=�5咫�'!=7咫�=�5咫5#�咫�#=��咫
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.