STM32WL5MOC Variant
Posted: Thu Oct 03, 2024 5:31 am
I'm creating a custom STM32WL5MOCH6TR project.
However, the generic variant within the WL5MOCH folder looks a little undercooked.
Are there plans for a WL5MOC Variant?
I tried to make a new variant with the following modifications;
1. Added 3 x pins PC3, PC4, PC5 for control of the internal RF Switch
2. Added a SystemClock_Config() generated by CubeMX (MSI+LSE)
3. Set LSEDRIVE_CONFIG to RCC_LSEDRIVE_HIGH as per STM32WL5MOC datasheet
4. Replaced the ldscript.ld with one generated by CubeMX for WL5MOC
5. Added my new variant files to the CMakeLists.txt file
Can someone please look over my variant files to verify I've done it right?
https://github.com/mgergos/B-WL5M-SUBG1
Everything works ok, until I call LowPower.shutdown(xxxx); which seems to crash...
The LowPower lib works fine on the Nucleo_WL55JCI so, what might I be doing wrong?
However, the generic variant within the WL5MOCH folder looks a little undercooked.
Are there plans for a WL5MOC Variant?
I tried to make a new variant with the following modifications;
1. Added 3 x pins PC3, PC4, PC5 for control of the internal RF Switch
2. Added a SystemClock_Config() generated by CubeMX (MSI+LSE)
3. Set LSEDRIVE_CONFIG to RCC_LSEDRIVE_HIGH as per STM32WL5MOC datasheet
4. Replaced the ldscript.ld with one generated by CubeMX for WL5MOC
5. Added my new variant files to the CMakeLists.txt file
Can someone please look over my variant files to verify I've done it right?
https://github.com/mgergos/B-WL5M-SUBG1
Everything works ok, until I call LowPower.shutdown(xxxx); which seems to crash...
The LowPower lib works fine on the Nucleo_WL55JCI so, what might I be doing wrong?