GrumpyOldPizza / ArduinoCore-stm32l0

Arduino Core for STM32L0
125 stars 67 forks source link

spi1 #206

Open tcpipchip opened 1 year ago

tcpipchip commented 1 year ago

Hi Is it working ?

SPI1.begin();

GrumpyOldPizza commented 1 year ago

He's. If the variant you are using supports it ... However I would think that none of the variants exposes a SPI1 for STM32L0.

tcpipchip commented 1 year ago

yes, no support in the variants to SPI1 in STM32L073 :( I will have to add the SPI1, because i use the LOM204 module, a STM32L073 module with SX1276 in SPI...i will have to add a ENC28CJ60 on SPI1...

Btw, i did a blog using RADIOHEAD...reference to your ARDUINO CORE STML0 lib :) https://lom204-cli-wisol.blogspot.com/2022/11/lom204a-criando-uma-rede-mesh-com.html

GrumpyOldPizza commented 1 year ago

I see. The way this code works with LoRaWAN is to basically bypass the Arduino layer and talk to SPI directly internally. There is code in ArduinoCore-stm32l0/tree/master/system/STM32L0xx/Source/LoRa/Boards that does that.

I have not been able to find any docs for LOM204 at all ...

UT2UH commented 1 year ago

@tcpipchip - can you share LOM204 docs? And the price/availability as well. I will add its support both to the core fork and RadioHead.

tcpipchip commented 1 year ago

good morning!!!!!!! Datasheet_LOM204A_V0.1_20190715.pdf You can get in SOUTH AMERICA https://loja.smartcore.com.br/modem-lora-para-rede-publica-lorawan-wisol-lom204a-br00 Price, about $26,00 one piece

tcpipchip commented 1 year ago

let me know if you need more info about LOM204... Wisol - carta para acompanhar WSLOM204A02 - SmartCore - p2p -20220901.docx

tcpipchip commented 1 year ago

@tcpipchip - can you share LOM204 docs? And the price/availability as well. I will add its support both to the core fork and RadioHead.

About RadioHead fork, can you make it compatible with STM32 ARDUINO GITHUB ? https://github.com/stm32duino/Arduino_Core_STM32 Because we want to make compatible with https://github.com/khoih-prog STM32L0 examples :), where i was a collaborator...

UT2UH commented 1 year ago

let me know if you need more info about LOM204... Do you have MCU-SX1276 pinout?

UT2UH commented 1 year ago

About RadioHead fork, can you make it compatible with STM32 ARDUINO GITHUB ? Sorry, no. I use RadioHead but only with this core.

tcpipchip commented 1 year ago

GPIOS_LOM204_GIT.docx

tcpipchip commented 1 year ago

have you done some gateway with RADIOHEAD on STM32 ? Wifi, ethernet, GSM, etc Today i use only the UART

UT2UH commented 1 year ago

have you done some gateway with RADIOHEAD on STM32 ? Wifi, ethernet, GSM, etc Sorry, no.

tcpipchip commented 1 year ago

OK