Xinyuan-LilyGO / LilyGo-LoRa-Series

LILYGO LoRa Series examples
602 stars 168 forks source link

SD with LoRa fails #168

Open mkarat99 opened 3 weeks ago

mkarat99 commented 3 weeks ago

I'm using T-Beam Supreme (M) board and trying to use the SD card with LoRa but it seems that there is a conflict to the SPI initialization. While the SD.begin() is successful and appends data on the SD card file, once LoRa transmission is executed (and vice versa), the board crashes. Do you have any suggestion for a solution to this?

Thank you!

lewisxhe commented 3 weeks ago

Refer to this example https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/tree/master/examples/RadioLibExamples

mkarat99 commented 6 days ago

I cannot see where you actually use the SD in your code. It initializes successfully, but when I am trying to create or append to a file, it fails.

lewisxhe commented 4 days ago

Can you post your test code?

https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/blob/ba3fda6c06d44d7f95fe842b8f7fb0f7e68f89b7/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp#L324