Dear friend: I've been working with the STM32CubeIDE V1.8.0 ( I've continued working with this version because I found some problems and, with your help it worked well) . I downloaded this week the v. 1.12.1 and I had a problem: In the older version, I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-29 4:55 AM
define the global variables inside a variables.h file, and was possible to use within several procedures (*.c) only informing with #define "variables.h". In this version it isn't possible.
How can I declare the global variables ?
Thank you for your attention,
Best regards, Ilson
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-29 8:46 AM
Use extern definitions in the include file and define them ONCE in a SINGULAR .C file​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-29 8:34 AM - edited ‎2023-11-20 4:27 AM
Hello. I think the change in GCC 10 to put -fno-common as default is causing your problems. CubeIDE 1.9.0 was first to use GCC 10 as default toolchain.
Try to add -fcommon flag to C/C++ miscellanous options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-29 8:46 AM
Use extern definitions in the include file and define them ONCE in a SINGULAR .C file​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-29 9:37 AM
Thank you for your fast response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-29 9:38 AM
Thank you for you attention. I'll see this suggestion.
