CubeMonitor doesn't understand 'bool' types
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-18 5:20 PM
Trying to monitor a 'C' variable of type bool results in the error
not connected ! bad parameter (7)
and the probe connection drops. It then comes back all on its own!!
Changing the variable to any other type and the monitor runs fine.
Solved! Go to Solution.
- Labels:
-
STM32CubeMonitor
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-27 6:32 AM
No update since a while, closing the post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-20 6:39 AM
Dear frackers,
Did you define your own bool type or did you use
#include <stdbool.h>
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-05 8:03 AM
I have the same issue, all bool values appear as undefined type. I'm including <stdbool.h>.
CubeMonitor does not seem to convert GCC's _Bool to uint8_t.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-05 10:29 AM
Dear NPaqu.1,
Sorry for the inconvenience, but unfortunately the bool type from <stdbool.h> is not supported for the time being. This is definitively something we will consider in an upcoming release.
Meanwhile, you can define your own bool type like this :
typedef enum { false, true } bool;
or even like this :
typedef int bool;
#define true 1
#define false 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-27 6:32 AM
No update since a while, closing the post.
