2025-03-27 10:01 AM - edited 2025-03-27 10:04 AM
Hello,
I tried to enable the PTA peripheral on stm32WBA63. Seems like it's not generating any initializing code regarding the PTA. Neither any example is provided how to do so.
It tried manually to enable the PTA, but its still not working. I still see the ble advertising. I am attaching the sample ioc file.
What I tried manually, is
2025-04-16 5:40 AM - edited 2025-04-17 9:54 AM
Hello @abansal22
For the PTA, I've attached a code to test the PTA. You can use it as a source of inspiration. To use PB15 for PTA_GRANT instead of PH3, You just need to change the config of PTA_GRANT in MX_GPIO_INIT():
/// PTA_GRANT - PB15 CN4-26
GPIO_InitStruct.Pin = GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = ((uint8_t)0x0A);
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
PS: Don't forget to change the connection cable.
This example is tested on the NUCLEO-WBA65RI.
For the CubeMX configuration, that has been escalated internally (under internal ticket number 208024) to be added on the future.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-04-16 6:26 AM
Hello @STTwo-32
As you can check in the original post, I already did this according to the mcu stm32WBA63 datasheet. I also initiated the pta, still I check ble transmit, what ever the value of pta active pin.
Is there is any wrong with my initaition process?
As per you post, you donot initialize pta at all? is it not mandatory to enable the pta prior to use. Also the snippet is just a gpio initiation, what about rest of the code. Is it possible for you to provide a full example even for a Nucleo board.
As per reply you mentioned that it is working for nucleo board. How do you test on nucleo board? Did you use ble/thread/zigbee to verify that?
Thanks
2025-04-16 7:49 AM
I've uploaded the example. For details, you can have a look at the readme.html file of this testing example.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-04-17 2:39 AM
Hi,
Actions are underway to support the generation of PTA initialization, via STM32CubeMX in future versions.
BR, Joé