Search found 10 matches

by fcipaq
Sat Aug 31, 2024 10:28 am
Forum: ESP-IDF
Topic: PSRAM-less framebuffer strategy
Replies: 10
Views: 2901

Re: PSRAM-less framebuffer strategy

Thanks and I hope it's useful for someone.
by fcipaq
Fri Aug 30, 2024 4:42 pm
Forum: ESP-IDF
Topic: PSRAM-less framebuffer strategy
Replies: 10
Views: 2901

Re: PSRAM-less framebuffer strategy

Thanks for your suggestion. It already got the PSRAM running at 200 MHz. However to write the PSRAM I used the CPU (in a loop, hoping the cache would speed that up), because I wanted to stretch the image - so the data would be scattered and I'm not sure if the DMA is capable of doing that, I haven't...
by fcipaq
Fri Aug 30, 2024 3:16 pm
Forum: ESP-IDF
Topic: PSRAM-less framebuffer strategy
Replies: 10
Views: 2901

Re: PSRAM-less framebuffer strategy

The approach worked out. You can watch the results on Youtube: https://youtu.be/osw1QMM4Avs?feature=shared

In the link there's also a description to the Github Repo. Beware: it's hacky... :)
by fcipaq
Wed Aug 28, 2024 12:39 pm
Forum: ESP-IDF
Topic: PSRAM-less framebuffer strategy
Replies: 10
Views: 2901

Re: PSRAM-less framebuffer strategy

Ok, I poked around in the esp_lcd driver a little. And I think this might be a feasible solution: In esp_lcd_panel_dpi.c it is implemented that after a DMA transfer from the screen buffer to the display has completed, dma_trans_done_cb gets called back, which then rearms the DMA. And I think it *sho...
by fcipaq
Tue Aug 27, 2024 2:58 pm
Forum: ESP-IDF
Topic: PSRAM-less framebuffer strategy
Replies: 10
Views: 2901

Re: PSRAM-less framebuffer strategy

Yeah, that's exactly what I had in mind (since I stumbled across this https://www.esp32.com/viewtopic.php?f=12&t=26793&start=10 thread a couple of days ago... Maybe I'll just wait for the camera app example to get published (I was unable to find it). I mean, in that example the whole screen is updat...
by fcipaq
Mon Aug 26, 2024 6:33 pm
Forum: ESP-IDF
Topic: PSRAM-less framebuffer strategy
Replies: 10
Views: 2901

Re: PSRAM-less framebuffer strategy

Sure, I'll upload on Github in a couple of days (pretty busy week). It's based on github.com/ducalex/retro-go with very minor adjustments.

About LVGL: Thank you for the input, I'm however not using LVGL, just the driver that came with ESP-IDF.
by fcipaq
Mon Aug 26, 2024 5:11 pm
Forum: ESP-IDF
Topic: PSRAM-less framebuffer strategy
Replies: 10
Views: 2901

PSRAM-less framebuffer strategy

Hi everyone, I am very happy that I was able to grab on of the engineering-sample-ESP32-P4-Function-EV-Boards. And I am quite impressed by the power of the new uC. I was able to get snes9x (a SNES emulator) running with ESP-IDF. While I got ~22 fps on an S3 (without frame dropping), I get around 55 ...
by fcipaq
Mon Jun 03, 2024 5:15 pm
Forum: ESP-IDF
Topic: Crash when accessing attribute from thread
Replies: 4
Views: 996

Re: Crash when accessing attribute from thread

Thank you, MicroController for the explanation and the suggestion! It worked perfectly!
by fcipaq
Sat Jun 01, 2024 9:49 am
Forum: ESP-IDF
Topic: Crash when accessing attribute from thread
Replies: 4
Views: 996

Re: Crash when accessing attribute from thread

Thank you, ESP_Sprite. Ah, I see... losing the 'this' pointer's value also explains: EXCVADDR: 0x00000004 The explicit conversion of "TaskFunction_t" was about a compiler error: error: cannot convert 'void (_Esp32::OSystem_Esp32::*)(void*)' to 'TaskFunction_t' {aka 'void (*)(void*)'} This really hel...
by fcipaq
Fri May 31, 2024 7:31 pm
Forum: ESP-IDF
Topic: Crash when accessing attribute from thread
Replies: 4
Views: 996

Crash when accessing attribute from thread

First of all: Hi to everyone. I have been reading here for while but never joined the community. This site really helped me a lot - thank you! Now, I have the following problem: When accessing an attribute of the instance of an object from a different thread, the system panics. This is an example co...