-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict with SPI sdcard driver (InstrFetchProhibited) #5
Comments
An update: We might want to use VSPI_HOST for LORA, and HSPI_HOST for the sdcard. |
SDSPI initialize
SDSPI_HOST_DEFAULT is here. SDSPI_HOST_DEFAULT () has the following contents.
HSPI_HOST / SPI2_HOST cannot be used on other devices.
LoRa InitializeWhen using SDSPI, HSPI_HOST / SPI2_HOST cannot be used for SPI_HOST_ID.
|
I want to know more details. |
I found this code no longer meaningful:
I am considering making it possible to select SPI2_HOST / SPI3_HOST. |
I've ported part of the IRQ handling code from https://github.com/bkgoodman/esp-idf-lora, to your implementation. However, I'm seeing a conflict with both the IRQ handling and the SPI bus initialization:
My SD card code is identical to:
https://raw.githubusercontent.com/espressif/esp-idf/a82e6e63d98bb051d4c59cb3d440c537ab9f74b0/examples/storage/sd_card/sdspi/main/sd_card_example_main.c
My TTGO LORA32 board configuration:
LORA setup:
I've been trying to follow the steps described here:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/sdspi_share.html
I'm happy to send you the entire lora.c file. Thank you for your excellent work again, your repositories are an absolute time saver and great reference.
The text was updated successfully, but these errors were encountered: