Search found 52 matches
- Sat Nov 16, 2024 5:24 pm
- Forum: ESP-IDF
- Topic: Create custom *.bin file name
- Replies: 2
- Views: 653
Re: Create custom *.bin file name
In you project folder there is CMakeLists.txt in the root of the folder, where it says something like # The following lines of boilerplate have to be in your project's CMakeLists # in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.16) # "Trim" the build. Include the mi...
- Sat Nov 16, 2024 5:20 pm
- Forum: General Discussion
- Topic: How to upload littlefs.bin to esp32
- Replies: 3
- Views: 741
Re: How to upload littlefs.bin to esp32
Hello. You can use esptool. Install it using pip Python package manager: `pip install esptool` or `pip3 install esptool` or `python -m pip install esptool`, depending on your system. In case you want to use virtual environment, please follow these instructions: https://docs.espressif.com/projects/es...
- Wed Oct 23, 2024 12:39 pm
- Forum: ESP-IDF
- Topic: Esp32S3 : SDMMC card init problem with PSRAM Initialisation
- Replies: 1
- Views: 414
Re: Esp32S3 : SDMMC card init problem with PSRAM Initialisation
Hello.
Could you please tell me what IDF version are you using? Do you use some specific board or a custom one? How is the SD slot and PSRAM attached (GPIO pins)? Also could you please attach a log from the ESP (idf.py monitor) and your sdkconfig file? Thank you.
Could you please tell me what IDF version are you using? Do you use some specific board or a custom one? How is the SD slot and PSRAM attached (GPIO pins)? Also could you please attach a log from the ESP (idf.py monitor) and your sdkconfig file? Thank you.
- Sun Aug 25, 2024 5:19 pm
- Forum: General Discussion
- Topic: can't fail to open file
- Replies: 11
- Views: 2883
Re: can't fail to open file
Ok, I just noticed a very strange behavior. Even if my code is behaving as 'expected' (provided you delay 3 seconds and execute the weird conditional logic), the file doesn't exist when I insert my sd card in my laptop.. Even if the esp32 is able to read it back again when I mount back the sd card ...
- Fri Aug 23, 2024 3:09 pm
- Forum: General Discussion
- Topic: can't fail to open file
- Replies: 11
- Views: 2883
Re: can't fail to open file
well, for example I definitely tried to change the filename, like if it was "filetext.txt" I rename it "filetex2.txt". normally I would expect that opening the same file twice execute the 1st code block(FA_CREATE_NEW creates a new file), then the second open would execute the 2nd code block(FA_OPEN...
- Fri Aug 23, 2024 3:06 pm
- Forum: General Discussion
- Topic: can't fail to open file
- Replies: 11
- Views: 2883
Re: can't fail to open file
Hello. I am not sure why is it happening, but can you try something like this? I am using `access` to see if the file exists. #include <unistd.h> //... FIL* file = (FIL*) ff_memalloc(sizeof(FIL)); if (file == NULL) { ;/* handle NULL */ } memset(file, 0, sizeof(FIL)); FRESULT fr = 0; if (access(FILE_...
- Fri Aug 23, 2024 2:30 pm
- Forum: ESP-IDF
- Topic: some esp_vfs_fat and FatFs functions are unavailable
- Replies: 3
- Views: 1045
Re: some esp_vfs_fat and FatFs functions are unavailable
Well, yes, I am an employee of Espressif, hence "ESP_" in my nickname here :) I was able to pinpoint your issue because it was me who enabled FF_USE_EXPAND and added those helper functions to esp-idf (and they were able to make it to release v5.3) after noticing it wasn't enabled before and could ha...
- Thu Aug 22, 2024 2:51 pm
- Forum: General Discussion
- Topic: filesystem fatfs function unavailable
- Replies: 1
- Views: 731
Re: filesystem fatfs function unavailable
Please let's move the conversation to one thread, I answered in the other one: https://esp32.com/viewtopic.php?f=13&t=41464
- Thu Aug 22, 2024 2:41 pm
- Forum: ESP-IDF
- Topic: some esp_vfs_fat and FatFs functions are unavailable
- Replies: 3
- Views: 1045
Re: some esp_vfs_fat and FatFs functions are unavailable
Hello. Which esp-idf version are you using? It is only available from v5.3 stable branch (or in release/v5.3 or master branch). To make f_expand from fatfs available on lower idf version you have to modify `components/fatfs/src/ffconf.h` from `#define FF_USE_EXPAND 0` to `#define FF_USE_EXPAND 1`.
- Thu Aug 15, 2024 11:18 pm
- Forum: General Discussion
- Topic: ESP32S3 microSD read issue
- Replies: 1
- Views: 1260
Re: ESP32S3 microSD read issue
Hello. It seems like a heap corruption problem (buffer overflow, underflow, etc.). Are you sure you initialize/allocate and deinitialize/deallocate everything properly? Please see https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/system/heap_debug.html or an equivalent for ...