Xinyuan-LilyGO / LilyGo-LoRa-Series

LILYGO LoRa Series examples
644 stars 177 forks source link

Does the T3-S3 have SPIRAM? #141

Closed antirez closed 6 months ago

antirez commented 6 months ago

Hello. esptool reports 2MB SPIRAM in the device, however the pins that are usually needed to access such SPIRAM are used for the LoRa chip. So: does the ESP32-S3 in T3-S3 lacks the SPRIAM, or the SPIRAM is connected to other pins? Thanks.

balynt2048 commented 6 months ago

It definitely has SPIRAM (2MB) on my board which is a T3S3 v1.1 with the SX1282 lora modem. I cannot say which ESP pins were used for this.

antirez commented 6 months ago

It definitely has SPIRAM (2MB) on my board which is a T3S3 v1.1 with the SX1282 lora modem. I cannot say which ESP pins were used for this.

Interesting! I got a v1.2, and MicroPython is not able to recognize the SPIRAM. I guess it's just a matter of selecting the right pins then. Let's see if LILYGO has some information. What software are you using to see the SPIRAM?

lewisxhe commented 6 months ago

@antirez T3-S3 uses QSPI type PSRAM. In Micropython, you must burn the PSRAM type to QSPI interface before it can run. ESP32S3 has two PSRAM interfaces, one is OPI (eight lines) and the other is regular 4-line SPI PSRAM. (QSPI)

balynt2048 commented 6 months ago

I'm using it with micropython without a problem. You have to get the proper firmware for it. What I had to do is recompile with some custom settings. See https://github.com/orgs/micropython/discussions/10156 Specifically, I had to set the flash size to 4MB and made sure that I am building a "GENERIC_S3_SPIRAM".

antirez commented 6 months ago

@antirez T3-S3 uses QSPI type PSRAM. In Micropython, you must burn the PSRAM type to QSPI interface before it can run. ESP32S3 has two PSRAM interfaces, one is OPI (eight lines) and the other is regular 4-line SPI PSRAM. (QSPI)

Thank you @lewisxhe, indeed I'm using the 8 line build right now. I'll switch to QSPI. Thanks.

antirez commented 6 months ago

I'm using it with micropython without a problem. You have to get the proper firmware for it. What I had to do is recompile with some custom settings. See https://github.com/orgs/micropython/discussions/10156 Specifically, I had to set the flash size to 4MB and made sure that I am building a "GENERIC_S3_SPIRAM".

Yep I know but if it was just for the 4MB flash, there is a command line utility that changes the image in a second without any need to recompile. So the image is working great, if not for SPIRAM, as I was using the 8 line version.

antirez commented 6 months ago

Ok now I can see all the memory available. Huge amount! Thanks.