-
-
Notifications
You must be signed in to change notification settings - Fork 754
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
ESP32 - S3 build (ESP IDF 4) - Error Initialising SPI1 #2601
Comments
My guess: This could be some hard coded dma channel or an sdconfig issue. |
Thanks for looking into this! As you say it looks like You probably spotted the pins are hard-coded too, so ideally this could benefit from the same approach you used for I2C |
Thanks, yep will check out the use of SPI_DMA_CH_AUTO |
Thanks! If you want a quick test, connect MOSI and MISO pins together, and you should then be able to do |
Nice Tip. Thanks. |
See Forum Where issues identified by @devsnd result in a restart of the ESP32 - S3 when
SPI1.setup({ sck:D4, mosi:D5 });
is executed in a script.
The issue does not occur when this code is used:
var spi = new SPI(); spi.setup({ sck:D4, mosi:D5 });
The restart is preceeded with the message:
spi_bus_initialize is called in Espruino from targets/esp32/jshardwareSpi.c
Investigation to follow.
The text was updated successfully, but these errors were encountered: