When flashing firmware, the characters are garbled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-13 9:34 PM
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.
- Labels:
-
Bug-report
-
STM32CubeProgrammer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-09 2:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-23 8:12 AM - edited ‎2024-10-23 8:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-23 8:17 AM
@Aziz BRIGUI wrote:mark the answer as best
Note that the option now appears as 'Accept as Solution' rather than "best":
https://community.st.com/t5/feedback-forum/need-an-other-tools-section/td-p/734522
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-23 8:25 AM - edited ‎2024-10-23 8:26 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-23 7:35 PM
Sorry, I forgot to reply, this method cannot solve that problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-24 1:07 AM
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.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-24 1:14 AM
I think I understand. It may be related to one of my settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-24 1:40 AM
So what happens if you change that?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-25 7:01 AM
It still does not display the progress bar's graphic characters correctly, but the result is different from before.
