I forgot that my firmware was not run directly upon startup, it is launched by a custom bootloader. It's been there for so long that I completely forgot about it. And the one who wrote the bootloader (which uses ChibiOS too) configured the RTC to use the LSI clock.
Don't worry, we all do, and there's nobody excluded, make "stupid" mistakes. That's actually making things even still for experts interesting. Glad to her that you got it working now, enjoy the hacking!
Hi Laurent, 1) Please mark this topic as [SOLVED]. 2) Tectu is correct. We spent our time trying to solve problem and we interested a lot in solution. Even there is not Chibios problem we want to know where problem may come from. Do not be lazy (or confused) to explain where problem exactly was.
Go to your first post, click the 'edit' button and then edit the Subject.
And just a small example: I spend 10 and a half hour one saturday, ending up in a stupid problem... I wrote some new board files. I took an existing one as a template since it's only slightly different. Everything worked great, I copied it, edited it and included the new board.mk correctly. However, As I found out after what painful amount of time, I didn't edit the board.mk content. Therefore, I did include the correct Makefile, but the paths in that Makefile still referred to the old board.