cancel
Showing results for 
Search instead for 
Did you mean: 

SBSFU 2.7.0 , unable to load firmware with YMODEM in linux (minicom)

Javier1
Principal

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

YMODEM.gif

 

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

Javier1_1-1747913729196.png

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: 

Javier1_4-1747914008265.png

 

full update, it says incomplete:

Javier1_5-1747914071661.png

 

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 ========== 

 

hit me up in https://www.linkedin.com/in/javiermu%C3%B1oz/
4 REPLIES 4
Javier1
Principal

Same if i use picocom with lrzsz library

Javier1_0-1747914639912.png

 

hit me up in https://www.linkedin.com/in/javiermu%C3%B1oz/

What if using other terminal progs , like :

 PuTTY

see ->

https://alternativeto.net/software/tera-term/?platform=linux

 

If you feel a post has answered your question, please click "Accept as Solution".

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


hit me up in https://www.linkedin.com/in/javiermu%C3%B1oz/
Javier1
Principal

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

 

hit me up in https://www.linkedin.com/in/javiermu%C3%B1oz/