We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前看代码,有点疑惑,目前想在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;
能否解答下
The text was updated successfully, but these errors were encountered:
No branches or pull requests
目前看代码,有点疑惑,目前想在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;
能否解答下
The text was updated successfully, but these errors were encountered: