Search found 6 matches

by vuthai
Thu Apr 11, 2024 3:06 am
Forum: ESP32 Arduino
Topic: GDMA MEM TRANS does not work
Replies: 6
Views: 3407

Re: GDMA MEM TRANS does not work

Hmm. Interestingly, the IDF provides the "Asynchronous Memory Copy" API - but apparently not for the ESP32. I guess there is a reason why it doesn't. Btw, copy data from internal memory to PSRAM without going through the cache I don't think that's possible. I use ESP32-S3 according to TRM with the ...
by vuthai
Thu Apr 11, 2024 2:49 am
Forum: ESP32 Arduino
Topic: GDMA MEM TRANS does not work
Replies: 6
Views: 3407

Re: GDMA MEM TRANS does not work

I use dynamic memory allocation with block alignment:
heap_caps_aligned_alloc(32, 2048+32, MALLOC_CAP_DMA);
heap_caps_aligned_alloc(64, 2048+64, MALLOC_CAP_SPIRAM);
by vuthai
Sat Apr 06, 2024 12:55 am
Forum: ESP32 Arduino
Topic: GDMA MEM TRANS does not work
Replies: 6
Views: 3407

GDMA MEM TRANS does not work

I'm using GDMA to copy data from internal memory to PSRAM without going through the cache, but I can't get GDMA to work even though testing with SPI, I2S... worked, I'm not what the initialization registe order, can anyone help me? Error returning interrupt flag: GDMA_IN_DSCR_ERR_CH0_INT_RAW & GDMA_...
by vuthai
Sat Apr 06, 2024 12:37 am
Forum: ESP-IDF
Topic: ESP32S3 edits the partition table in the main program
Replies: 4
Views: 3077

Re: ESP32S3 edits the partition table in the main program

OTA updating the partition table is discouraged/unsupported. If you still want to do it, set menuconfig -> "Component config" -> "SPI Flash driver" -> "Writing to dangerous flash regions" to "Allowed" first. Thank you for your response, I'm using ardunio, is there any other way like a separate libr...
by vuthai
Wed Apr 03, 2024 3:50 am
Forum: ESP-IDF
Topic: ESP32S3 edits the partition table in the main program
Replies: 4
Views: 3077

ESP32S3 edits the partition table in the main program

Hello, I need to update the partition table to expand the program size via OTA, I tested deleting address 0x8000 spi_flash_erase_sector(8) but it failed, the chip crashed and rebooted so I can't change it partition table. The way I do it is to check the running program located at OTA0 (0x10000), the...
by vuthai
Tue Nov 28, 2023 8:10 am
Forum: ESP-IDF
Topic: ESP32-S2 ULP-FSM helps write source code
Replies: 0
Views: 2004

ESP32-S2 ULP-FSM helps write source code

Hello, I am using ESP32-S2 on Arduino and I am having difficulty writing ULP-FSM code, can anyone help me convert it to ULP-FSM code? RTC_NOINIT_ATTR uint16_t FSM_Data[18]; //RTC RAM offset = 0B; FSM_Data[0-15] Data stack; FSM_Data[16] CMD read/write; FSM_Data[17] Data read void FSM_Stack_Function()...