2025-01-02 07:09 PM
Hello Devs,
I already configured X-CUBE-SUBG2:
SPI1:
USART1:
But program still wait for tx done at line 228 in app_custom_s2lp_fifo_tx.c
Please help me how to integrate s2lp and my stm32u0. Thank you.
Regards,
Zan
2025-01-02 10:49 PM - edited 2025-01-03 06:20 AM
2025-01-02 11:01 PM
Hi Tesla,
Yup that one. i didn't find a way to implement it on stm32 using x-cube-subg2. may you help me? Thank you.
Regards,
Zan
2025-01-03 06:23 AM
Not specifically.
Perhaps share how you've wired this up.
Start by coding a simple SPI app to access the S2LP registers, and confirm those read/write correctly. Dump registers, and start debugging why the code you have is hanging up. If access to the device is not viable you'll need to debug the hardware and wiring.
2025-02-02 11:09 AM
I am having similar issues, I never see the tx interrupt. I wrote a simple UAR/T program and dumped the FSM registers and found that it is stuck in state 2, which is waiting for the HSE PLL to indicate a lock.
The real problem is that the transmitter never actually starts or sends anything. I have traced it down to the HSE being misconfigured to use the internal 64MHz oscillator, instead of the external 48MHz. That does not appear to help, as I cannot get that oscillator to work.
I have experimented with changing some parameters such as the capacitor tuning, startup current and current control to no avail. It looks like that has to come from e-byte themselves.
If anyone has any insight on how to use the external oscillator on this module, I would love to hear about it.