Search found 1690 matches

by ESP_igrr
Thu Jan 21, 2021 11:41 am
Forum: ESP-IDF
Topic: Read file from an external flash after a reset
Replies: 3
Views: 493

Re: Read file from an external flash after a reset

Hi campestring,

Could you try adding the following call at the end of the example?:

esp_vfs_fat_spiflash_unmount(base_path, s_wl_handle);

This should write all the data to flash and unmount the partition.
by ESP_igrr
Sun Dec 27, 2020 11:49 pm
Forum: ESP-IDF
Topic: Unable to flash FAT FS on External Flash
Replies: 2
Views: 641

Re: Unable to flash FAT FS on External Flash

Hi tsctrl, 1. How do i flash this external flash similar like internal flash using the mkspiffs and esptool? 2. Since its is fatfs, is there way to preload the flash content using other tools? Currently we don't have such a tool, but we plan to develop it in Q1 2021. 3. i have 'storage', spiffs at 0...
by ESP_igrr
Sun Dec 27, 2020 12:12 am
Forum: ESP-IDF
Topic: Compiling example prject under windows attempts to use MSVC
Replies: 2
Views: 530

Re: Compiling example prject under windows attempts to use MSVC

Could you please try removing the build directory (to get rid of CMakeCache.txt), and then follow these instructions? https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#using-cmake-directly. If this still doesn't work (MSVC cl.exe is detected instead of xtensa c...
by ESP_igrr
Thu Dec 24, 2020 12:56 pm
Forum: ESP-IDF
Topic: unicore -> more IRAM0 ?
Replies: 2
Views: 534

Re: unicore -> more IRAM0 ?

Hi tvoneicken, could you please attach the sdkconfig file of your project? A few options you can adjust to reduce IRAM usage: CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y CONFIG_ESP32_WIFI_IRAM_OPT=n CONFIG_ESP32_WIFI_RX_IRAM_OPT=n CONFIG_ESP_PANIC_HANDLER_IRAM=n CONFIG_SPI_MASTER_ISR_IN_IRAM=n CONF...
by ESP_igrr
Tue Dec 01, 2020 11:22 pm
Forum: General Discussion
Topic: QEMU: UART RX/TX
Replies: 1
Views: 623

Re: QEMU: UART RX/TX

Hi Cupcake,

I think the issue you are seeing is due to the fact that UART_RXFIFO_TOUT interrupt is not implemented in QEMU. Without it, the software doesn't get notified when some amount of data gets received in UART FIFO, and the amount is less than the RX threshold.
by ESP_igrr
Tue Dec 01, 2020 7:31 am
Forum: General Discussion
Topic: PSRAM ESP32 (esp idf)
Replies: 4
Views: 1122

Re: PSRAM ESP32 (esp idf)

Could you post your sdkconfig file, please?
by ESP_igrr
Sun Nov 29, 2020 7:27 pm
Forum: ESP-IDF
Topic: How best to handle firmware updates
Replies: 1
Views: 548

Re: How best to handle firmware updates

If you are using ESP-IDF, you can implement firmware updates (OTA updates) from any medium. There are 3 main functions: esp_ota_begin, esp_ota_write, esp_ota_end (see https://docs.espressif.com/projects/esp-idf/en/stable/api-reference/system/ota.html#_CPPv413esp_ota_beginPK15esp_partition_t6size_tP1...
by ESP_igrr
Sat Nov 28, 2020 9:48 pm
Forum: General Discussion
Topic: PSRAM ESP32 (esp idf)
Replies: 4
Views: 1122

Re: PSRAM ESP32 (esp idf)

Hi mohasrj,
To place static data into PSRAM, you can enable CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY option in menuconfig, and then declare your variable with EXT_RAM_ATTR attribute.
by ESP_igrr
Sun Nov 22, 2020 10:49 pm
Forum: General Discussion
Topic: app_main and task core pinning
Replies: 3
Views: 917

Re: app_main and task core pinning

Perhaps in a future release having a task delete itself upon function return would make sense. It doesn't break any existing functionality, and would make things more intuitive IMO. But either way its a minor issue, and I can just use vTaskDelete(NULL) easily enough. We had considered that, but dec...
by ESP_igrr
Sun Nov 22, 2020 9:39 pm
Forum: General Discussion
Topic: app_main and task core pinning
Replies: 3
Views: 917

Re: app_main and task core pinning

Hi kaisha, I was going to look at the functions start_cpu0 and start_cpu1, but they are not actually in components/esp32/cpu_start.c (as stated by the docs). That file actually doesn't exist either (at Thanks for the note, will fix the docs! app_main function is called from a task pinned to CPU 0. T...

Go to advanced search