I am trying to compile the example with GNU arm eabi gcc
: and I got this from the compiler:
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
I have then added -DSTM32F10X_MD
to the command line because I believe, maybe incorrectly that's what the BluePill is and then I got this:
#error "Please select first the STM32 EVAL board to be used (in stm32_eval.h)"
It took me a while of search to realize that EVAL means one of the evaluation boards ST sells to test their products, but I of course do not have one, I have a cheap bluepill from Aliexpress. So what is my choice now? How do I compile the examples?
Update: here is my complete command line
arm-none-eabi-gcc -DSTM32F10X_MD main.c -I/home/me/st/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x -I/home/me/st/Libraries/CMSIS/CM3/CoreSupport -I/home/me/st/Utilities/STM32_EVAL -Wfatal-errors