STM32WL5MOC Variant

If you made your own board, post here, unless you built a Maple or Maple mini clone etc
Post Reply
mick63
Posts: 4
Joined: Mon Oct 02, 2023 2:54 am
Answers: 1

STM32WL5MOC Variant

Post 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?
by mick63 » Thu Oct 03, 2024 11:27 am
"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
Go to full post
Last edited by mick63 on Thu Oct 03, 2024 10:42 am, edited 1 time in total.
fpiSTM
Posts: 1919
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 107
Location: Le Mans
Contact:

Re: STM32WL5MOC Variant

Post 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.
mick63
Posts: 4
Joined: Mon Oct 02, 2023 2:54 am
Answers: 1

Re: STM32WL5MOC Variant

Post 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
Post Reply

Return to “Custom design boards”