Skip to main content
Visitor II
April 1, 2024
Solved

obDisplay API crashes

  • April 1, 2024
  • 2 replies
  • 1139 views

Hi,

I'm trying to create a wrapper for STM32CubeProgrammer_API.dll.

The program crashes on trying to use the obDisplay API. I've tried using STM32CubeProgrammer_API.dll versions 2.10 and 2.15. Is there something I'm missing?

Thank you very much.

Best answer by Aziz BRIGUI

Hello,

Issue fixed in STM32CubeProgrammer v2.17

Aziz

2 replies

Aziz BRIGUI
Technical Moderator
April 25, 2024

Hello @sanjaysunil,

I confirm there's an issue with obDisplay() API. It has been reported internally (internal tracking number : 180037).

 

A workaround would be to use this snippet from Example1.cpp to display the option bytes.

 

 

peripheral_C* ob;
ob = initOptionBytesInterface();
if (ob == 0)
{
 disconnect();
 continue;
}
/* Display option bytes */
for (unsigned int i = 0; i < ob->banksNbr; i++)
{
	logMessage(Normal, "OPTION BYTES BANK: %d\n", i);
	for (unsigned int j = 0; j < ob->banks[i]->categoriesNbr; j++)
	{
		logMessage(Title, "\t%s\n", ob->banks[i]->categories[j]);
		for (unsigned int k = 0; k < ob->banks[i]->categories[j]->bitsNbr; k++)
		{
			if (ob->banks[i]->categories[j]->bits[k]->access == 0 || ob->banks[i]->categories[j]->bits[k]->access == 2) {
				logMessage(Normal, "\t\t%s", ob->banks[i]->categories[j]->bits[k]->name);
				logMessage(Info, ": 0x%x\n", ob->banks[i]->categories[j]->bits[k]->bitValue);
			}
		}
	}
}

 

 

 Hope you find this helpful.

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
Aziz BRIGUIBest answer
Technical Moderator
July 15, 2024

Hello,

Issue fixed in STM32CubeProgrammer v2.17

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.