Page 1 of 1

STM32F042 registry wrongly showing missing USART2

Posted: Wed Jul 29, 2015 4:58 am
by ulikoehler
Hi,
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                    FALSE

under 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                    TRUE


Best regards, Uli

Re: STM32F042 registry wrongly showing missing USART2

Posted: Wed Jul 29, 2015 7:44 am
by Giovanni
Hi,

Thanks fixing.

Giovanni