STM32WB55 support

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32WB55 support

Post by Giovanni »

Hi,

Thanks I will review your port as soon I finish the current things.

Giovanni
User avatar
akscram
Posts: 27
Joined: Sat Jan 25, 2020 8:21 pm
Has thanked: 16 times
Been thanked: 17 times

Re: STM32WB55 support

Post by akscram »

Hello,

The recent changes are available in the attachment where I made more fixes and also added testhal tests for ADC, RTC and RNG. Now I'm trying to figure out how to properly interact with CPU2 and implement corresponding features, such as IPCC and HSEM.

Best regards,
Ilya.
Attachments
STM32WBxx-1b3281.zip
Basic support of the STM32WB55 family support with demos and tests
(342.34 KiB) Downloaded 448 times
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32WB55 support

Post by Giovanni »

Hi,

Thanks, I am finalizing the 20.3 release right now, this will be matter for the next development cycle.

Giovanni
User avatar
akscram
Posts: 27
Joined: Sat Jan 25, 2020 8:21 pm
Has thanked: 16 times
Been thanked: 17 times

Re: STM32WB55 support

Post by akscram »

Giovanni,

I found that there are incorrect PR mask bits specified for EXTI2 and EXTI4 ISRs in the STM32/LLD/EXTIv1 driver. It could be useful to include at least this small fix in the current release. You can find the fix in the 0005-Fix-PR-mask-for-EXTI2-and-EXTI4-ISR-handlers.patch file in the attachment of my previous comment.

Best regards,
Ilya.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32WB55 support

Post by Giovanni »

Too late...

Could you open a topic in "bug reports"? I will include this in 20.3.1.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32WB55 support

Post by Giovanni »

I have not forgot about this, I need a board and it is difficult in this moment.

Giovanni
riz94107
Posts: 3
Joined: Fri Nov 13, 2020 11:05 pm

Re: STM32WB55 support

Post by riz94107 »

Has anything more become of this? I have a project I'm using the STM32WB55 in, and support would be helpful. I've started the process of updating the zipfile of patches from the beginning of the thread, but official support would be great.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32WB55 support

Post by Giovanni »

Hi,

It is in queue but there are other things too.

Giovanni
riz94107
Posts: 3
Joined: Fri Nov 13, 2020 11:05 pm

Re: STM32WB55 support

Post by riz94107 »

Great to hear. Incidentally, the support as posted above is working OK for the most part, but specifically USB is NOT. I'm currently investigating what needs to change to fix this, though I'm pretty new to ChibiOS. Specifically, the USB_CDC example in `testhal/STM32/multi/USB_CDC` does not work when ported to the P-NUCLEO-WB55 - I also ported the example to the NUCLEO-F303RE I have, and it worked fine there. And a basic CDC example using ST's tools worked fine on the WB55. I'm currently digging through datasheets and other RTOSes (*cough* Zephyr) for clues, and at the moment all I've noticed is some interrupt differences, and the HSI48. This might take me a while. :)
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32WB55 support

Post by Giovanni »

Hi,

USB is always the same, it must be some tiny clock or GPIO detail.

BTW, is there support in OpenOCD for this device?

Giovanni
Post Reply