Search found 31 matches

by pacucha42
Thu Oct 31, 2024 10:43 am
Forum: General Discussion
Topic: Loading Image From SD Card
Replies: 15
Views: 3679

Re: Loading Image From SD Card

Ok, it sounds like your main trouble is resolved. I cannot provide much help for processing pictures, not my domain. Generally, you can expect troubles with the system resources when processing any larger image data - ESP32* is embedded platform, which naturally brings in quite a few limitations :-)...
by pacucha42
Thu Oct 31, 2024 8:18 am
Forum: General Discussion
Topic: Loading Image From SD Card
Replies: 15
Views: 3679

Re: Loading Image From SD Card

You can share your VERBOSE log here and let me see - can't guarantee I'll find the root cause, though. Again: if you had managed to run the SDMMC example on your ESP32-CAM board, appropriate setup obviously exists. If you start again from that point, you should be able to find a stable configuration...
by pacucha42
Wed Oct 30, 2024 3:13 pm
Forum: General Discussion
Topic: Loading Image From SD Card
Replies: 15
Views: 3679

Re: Loading Image From SD Card

0x107 means timeout (the card didn't respond in time, in your case to ACMD41 configuration command). There is a bunch of possible reasons, but I'd try another card first (4GB should be safe size). You can also format the card on your PC to see whether it helps, but it's likely unrelated to 0x107 her...
by pacucha42
Wed Oct 30, 2024 7:34 am
Forum: General Discussion
Topic: Loading Image From SD Card
Replies: 15
Views: 3679

Re: Loading Image From SD Card

Hi @tahseenabbas52, the issue is actually in your image buffer calculation which is totally wrong, sorry: 1. I assume your JPG is really 320x240 pixels - actual image file size is used only to check the fread() succeeded, the image processing is run with hard-wired width/height. As @microcontroller ...
by pacucha42
Thu Oct 17, 2024 3:16 pm
Forum: ESP-IDF
Topic: Esp32S3 : Questions concerning SD Cards and MMC Cards
Replies: 9
Views: 1528

Re: Esp32S3 : Questions concerning SD Cards and MMC Cards

Ok I have seen you example, thank you. Using it, I managed to mount my SD Card using the following lines : ... Please, provide verbose logs. Note 1: you are using SDCard_MountCfg.allocation_unit_size = CONFIG_WL_SECTOR_SIZE, which is technically ok, but philosophically unrelated. SD cards have own ...
by pacucha42
Thu Oct 17, 2024 3:15 pm
Forum: ESP-IDF
Topic: Esp32S3 : Questions concerning SD Cards and MMC Cards
Replies: 9
Views: 1528

Re: Esp32S3 : Questions concerning SD Cards and MMC Cards

TinyUSB MSC example: https://github.com/espressif/esp-idf/tr ... e/tusb_msc
Not sure this would work with SDSPI
by pacucha42
Thu Oct 17, 2024 12:53 pm
Forum: ESP-IDF
Topic: Esp32S3 : Questions concerning SD Cards and MMC Cards
Replies: 9
Views: 1528

Re: Esp32S3 : Questions concerning SD Cards and MMC Cards

Unfortunately, eMMC chips can't be connected to ESP32* through SPI bus, only the chips with integrated SD host controller are capable of MMC communication (ESP32, ESP32S3 and ESP32P4). Eg ESP32C3 can't do: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/storage/sdmmc.html#u...
by pacucha42
Thu Oct 17, 2024 12:11 pm
Forum: General Discussion
Topic: how to check firmware bin file of another microcontroller like STM32 on esp32 before writing it to SPIFFS ?
Replies: 2
Views: 1155

Re: how to check firmware bin file of another microcontroller like STM32 on esp32 before writing it to SPIFFS ?

Hi @aygh4266, I think you need to know the STM32 firmware signing scheme first. Then you should be able to use appropriate ESP IDF cryptographic APIs to process the sign verification on ESP32 side. IDF Security documentation is available at https://docs.espressif.com/projects/esp-idf/en/latest/esp32...
by pacucha42
Mon May 20, 2024 7:43 am
Forum: ESP-IDF
Topic: f_getfree fails on assertion if no volume is mounted
Replies: 2
Views: 1028

Re: f_getfree fails on assertion if no volume is mounted

Hi @maierkomor, I assume your code looks similar to the FatFS example on the elm-chan.org site: FATFS *fs; DWORD fre_clust, fre_sect, tot_sect; /* Get volume information and free clusters of drive 1 */ res = f_getfree("1:", &fre_clust, &fs); if (res) die(res); /* Get total sectors and free sectors *...