Skip to main content
Associate II
June 7, 2024
Solved

BLE transparent mode firmware for STM32WB55VGQ package.

  • June 7, 2024
  • 15 replies
  • 8945 views

Hello,

Using custom firmware on an Inhouse designed board, the BLE output seems unmodulated as shown in the picture attached. But using the Transparent mode firmware on a Nucleo-Board (controlled via the Cube monitorRF) the modulation seems good (also attached)

So,

1. Is there any option to tune the modulation further other than default ?

2. Can someone provide the Transparent mode firmware for the STM32WB55VGQ package ? This can help in FCC testing.

This picture shows the sidebands when tx is ON on the 1st channel.

rapoorv_0-1717760112870.png

This picture shows there are no sidebands on the Nucleo Board which are coming in the above pic.

rapoorv_1-1717760236541.png

 

This topic has been closed for replies.
Best answer by rapoorv

We tried by just changing the UART pins to the required one within the code and it worked using the Transparent Mode code used for the Nucleo Board.

So we can close this out.

 

15 replies

Lubos KOUDELKA
ST Employee
June 10, 2024

Hello,

Using SW setting you can tune HSE frequency and TX output power, but then it's matter of filtering, antenna and antenna matching on your custom board.

You can use BLE_TransparentMode project from STM32Cube_FW_WB repository intended for P-NUCLEO-WB55.Nucleo on any STM32WB55 package. You just need to reflect which interface (UART, LPUART, USB) and I/Os are used for communication with PC on your custom board and change it accordingly in your BLE_TransparentMode project.

Best regards,
Lubos

rapoorvAuthor
Associate II
June 12, 2024

Hi,

The porting of the code was tried but we cannot control it via the CUBEMonitorRF app. 
We used the same code and generated the TX signal manually at a fixed frequency of 2402MHz, but we could still see the sidelobes in the spectrum analyzer whereas it does not appear on the Nucleo-Dev kit.

Can someone in ST do the porting of this code onto the package for STM32WB55VGQ and test it with the MonitorRF app. 

Thanks

Lubos KOUDELKA
ST Employee
June 13, 2024

Hi,
as I read your your feedback, porting of your code probably was not complete, otherwise you should be able to control your app using STM32CubeMonitorRF. Only think you need to port is to set (LP)UART and right pins (LP)UART is using on your board. Code is not package specific, but there is lot of combinations of UARTs and pins you may use on your custom HW, we're not able to cover them all in examples. What pins are used on your side? I can then guide you to the modification you need to do.

But the root cause here is different - as you were able to see using the fixed frequency signal you generated - you need to fit your RF filtering and matching to your HW board, no SW modification will fix it.

rapoorvAuthor
Associate II
June 13, 2024

Well if you see in that way, we are testing at the RF pin of the controller with no further connections. If at that point we observe the side lobes, impedance matching circuit is not gonna help neither a filter. 

Now if we use a Nucleo Dev board (MB1355C), we do not see any sidelobes if we probe at the RF pin of the controller.

 

As for the Transparent mode firmware porting, would be great if you could provide some guidance .. 

 

Lubos KOUDELKA
ST Employee
June 13, 2024

What about your HSE and input power stability? Have you verified it?
For test would be good to power your MCU from stable source with proper decoupling, or some battery. Regarding HSE, are you able to switch for stable signal generator for test?

rapoorvAuthor
Associate II
June 13, 2024

Checked the HSE stability and 3.3V line (near to RF as well at VDDmain). All good there.

Checked it from an even better source with lesser ripples of 20mV on 3.3V line. The problem persists.

Whats the 2nd statement about the signal generator?

Lubos KOUDELKA
ST Employee
June 14, 2024

2nd statement about the signal generator - RF use HSE 32 MHz as source for carrier - HSE need to be precise and stable, HSE HW design is sensitive part on STM32WB. Using signal generator with stable 32 MHz signal to bridge HSE crystal may help to verify if the issue was HSE. You can verify HSE also using other methods, for example measurement on MCO using precise clock counter.

rapoorvAuthor
Associate II
June 14, 2024

HSE frequency stability at room temperature is tested for accuracy. Its a +10ppm part. Have tried to tune in the HSEGMC down and up. It only shifts the center frequency and does not helps with the Side lobes coming.

 

Associate II
July 25, 2024

Hello @Lubos KOUDELKA @rapoorv 

Did you managed to bring up the BLE transparent mode firmware for STM32WB55VGQ6 package?

We are also trying to port the nucleo board example of the transparent mode to VGQ package, with LPUART pins PB5 - TX and PA12 - RX. But have no success and Hangs in the Hard Fault handler.

Is there any memory constraints that we need to change in the generated Flash file for the transparent mode to work?

This would be very helpful for testing with RF tool. Please provide some guidance on this topic.

 

Best Regards

Teja

Lubos KOUDELKA
ST Employee
July 26, 2024

Dear @teja_111 ,
repository example BLE_TransparentMode can be used also with other packages and interfaces, just few modification is needed to switch from default USART1 to LPUART. Please see attached diff and project BLE_TransparentMode_LPUART. To get correct path to drivers, it need to be deployed in path ...\STM32Cube\Repository\STM32Cube_FW_WB_V1.20.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE (I uesd up to date v1.20.0) some older pack can be used as well, but we recommend up to date when possible.
Please try on your side.

Best regards,
Lubos

Associate II
July 29, 2024

Hello @Lubos KOUDELKA ,

Thanks for the reply.
The changes mentioned by you were considered and the program is modified accordingly. But we don't see the Transparent mode working. Could you please test this on your side and provide us feedback.

Best Regards

teja

rapoorvAuthor
Associate II
July 29, 2024

Hi All,

 

We can close this thread as we got the solutions to both the problems mentioned in this ticket.

Thanks for your time.

Apoorv

 

Associate II
July 29, 2024

Hello rapoorv,

The transparent mode program is still not running on the STM32WB55VGQ package after adopting the modifications from @Lubos KOUDELKA in his latest post. If you were able to run it please let us know.

 

Until then, I request, we can keep this thread open?

 

Thanks & Regards

tej