Now I am using STM32F407ZGT6,In all files ,I cann't find "# define STM32F40_41xxx",but in many places ,it need to use "#if defined (STM32F40_41xxx)" as MACRO .Why ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-27 11:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-27 11:54 PM
What compiler / IDE? Did you generate the code?
The MCU type like STM32F40_41xxx is defined in the complier command line, not in the source code.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-28 03:29 AM
I use Keil5 and J-link platform,the programme can run normally,I'm learning the rules about the MCU now.according my understanding,the "#define STM32F40_41xxx" Macro must be writed in a head file(.h file),why is not there in whole project files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-28 03:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-28 03:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-28 03:44 AM
Is the selection below can instead of the "# define STM32F40_41xxx" Macro?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-28 03:50 AM
Mr. KnarfB,thank you for your reply. excuse me ,do you speak Chinese, because my English is poor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-28 10:38 AM
I don't use Keil, but maybe this is the information you are looking for https://www.keil.com/support/man/docs/uv4/uv4_dg_adscc.htm
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-28 12:30 PM
@LZhen.5​ Are you sure that this macro is defined? If you cannot find where it is defined, perhaps it simply is not. Try this:
#ifndef STM32F40_41xxx
#error
#endif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-02 12:24 PM
