Page 1 of 1

SUBGHZSPI

Posted: Sun May 15, 2022 2:08 pm
by spike314
Can anyone point me to info or an example of using SUBGHZSPI in the STM32WL chips? Specifically I am looking the STM32WLE5 used in the Seeed LORA-E5 module.
I am used to connecting to the radio with physical pins and wondering if there is a virtual equivalent to a pin name, or is it more complicated?

Thanks.

Re: SUBGHZSPI

Posted: Wed May 18, 2022 12:44 am
by spike314
OK. I now realize this was a stupid question. I don't need to know a virtual pin, all I need is which SPI and the NSS and those are both defined. I'm just so used to looking up what pins are associated with the SPI that I didn't make the connection.

Re: SUBGHZSPI

Posted: Thu May 19, 2022 5:34 pm
by sheggy012
Did you get it working? As I understand it, you have to define the SPI bus, right? Since there are multiple on the chip. The NSS pins that are defined are also only for DEBUG according to the data sheet.

Re: SUBGHZSPI

Posted: Fri May 27, 2022 1:36 am
by spike314
I have not got it working after going around in several circles.
I have not figured out how to do it without naming pins. SPIClass in SPI.h needs the digital pin name for miso,mosi,sclk.
I haven't found an equivalent to those pin names for SUBGHZSPI.
I haven't found a way to just select SPI1, SPI2, or SUBGHZSPI in software without the pin names.

So, I'm back to hoping someone has worked it out and has an example.

Re: SUBGHZSPI

Posted: Fri Jun 10, 2022 2:42 pm
by leonardalen12
I have not got it working after going around in several circles.
I have not figured out how to do it without naming pins.
SPIClass in SPI.h needs the digital pin name for miso,mosi,sclk.

I haven't found an equivalent to those pin names for SUBGHZSPI.
I haven't found a way to just select SPI1, SPI2, or SUBGHZSPI in software without the pin names.

Re: SUBGHZSPI

Posted: Tue Oct 18, 2022 7:57 am
by N_K49
Hi,
did you find a solution on the wle5 card?
I am in the same situation as you, if I can't control subghz the card is totally useless.
I found the debug pins, but I'm not sure that is correct to use them (https://forum.digikey.com/t/mapping-the ... pins/16931)
I tried to config the board with this library, but doesnt work (https://github.com/chandrawi/LoRaRF-Arduino)
Also I created a post on seeed studio to see if anyone can help me (https://forum.seeedstudio.com/t/program ... ino/266595)

Re: SUBGHZSPI

Posted: Tue Oct 18, 2022 11:28 am
by sheggy012
Bought the older rak4270 because ja had no luck with the new stm32wl. If someone will have more luck I hope he will reply here.

Re: SUBGHZSPI

Posted: Tue Oct 18, 2022 12:04 pm
by fpiSTM
Hi,

I'm currently working to add the support of the SUBGHZSPI instance.
A first draft is available anyway it is always ongoing as I've made some changes.
https://github.com/stm32duino/Arduino_C ... /pull/1839

Re: SUBGHZSPI

Posted: Sat Oct 22, 2022 4:25 pm
by N_K49
Hi fpiSTM,
I am interested in making this card work with the lora module.
I tried to recall the pins of the sub ghz but without success.
I read your link, but it is not clear to me how I can call the function debug_SubGHzSPI_pins (true); what specific file should I include?
if I can set these pins in debug mode, i want to try setting the spi.
Thanks for your time.