STM32WLxx port

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
vrollei
Posts: 163
Joined: Sun Nov 13, 2016 8:44 am
Been thanked: 26 times

Re: STM32WLxx port

Postby vrollei » Thu Apr 15, 2021 12:54 pm

About ftl files.
I use compatible L4 ftl files:
tools/ftl/processors/boards/stm32l4xx/templates

Do we need dedicated ftl files for STM32WL line?
Vitaly

User avatar
FXCoder
Posts: 364
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 169 times
Been thanked: 121 times

Re: STM32WLxx port

Postby FXCoder » Thu Apr 15, 2021 1:05 pm

Hi Vitaly,
All good.
Updated hal_lld.c applied.

Yes the implementations should have ftl per family - (ftl/processors/boards/templates & ftl/processors/conf & processors.xml)
So that is to be done some time...

BTW many thanks for all the work in putting the WL55 implementation together!
--
Bob

vrollei
Posts: 163
Joined: Sun Nov 13, 2016 8:44 am
Been thanked: 26 times

Re: STM32WLxx port

Postby vrollei » Thu Apr 15, 2021 1:22 pm

Bob,

not at all, my pleasure!

Shall we discuss next steps?

There are a lot of things to do with this STM32 line.
Vitaly

User avatar
FXCoder
Posts: 364
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 169 times
Been thanked: 121 times

Re: STM32WLxx port

Postby FXCoder » Thu Apr 15, 2021 3:00 pm

Definitely there is plenty to do...

I'll first run up my own multi-radio project code base on the NUCLEO WL55.
This code base runs on a variety of STM32 platforms already so adding another is not big effort.
(I have a multi-build and config for all the different STM targets)
First up that will be using a si4463 external module for a radio just to check that everything works.
Then I have to add the semtech stack and get LoRa running with just the M4.
That may take a little time.
The RP2040 is also work in progress and has quite a bit to do yet.

At the same time I have a work project using WL55 (which may also involve WB55).
BTW I have a first draft IPCCv1 driver (very simple) that is necessary for the WB55 but not immediately needed for the WL55.

What have you in mind to do with the WL55?
--
Bob

vrollei
Posts: 163
Joined: Sun Nov 13, 2016 8:44 am
Been thanked: 26 times

Re: STM32WLxx port

Postby vrollei » Thu Apr 15, 2021 5:46 pm

Good plan!

I did already porting Semtech stack to ChibiOS for SX1272 with ChibiOS PWR Driver for Low Power support and RTC based ST (STM32L1, L4),
so it can be easily used for SX1276 and WLxx, but new Radio driver over SUBGHZ-SPI should be added.

I am plaining to do drivers for WLxx:
- SUBGHZ Radio driver
- PWR driver
- RTC based ST if needed for Lora timing.

to run Semtech stack on ChibiOS WLxx port.

So I can contribute...
Vitaly

User avatar
FXCoder
Posts: 364
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 169 times
Been thanked: 121 times

Re: STM32WLxx port

Postby FXCoder » Fri Apr 16, 2021 3:10 am

FYI I took the flash size in the STM32WLxxC.ld down to 128K.
This allows openocd 11.0 (with the extra script for nucleo added) to load/run from Eclipse.
Anyway that helps for the Eclipse crowd.
As for VS I'll leave that to you to test when you have a WL55 NUCLEO to hand.
--
Bob

vrollei
Posts: 163
Joined: Sun Nov 13, 2016 8:44 am
Been thanked: 26 times

Re: STM32WLxx port

Postby vrollei » Fri Apr 16, 2021 9:19 am

Hi Bob,

I can run test on my own designed STM32WLxx board, but not sure what VS means.

Port update is attached, ftls added (ETH, USB and HSEBYPASS parts removed), STM32WLxxxX.ld changed according common FLASH/RAM size, demos and board files updated to fit changes.
Attachments
stm32wlxx-port-update.tar.gz
(8.17 KiB) Downloaded 7 times
Vitaly

vrollei
Posts: 163
Joined: Sun Nov 13, 2016 8:44 am
Been thanked: 26 times

Re: STM32WLxx port

Postby vrollei » Fri Apr 16, 2021 12:58 pm

Forgot to change ftl file in board.chcfg,
correct version is attached.
Attachments
stm32wlxx-port-update.tar.gz
(8.29 KiB) Downloaded 7 times
Vitaly

User avatar
FXCoder
Posts: 364
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 169 times
Been thanked: 121 times

Re: STM32WLxx port

Postby FXCoder » Fri Apr 16, 2021 1:08 pm

Thanks.
VS is just my shorthand for vscode.
--
Bob

User avatar
Giovanni
Site Admin
Posts: 13572
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 874 times
Been thanked: 748 times
Contact:

Re: STM32WLxx port

Postby Giovanni » Fri Apr 16, 2021 2:14 pm

When this port has become stable we need to add an mcuconf.h generator or demos will bit rot after a while.

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 0 guests