Search found 15 matches

by faptastic
Sun Jul 07, 2024 8:36 am
Forum: General Discussion
Topic: ESP32-S2 External RAM / PSRAM + I2S LCD + DMA
Replies: 6
Views: 1647

Re: ESP32-S2 External RAM / PSRAM + I2S LCD + DMA

For those that might be interested I figured it out and it was indeed per what Sprite_TM stated. Use of the function Cache_WriteBack_Addr in the code solves for the issue. I can now clock out 24bits (3 bytes) in parallel at about 6Mhz from SPIRAM via. the I2S 'LCD Mode'. https://github.com/mrcodetas...
by faptastic
Wed Jul 03, 2024 9:30 pm
Forum: General Discussion
Topic: ESP32 S3 Segmented SPI Transfer -SEG_TRANS_DONE interrupt never triggers!
Replies: 1
Views: 515

Re: ESP32 S3 Segmented SPI Transfer -SEG_TRANS_DONE interrupt never triggers!

Figured out the problem.

Ending the DMA transfer does not trigger an interrupt by the SPI device. It just sits there in silence. You need to zero out SPI_USR_CONF_NXT to trigger an interrupt.

Solution here: https://github.com/mrcodetastic/esp32s3 ... x_seg_loop
by faptastic
Tue Jul 02, 2024 1:21 am
Forum: General Discussion
Topic: ESP32 S3 Segmented SPI Transfer -SEG_TRANS_DONE interrupt never triggers!
Replies: 1
Views: 515

ESP32 S3 Segmented SPI Transfer -SEG_TRANS_DONE interrupt never triggers!

Hi, I have created a 'simple' example of using ESP32S3's Segmented Transfer mode for SPI in order to create a continuous loop. However, I can NEVER get it to trigger a SPI_DMA_SEG_TRANS_DONE_INT interrupt never seems to trigger, no matter what I do. https://github.com/mrcodetastic/esp32s3_spi_dma_tx...
by faptastic
Tue May 21, 2024 5:27 am
Forum: General Discussion
Topic: ESP32-S2 External RAM / PSRAM + I2S LCD + DMA
Replies: 6
Views: 1647

Re: ESP32-S2 External RAM / PSRAM + I2S LCD + DMA

Thanks ESP_Sprite.

If I used say the esp-camera example (https://github.com/espressif/esp32-camera) and re-write it to be an LCD output instead, do you think that could potentially do the trick? I see a bunch of PSRAM data alignment stuff in this code.
by faptastic
Mon May 20, 2024 10:35 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 443
Views: 880783

Re: What would you like to see in The Next Chip?

Bring back 24-bit or greater parallel output.

ESP32 supported 24-bit parallel LCD... but didn't have enough GPIOs!
S2 does, but apparently doesn't work with PSRAM properly.
S3 has a GDMA that can pull data from PSRAM... but only a 16-bit LCD interface.
by faptastic
Mon May 20, 2024 10:24 am
Forum: General Discussion
Topic: ESP32-S2 External RAM / PSRAM + I2S LCD + DMA
Replies: 6
Views: 1647

Re: ESP32-S2 External RAM / PSRAM + I2S LCD + DMA

I don't want to use the SRAM. I want to use the PSRAM.

The TRM says you can use it for I2S and LCD output, but I there's no guidance anywhere on how to achieve this in code.
by faptastic
Sun May 19, 2024 1:16 am
Forum: General Discussion
Topic: ESP32-S2 External RAM / PSRAM + I2S LCD + DMA
Replies: 6
Views: 1647

ESP32-S2 External RAM / PSRAM + I2S LCD + DMA

Hello. The TRM seems to imply that one can create a buffer in PSRAM memory, and use EDMA to send out via the I2S peripheral (for parallel output LCD mode). However, any attempts I try produce garbage output when any of the buffer is allocated to the ESP32-S2's PSRAM. What is this the case? The TRM s...
by faptastic
Thu Jan 04, 2024 9:52 am
Forum: ESP-IDF
Topic: ESP32-S3 - Can't send SPI transaction of more than one DMA max payload size?
Replies: 3
Views: 2727

Re: ESP32-S3 - Can't send SPI transaction of more than one DMA max payload size?

That doesn't make sense when I'm sending in 8-bit parallel.

So I need to multiply by 8 even though it is only 31000 bit LENGTH of the transmission... just there are 8 serial lines in parallel.

On another note, the SPI driver code is a dog's breakfast. Espressif could have coded this better.
by faptastic
Wed Jan 03, 2024 1:47 pm
Forum: ESP-IDF
Topic: ESP32-S3 - Can't send SPI transaction of more than one DMA max payload size?
Replies: 3
Views: 2727

ESP32-S3 - Can't send SPI transaction of more than one DMA max payload size?

I want to be able to send an SPI 8-bit transaction of about 32kBytes (so 4000 bits in parallel), but the ESP32-S3 doesn't ever send more than one DMA linked list's worth of data? If I create an spi_transaction_t of 32k, I only ever get about one DMA max payload lengths worth of data? Is there some b...
by faptastic
Mon Jan 01, 2024 11:24 pm
Forum: ESP-IDF
Topic: ESP32-S3 Octal (8-bit) SPI (master) transmission does not work
Replies: 2
Views: 2211

Re: ESP32-S3 Octal (8-bit) SPI (master) transmission does not work

Edit: Figured out issue.

I was setting the SPICOMMON_BUSFLAG_OCTAL flag to the 'devcfg' not 'buscfg'. Facepalm