Page 1 of 1

STM32WL5MOC Variant

Posted: Thu Oct 03, 2024 5:31 am
by mick63
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?

Re: STM32WL5MOC Variant

Posted: Thu Oct 03, 2024 6:30 am
by fpiSTM
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.

Re: STM32WL5MOC Variant

Posted: Thu Oct 03, 2024 11:27 am
by mick63
"Replaced" was a typo, I meant "Added" :roll:
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