Closed reggi closed 5 months ago
Even the Espressif ESP32-S3 board here has a pin 35 in the image so this isn't something unique to the M5Stamp, right?
https://github.com/microsoft/devicescript/blob/main/compiler/src/boards.json#L593C21-L593C129
I don't know what a "flash" pin is 😭, does M5Stamp need it's own Arch? Or is the ESP32-S3
configured wrong?
@mmoskal is it possible adding pins 35-37
in this commit was a mistake?
Perhaps this line from the docs clarifies something, this is wayy new to me 🙃🤯 https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/gpio.html
SPI0/1: GPIO26-32 are usually used for SPI flash and PSRAM and not recommended for other uses. When using Octal Flash or Octal PSRAM or both, GPIO33~37 are connected to SPIIO4 ~ SPIIO7 and SPIDQS. Therefore, on boards embedded with ESP32-S3R8 / ESP32-S3R8V chip, GPIO33~37 are also not recommended for other uses.
Possibly related / similar? https://github.com/microsoft/devicescript-esp32/issues/13
@pelikhan Hey! Thanks for your work on this project! Obviously I'm excited to get js running on this thing, I don't think many people have (most of the code out there is in c++ via arduino) and I'm really glad this project exists. Just would love to know if my guesses above as to what's going on is correct, if so does a new release need to be made (something out of my hands), or is it possible I can override the flash pins arch config from userland?
@reggi thank you for digging info on GPIO33~37
- I think the upcoming 2.16.2 release should fix it - it now labels the pins in question as octal-flash
so should let you have the config you want!
@mmoskal thanks for handling this so quickly! I wanted to report that I reflashed (with a custom board that I should put in a package) the device and got the LCD working! I'll be making a package specifically for the cardputer, if anyone has any trouble on here with anything tag me!
Feel free to contribute back into this repo if it easier for you. Thanks for circling back!
Using https://microsoft.github.io/jacdac-docs/tools/device-registration/ we can register that M5 board so that it gets a nice icon in the dashboard.
@pelikhan this wants a PAT, and I really don't wanna do that 🙃, is there another way?
Can I just manually make a PR? Like this one: https://github.com/microsoft/jacdac/pull/1349/files
Feel free to ignore it and do a PR with the board.json and picture. Thanks!
I'm trying to get the m5stack cardputer running with device script. It has a
ESP32-S3 chip
and a bunch of pins, I'm specifically running into this issue here, while trying to get the screen working via theST7789Driver
, I'm trying to reverse engineer this c++ code of the current pin configuration for this LCDThis is my code (stolen from the docs here drivers/st7789):
In order to get my device working I flashed it with this board config esp32s3_devkit_m but pin 35 isn't on here, in fact many pins:
This also might prove useful for future travelers (source):
And more info on the M5Stamp here (source):
Creating a custom board with pin 35 set is giving me this error, also happens when I try to flash :
I feel like this is inheriting the flash info from the arch here: https://github.com/microsoft/devicescript-esp32/blob/main/boards/esp32s3/arch.json#L16
Is it possible to overwrite this in the board config somehow? Am I on the right track? Is this possible?
Relates to https://github.com/microsoft/devicescript/issues/647