cancel
Showing results for 
Search instead for 
Did you mean: 

When flashing firmware, the characters are garbled

totoro
Associate II

Hi, thank you for having access to this report.

Here is STM32CubeProgrammer's output text.

(0) > STM32_Programmer_CLI --connect port=swd -w .\board\art-pi\projects\applications\build\Debug\applications.elf 0x90000000 -v -el .\board\art-pi\ExternalLoader\ART-Pi_W25Q64.stldr
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.17.0
      -------------------------------------------------------------------

ST-LINK SN  : 066BFF554957886687101038
ST-LINK FW  : V2J42M27
Board       : --
Voltage     : 3.27V
SWD freq    : 4000 KHz
Connect mode: Normal
Reset mode  : Software reset
Device ID   : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M7
BL Version  : 0x91



Warning: Write address is ignored for hex, Srec, s19 and elf files


Memory Programming ...
Opening and parsing file: applications.elf
  File          : applications.elf
  Size          : 996.35 KB
  Address       : 0x90000000


Erasing memory corresponding to segment 0:
Erasing external memory sectors [0 249]
Download in Progress:
��������������������������������������������������� 100%

File download complete
Time elapsed during download operation: 00:00:11.568



Verifying ...


Read progress:
��������������������������������������������������� 100%

Download verified successfully

This works fine, but he doesn't feel very well.

And I tried to use utf-8 encoding format, but it's still garbled.

 

9 REPLIES 9
Aziz BRIGUI
ST Employee

Hello @totoro

I don't think this is a bug since STM32_Programmer_CLI is normally used in cmd shell on Windows or Terminals on MAC or Linux (With the default encoding (IBM850), the progress bar is displayed as expected).

Could you specify what you're using exactly ?

As I see it, this is most certainly a Terminal encoding issue. Could you try the following : 

>chcp 850

 

Let me know if it solves the issue,

Aziz


In order 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.
Aziz BRIGUI
ST Employee

Hello @totoro

Did my previous comment resolve the issue ? If yes, could you please accept the answer as solution so that it could easily be found by other users ?

Thanks in advance,

Aziz


In order 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.

@Aziz BRIGUI wrote:

mark the answer as best


Note that the option now appears as 'Accept as Solution' rather than "best":

AndrewNeil_0-1729696530922.png

https://community.st.com/t5/feedback-forum/need-an-other-tools-section/td-p/734522

Hi @Andrew Neil

Yes, old habit from the old platform.

Comment edited accordingly,

Thanks a lot,

Aziz


In order 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.

Sorry, I forgot to reply, this method cannot solve that problem.123.jpg

I agree with @Aziz BRIGUI - the problem there is the configuration of your terminal: it's not correctly displaying the graphic characters used by CubeProgrammer to display the progress bar.

I think I understand. It may be related to one of my settings.

totoro_0-1729757662716.png

 

So what happens if you change that?

It still does not display the progress bar's graphic characters correctly, but the result is different from before.capture_20241025215202748.jpg