
Contents AN5044
2/32 DocID030752 Rev 2
Contents
1 STM32 SPL vs. STM32Cube LL architecture overview . . . . . . . . . . . . . 5
1.1 STM32 SPL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1.2 Inclusion Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 STM32Cube Low Layer drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2.2 Inclusion model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2.3 APIs definition levels and classification . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.3 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2 STM32 SPL to STM32Cube LL manual migration . . . . . . . . . . . . . . . . 14
2.1 STM32 SPL and STM32Cube LL APIs equivalence . . . . . . . . . . . . . . . . 14
2.1.1 NVIC interrupt configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.1.2 Peripheral drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.1.3 Migration cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.2 Project creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3 STM32 SPL to STM32Cube LL automatic migration . . . . . . . . . . . . . . 20
3.1 SPL2LL-Converter migration tool specifications . . . . . . . . . . . . . . . . . . . 20
3.1.1 Overview and features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.1.2 SPL2LL-Converter migration tool block diagram . . . . . . . . . . . . . . . . . . 22
3.2 SPL2LL-Converter migration tool usage guidelines . . . . . . . . . . . . . . . . . 23
3.2.1 Migration tool package architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.2.2 SPL2LL-Converter migration tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.2.3 User application migration steps with initial application environment . . 27
3.2.4 User application migration steps using available LL templates . . . . . . . 28
3.2.5 SPL2LL-Converter migration tool limitations . . . . . . . . . . . . . . . . . . . . . 28
3.2.6 GUI application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31