obDisplay API crashes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-31 9: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.
- Labels:
-
STM32L4 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-15 3:44 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-25 7:57 AM - edited ‎2024-04-25 8: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
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-07-15 3:44 AM
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.
