Hi,
Is there any limitations in the application examples (APP_LOG) provided with the STM32WL regarding printing %lu or %llu? I am using STM32CUBEIDE - with "Runtime library: "Standard C" ticked off.."inttypes.h" included...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-25 5:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-25 11:51 PM
In the "newlib" runtime library provided with CubeIDE, uint32_t is defined as unsigned long (though unsigned int is actually the same thing).
So format %lu should be used to print uint32_t (and unsigned long), and %u to print unsigned int.
64-bit integers (%llu) are NOT supported by the "minimal" variant of the library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-26 12:01 AM
Thanks for the input @Pavel A. !
I am using the "Standard C" as runtime library not the "Reduced C".
Tried both %lu for 32bit and %llu / "%"PRIu64 without any success,,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-26 10:34 AM
Cannot confirm... %lu works for me.
