Does the STM32F413 use the LSE generation 1 or 2?
The document AN2867 (Oscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs) defines to groups for the F4 series: F4_g1 and F4_g2. There is a list with the controllers for each group, but the STM32F413 is not mentioned.