cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement EBYTE E04-400M16S S2-LP in nucleo U083RC, use X-CUBE-SUBG2 tx or rx

farzani_ryu
Associate

Hello Devs,

I already configured X-CUBE-SUBG2:

farzani_ryu_0-1735873474359.png

farzani_ryu_1-1735873486988.png

 

SPI1:

farzani_ryu_2-1735873523889.png

 

USART1:

farzani_ryu_3-1735873597837.png

 

But program still wait for tx done at line 228 in app_custom_s2lp_fifo_tx.c

farzani_ryu_4-1735873698194.png

 

Please help me how to integrate s2lp and my stm32u0. Thank you.

 

Regards,

Zan

 

4 REPLIES 4

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

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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.