with fpc 3.3.1 and laz 2.3.0 I could get a successful compile using -WpSTM32F103C8 but nothing else:
After installing the latest FPC 3.3.1 for ARM using fpcupdeluxe, I get the following error when specifying
-WpSTM32F103C8:
Error: Illegal parameter: -WpSTM32F103C8Changing to
-WpSTM32F103X8 proceeds further, but then the compiler complains about:
timer_blink.lpr(19,24) Error: Identifier not found "GPIOC"This makes sense because looking in unit stm32f10x_md.pp shows no GPIOC variable, but rather a likely PortC variable. I don't use ARM, so all I can say is that I cannot compile the wiki example either. One problem is that your compiler accepts -WpSTM32F103C8 as valid, while mine doesn't. Looking at the supported controllers listed by ppcrossarm does not show STM32F103C8:
~/fpcupdeluxe/working/fpc/bin/x86_64-linux$ ./ppcrossarm -i | grep F103
STM32F102X8,STM32F102XB,STM32F103X4,STM32F103X6,STM32F103X8,STM32F103XB,
STM32F103XC,STM32F103XD,STM32F103XE,STM32F103XF,STM32F103XG,STM32F107X8,Can you please enable "Show everything (-va)" under your project's Verbosity setting in Lazarus, rebuild the timer example and attach the full compiler output to a reply. Perhaps this will reveal something interesting.
I was hoping that one of the more experienced ARM users would have commented by now...