2023-05-01 10:18 AM - edited 2023-11-20 06:44 AM
Hello guys I hope you can help me with my problem regarding my adaptation of sbsfu.
I'm currently adapting the stm32f413h-discovery example project on a stm32429zi. Everything works fine with one mayor exeption. I have difficulty downloading a new firmware version via Y-Modem. Everytime I want to downlaod a newer version (e.g. changed version nr. in postbuild.bat and in userapp.c) the download crashes and I get the following output via terminal. (all securities where off during testing)
I can however download the firmware successfully when holding the userbutton on a reset like it is mentioned in um2262 chapter 8.4.
I have tested this with multiple version numbers, all have worked.
I also tried activating securities and then using the user button, but in this case a button bush is considered a "Tampering fault".
I have also figured out that both methods (download in sbsfu and download in userapp) use completly different functions. I'm not familiar enougth with how Y-Modem works to find any helpful differences between those functions that could lead to such an error.
I have listed my hardware and software I'm currently using , hopefully it helps.
Hw & Sw I'm using:
2023-05-02 06:08 AM
Hi @Pascal Seiz,
can you please try getting an older TeraTerm?
I personally use version 3.84. I believe later versions modified their approach to variable block length and that is not supported in the SBSFU implementation of the YMODEM.
If that doesn't help, let us know and we'll try to investigate further.
BR,
J
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-05-08 01:48 PM
Hi @JHOUD thanks for your reply.
I got an older version of TeraTerm, version 4.8.3 because I couldn't find any version with a starting 3. So i guess it was a typo in your last answer.
Well updating a new firmware no more ends suddenly in an error message. Unfortunately I'm stuck at package 2 when trying to transfer a new firmware.
I know the file transfer needs a few seconds after the first package to validate the firmware header, but what suprises me is the following.
The upload is stuck at package 2 but I can see the user led (the default green one) toggles after around 2 seconds after I pressed "send" in teraterm.
The program clearly exited the y-modem receive loop and returned to the main loop where the green user led is toggled.
I have researched some other posts with y-modem difficulties but couldn't find any meaningful similarities.
Can this be caused by misconfigured option bytes or by the validation of the firmware header?
Kind regards,
Pascal
2023-05-08 02:12 PM
Can be related: a similar note about using older Teraterm is in the EMW3080 firmware update appnote. but there the old good version is 4.85; new versions are 4.100+.