2022-02-27 11:27 PM
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
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?
2022-02-28 03:33 AM
2022-02-28 03:40 AM
2022-02-28 03:44 AM
Is the selection below can instead of the "# define STM32F40_41xxx" Macro?
2022-02-28 03:50 AM
Mr. KnarfB,thank you for your reply. excuse me ,do you speak Chinese, because my English is poor.
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
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
2022-03-02 12:24 PM