2024-01-30 01:28 PM
2024-11-01 05:19 PM
I don't have any issues with enabling RTC_OUT2; my problem is using it as an output when I'm not using it as an RTC output. I don't understand you at all - earlier you said you use your own library because LL is buggy, but now you're providing code with LL. How is this related to the problem? Let me repeat: when the RTC domain is enabled, PA4 stops working as an output but continues to work as both digital and analog input. There's no mention of this in the reference manual, and this is a serious issue, isn't it? Regarding the alternate function - I quoted ST's documentation. If it works without it, that doesn't mean it's correct. During development, we must strictly follow the documentation rather than the "it works anyway" principle, don't you think?
2024-11-02 03:18 AM
It is right that I said RTC LL library is buggy. I mean the whole RTC library is useless and has serious issues. But RTC_OUTx related functions are OK.
we must strictly follow the documentation rather than the "it works anyway" principle
Your expectation for ST documentations is too high. From what I read, their documentations are mixing with various older STM32 series and not updated to the new designs. The same peripherals in different series may work differently and they never refresh them in datasheets!
STM32 is good. But their documentations are totally garbage. LL and HAL libraries never has official documentations. They just use tools to give you header summary which are machine generated junks. Unlike Nordic, their documentations are really pretty and well formatted.
No need to say, STM32CubeIDE has serious bugs exists for years and they never fix them.
These are what ST offer. Use it or drop it.