2024-03-31 09:07 PM
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.
Solved! Go to Solution.
2024-07-15 03:44 AM
Hello,
Issue fixed in STM32CubeProgrammer v2.17
Aziz
2024-04-25 07:57 AM - edited 2024-04-25 08:00 AM
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
2024-07-15 03:44 AM
Hello,
Issue fixed in STM32CubeProgrammer v2.17
Aziz