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?
STM32WL5MOC Variant
STM32WL5MOC Variant
"Replaced" was a typo, I meant "Added"
I modified the variant files to suit the B-WL5M-SUBG1 board.
LowPower.shutdown(xxxx); seems to work fine on that, so all good.
Uploaded the files here if anyone wants them;
https://github.com/mgergos/B-WL5M-SUBG1
Go to full post
I modified the variant files to suit the B-WL5M-SUBG1 board.
LowPower.shutdown(xxxx); seems to work fine on that, so all good.
Uploaded the files here if anyone wants them;
https://github.com/mgergos/B-WL5M-SUBG1
Last edited by mick63 on Thu Oct 03, 2024 10:42 am, edited 1 time in total.
Re: STM32WL5MOC Variant
This one is not added. You can add it following the wiki.
I don't understand why you "replaced" the ldscript as it doesn't exist.
I don't understand why you "replaced" the ldscript as it doesn't exist.
Re: STM32WL5MOC Variant
"Replaced" was a typo, I meant "Added"
I modified the variant files to suit the B-WL5M-SUBG1 board.
LowPower.shutdown(xxxx); seems to work fine on that, so all good.
Uploaded the files here if anyone wants them;
https://github.com/mgergos/B-WL5M-SUBG1

I modified the variant files to suit the B-WL5M-SUBG1 board.
LowPower.shutdown(xxxx); seems to work fine on that, so all good.
Uploaded the files here if anyone wants them;
https://github.com/mgergos/B-WL5M-SUBG1