Replies: 1 comment
-
@asm5878 ^^ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone. :)
I am currently trying to implement the application “Phy_802_15_4_Cli” from the STM32Cube repository in Zephyr. We are using a STM32WB55RG.
Unlike in the standard application, we use the PLL as SYSCLOCK, the input clock is HSE (32MHz).
As CLI (command line interface) we use LPUART. The aim is to use the PC app STM32CubeMonitor-RF with the "Phy_802_15_4_Cli" app on the STM32WB55, which has already worked so far.
However, the problem is that in RX mode, as soon as the first 802.15.4 packet is received, the
C2DS
bit is set in thePWR_EXTSCR
register --> “CPU2 is in deepsleep or hold by C2BOOT”. This causes the SW and SWS bits in theRCC_CFGR
register to be set from 11 (PLL as system clock) to 10 (HSE as system clock).The output via LPUART then only produces garbage. One way to prevent the low power mode of the C2, e.g. using
SHCI_C2_RADIO_AllowLowPower()
only works with BLE, Thread or Zigbee, but not for the LLD_Tests.Another attempt was to check the SYSCLOCK within the RX callback each time and reset it to PLL if it is not already.
This only works partially, but reduces the garbage in the output.
Does anyone have any idea how I can prevent this clock switch?
Another suggestion from @erwango was to assign a fixed clock to the LPUART like:
But this is not an option to me as we would like to integrate the app into our production test, which is why the functionality with the external clock has to be ensured.
In principle, it would make more sense to prevent the C2 (or M0) from automatically going into low power mode. With other wireless stacks such as the
stm32wb5x_Mac_802_15_4_fw.bin
it does not do this either. The questions are:stm32wb5x_Phy_802_15_4_fw.bin
?We are using:
If anything is unclear, information is missing (for sure) and you need more info, please let me know and please be gracious to me. It's my first post (discussion) on Github ;)
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions