2025-05-22 4:41 AM - edited 2025-05-22 6:01 AM
If this thread was not read only i would bring it to life again. @Jocelyn RICARD @EEdwa.1 @Bubbles @Arno1 @Denish_Ribadiya @cyril
After succesfull compiling (NUCLEO-G474RE) SBSFU and uploading UserApp troguh (TERATERM)
\en.x-cube-sbsfu-v2-7-0\STM32CubeExpansion_SBSFU_V2.7.0\Projects\NUCLEO-G474RE\Applications\2_Images
I decided time to do the same in linux, the issue is teraterm doesnt work for linux.
Trying to use minicom:
Adding the simbol for minicom special compilation and recompiling SBSFU
installing minicom
sudo apt install minicom
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
lrzsz
minicom uses by default YMODEM lrzsz implementation
The FW update is VERY SLOW (for only 24K) and ends up with incomplete
half update:
full update, it says incomplete:
and the SBSFU console says FW too big
======================================================================
= (C) COPYRIGHT 2017 STMicroelectronics =
= =
= Secure Boot and Secure Firmware Update =
======================================================================
= [SBOOT] SECURE ENGINE INITIALIZATION SUCCESSFUL
= [SBOOT] STATE: CHECK STATUS ON RESET
INFO: A Reboot has been triggered by a Hardware reset!
= [SBOOT] STATE: CHECK NEW FIRMWARE TO DOWNLOAD
= [SBOOT] STATE: CHECK USER FW STATUS
No valid FW found in the active slots nor new FW to be installed
Waiting for the local download to start...
= [SBOOT] STATE: DOWNLOAD NEW USER FIRMWARE
File> Transfer> YMODEM> Send CCCCC
Fw too big
= [SBOOT] STATE: HANDLE CRITICAL FAILURE
= [SBOOT] STATE: REBOOT STATE MACHINE
========= End of Execution ==========
2025-05-22 4:50 AM - edited 2025-05-22 4:51 AM
Same if i use picocom with lrzsz library
2025-05-22 6:14 AM
What if using other terminal progs , like :
PuTTY
see ->
https://alternativeto.net/software/tera-term/?platform=linux
2025-05-22 6:17 AM - edited 2025-05-22 9:30 AM
im more concern about what i am doing wrong because ST says the code supports miniCom.
ill try putty aswell thanks @AScha.3
Edit, putty (plink) doesnt support YMODEM
2025-05-22 9:28 AM - edited 2025-05-22 9:31 AM
im trying again with my raspi forcing YMODE to use 1k block size
console1 opens the serial port:
minicom -b 115200 -D /dev/ttyACM0
console2 uses the opened serial port:
sz -k --ymodem /media/greenUSB/UserApp.sfb > /dev/ttyACM0 < /dev/ttyACM0
result: are those garbage ACK errors?
Sending: UserApp.sfb
Ymodem sectors/kbytes sent: 1/ 0kRetry 0: NAK on sector
Retry 0: Got 49 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 41 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 4e for sector ACK
Retry 0: NAK on sector
Retry 0: Got 68 for sector ACK
Retry 0: NAK on sector
Retry 0: NAK on sector
Retry 0: Got 4f for sector ACK
Retry 0: NAK on sector
Retry 0: Got 55 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 53 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 48 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 53 for sector ACK
Retry 0: NAK on sector
Retry 0: Retry Count Exceeded
Transfer incomplete