SUBGHZSPI

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
spike314
Posts: 3
Joined: Sun May 15, 2022 1:56 pm

SUBGHZSPI

Post 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.
spike314
Posts: 3
Joined: Sun May 15, 2022 1:56 pm

Re: SUBGHZSPI

Post 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.
sheggy012
Posts: 2
Joined: Thu May 19, 2022 5:31 pm

Re: SUBGHZSPI

Post 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.
spike314
Posts: 3
Joined: Sun May 15, 2022 1:56 pm

Re: SUBGHZSPI

Post 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.
leonardalen12
Posts: 2
Joined: Fri Jun 10, 2022 2:32 pm

Re: SUBGHZSPI

Post 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.
N_K49
Posts: 2
Joined: Tue Oct 18, 2022 7:50 am

Re: SUBGHZSPI

Post 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)
sheggy012
Posts: 2
Joined: Thu May 19, 2022 5:31 pm

Re: SUBGHZSPI

Post 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.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: SUBGHZSPI

Post 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
N_K49
Posts: 2
Joined: Tue Oct 18, 2022 7:50 am

Re: SUBGHZSPI

Post 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.
Post Reply

Return to “General discussion”