I just noticed a possible bug in the STM32F0 registry.
At line 840, stm32_registry.h (current git master) defined
Code: Select all
#define STM32_HAS_USART2 FALSEunder the condition
Code: Select all
#elif defined(STM32F042x6)However, from the datasheet http://www.st.com/web/en/resource/technical/document/datasheet/DM00105814.pdf it is clearly visible that the STM32F042x family always has two USARTs (without any exceptions).
I therefore suggest to change line 840 to
Code: Select all
#define STM32_HAS_USART2 TRUEBest regards, Uli