Skip to main content
ADiet.1
Associate III
March 15, 2023
Solved

Bug in command line tool or GUI version?

  • March 15, 2023
  • 3 replies
  • 1907 views

I am using the GUI version and the command line tool to work with a device, but one of these tools has a bug. Checking which bank is use to boot from I get clearly contradictory results. See screenshot. Which tool tells me the bank used to boot from?

CLI: 2.13.0

GUI: 2.12.0 (update not possible; that will be yet another bug report...)

This topic has been closed for replies.
Best answer by Aziz BRIGUI

Hello @ADiet.1​,

To know where the MCU is booting from, you can check the Program Counter (PC) under MCU Core tab in GUI or by using the following CLI :

>STM32_Programmer_CLI -c port=SWD -coreReg PC

As for the bug you're seeing, could you please clarify your request further ? Steps to reproduce and sharing logs can go a long way.

Thanks,

Aziz

3 replies

Aziz BRIGUI
Aziz BRIGUIBest answer
Technical Moderator
March 16, 2023

Hello @ADiet.1​,

To know where the MCU is booting from, you can check the Program Counter (PC) under MCU Core tab in GUI or by using the following CLI :

>STM32_Programmer_CLI -c port=SWD -coreReg PC

As for the bug you're seeing, could you please clarify your request further ? Steps to reproduce and sharing logs can go a long way.

Thanks,

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.
ADiet.1
ADiet.1Author
Associate III
March 17, 2023

Oh sorry, I posted the wrong screenshot. I changed the screenshot which shows the output of the CLI and the GUI together. As you can see it shows contradictory results.

Also, what is a "program counter"?

Tesla DeLorean
Guru
March 17, 2023

The Program Counter is an MCU register that points to the machine code instruction it is currently executing.

It will give a hint as to what's going on internally. ​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Aziz BRIGUI
Technical Moderator
March 23, 2023

Hello @ADiet.1​,

From my side for the same Option Bytes configuration.

Using 2.12.0 : 

0693W00000aJYWmQAO.pngUsing 2.13.0 :

0693W00000aJYX1QAO.png 

There must be a reason behind us having different results. So to debug the situation further, I need to know if :

- You aren't modifying Options Bytes via GUI without hitting apply.

- You aren't modifying Option Bytes via your application (this shouldn't be an issue when using the same connection mode, but just to be sure).

If you can reproduce this with the flash erased. Could you share a screen recording where you : 

1- Blank check the flash, you can use :

>STM32_Programmer_CLI -c port=SWD -blankcheck

2- Display your Option Bytes configuration (v2.13.0) : 

>STM32_Programmer_CLI -c port=SWD -ob displ

3- Connect and show your option bytes configuration via GUI (v2.12.0).

I know this is too much to ask, but since I can't reproduce your issue from my side, this is the only way to confirm it. 

Thanks,

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.