Thanks for your help.The problem has been solved.The Macro Statement has been set in Keil Setting part.
At 2022-03-01 04:30:23, "ST Community" wrote:
@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
Pavel A. (Community Member)
@LZhen.5 (Community Member) 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
or reply to this email
Replying to
LZhen.5 (Community Member) asked a question.
Sunday, February 27, 2022 11:27 PM
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 ?
Pavel A. (Community Member)
@LZhen.5 (Community Member) 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
Monday, February 28, 2022 12:30 PM
You're receiving emails when someone "Mentions me in a comment."
To change or turn off ST Community email, log in as lzstry@163.com.st.
STMicroelectronics N.V.