2023-01-08 01:31 AM
I'm generating code with STM32CubeIde 1.11.0 for a STM32WB55, in my test project there is an USB CDC and BLE is enabled.
When I enable BLE also IPCC must be enabled, but after HW_IPCC_Init is called usb clock is wrong so my usb device doesn't work anymore.
The specific function which corrupt the clock is HAL_NVIC_EnableIRQ(IPCC_C1_RX_IRQn)
I have error on my linux: usb 1-2: Device not responding to setup address.
Is there a solution?
Solved! Go to Solution.
2023-01-10 01:27 PM
2023-01-10 12:13 AM
Hello @juvann
First let me thank you for posting .
It sounds like there may be an issue with how you are initializing the IPCC (Inter-Processor Communication Controller) and the USB CDC on the STM32WB55.
It's important to note that the IPCC is used to communicate between the Cortex-M4 and Cortex-M0+ cores on the STM32WB55.
Enabling the IPCC will likely impact the clocks for the Cortex-M4 core, which could be causing the problem with the USB CDC.
One possible solution would be to ensure that the USB clock is properly configured and enabled before calling the IPCC initialization functions. Additionally, you could check the clock configuration settings for the USB peripheral to make sure they are correct.
It's also good to check and make sure that both the Cortex-M4 and Cortex-M0+ cores are configured and enabled correctly, and that they are running at the correct clock speeds.
Another thing you could check is, if possible, try the same operation without enabling BLE. if the problem persists, it is most likely that problem is on the clock configuration, not on the BLE.
NB: For the USB CDC, it is important to configure the USB clock to the correct frequency, typically 48 MHz This clock is derived from the system clock, so it is also important to ensure that the system clock is configured to the correct frequency as well.
Thx
Ghofrane
2023-01-10 11:10 AM
Hello Ghofrane,
thank you for your reply. I already tried to disable BLE and when USB start cdc acm works very well.
When BLE call this function HAL_NVIC_EnableIRQ(IPCC_C1_RX_IRQn) usb stop to work.
2023-01-10 12:35 PM
I followed this video https://www.youtube.com/watch?v=i10X4Blr8ns and now something is changed.
IPCC is not more the issue but the configuration of TL_RefTable.
If I disable this row in TL_Init hw_ipcc.c
TL_RefTable.p_mem_manager_table = &TL_MemManagerTable;
USB works but not ble and viceversa.
2023-01-10 01:27 PM