Search found 110 matches

by filo_gr
Mon Jul 25, 2022 9:32 am
Forum: ESP-IDF
Topic: WiFi switch without disconnect.
Replies: 11
Views: 8495

Re: WiFi switch without disconnect.

Can you share your code? Sure! Here the Wi-Fi interface initialization: void wifi_interface_init (void) { ESP_ERROR_CHECK(esp_netif_init()); ESP_ERROR_CHECK(esp_event_loop_create_default()); wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT(); ESP_ERROR_CHECK((esp_wifi_init(&cfg))); g_p_wifi_ap = e...
by filo_gr
Thu Jul 21, 2022 2:43 pm
Forum: ESP-IDF
Topic: Virtual file system list files
Replies: 3
Views: 2398

Re: Virtual file system list files

Thank you for answering so fast. Why can't I use this http://elm-chan.org/fsw/ff/doc/readdir.html I think this function is not part of the C standard library. I never heard about it. Maybe I'm wrong and someone can tell you this better than me. However the only thing I can suggest to you is in my p...
by filo_gr
Tue Jul 19, 2022 10:27 am
Forum: ESP-IDF
Topic: Virtual file system list files
Replies: 3
Views: 2398

Re: Virtual file system list files

You can include:

Code: Select all

#include <sys/stat.h>
#include <dirent.h>
and use

Code: Select all

opendir()

Code: Select all

readdir()

Code: Select all

stat()

Code: Select all

closedir()
Also, take a look at this: https://www.tutorialspoint.com/how-can- ... -cplusplus
by filo_gr
Tue Jul 05, 2022 7:47 am
Forum: ESP-IDF
Topic: [SOLVED] Can't mount external flash after formatting
Replies: 2
Views: 2053

Re: Can't mount external flash after formatting

Did you unmount it with esp_vfs_fat_spiflash_unmount before you invalidated the partition? You're not going to be able to mount it a second time to the same mountpoint without doing that first. Thank you, you're right! I didn't release the resources and that's why I wasn't able to mount it again :)
by filo_gr
Mon Jul 04, 2022 2:09 pm
Forum: ESP-IDF
Topic: [SOLVED] Can't mount external flash after formatting
Replies: 2
Views: 2053

[SOLVED] Can't mount external flash after formatting

I'm using an external flash memory connected to my ESP32-S2. I mounted a FATFS partition on it and I can read/write files correctly. However I can't understand how to mount again the partition after I invalidate it. The way I invalidate the flash partition is by erasing a block of memory (8 sectors)...
by filo_gr
Fri Jul 01, 2022 12:32 pm
Forum: ESP-IDF
Topic: [SOLVED] Using the phy partition
Replies: 2
Views: 2545

Re: Using the phy partition

Only the PHY calibration data is stored in NVS. The PHY init data can be stored in either the "phy" partition or embedded into the application binary. The phy partition is created by default so it's a little confusing as to why the default is to embed the data in the app binary. Anyway, I guess it'...
by filo_gr
Thu Jun 30, 2022 10:44 am
Forum: ESP-IDF
Topic: [SOLVED] Using the phy partition
Replies: 2
Views: 2545

[SOLVED] Using the phy partition

Hi there, in my project there is a phy_init partition inside my custom partition table. This is the partition table: # Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x6000, phy_init, data, phy, 0xF000, 0x1000, ota_0, app, ota_0, 0x10000, 0x180000, ota_1, app, ota_1, 0x190000, 0x18...
by filo_gr
Fri May 20, 2022 1:32 pm
Forum: ESP-IDF
Topic: List of known bugs
Replies: 4
Views: 3746

Re: List of known bugs

I know that there is their official Github: https://github.com/espressif/esp-idf/issues
by filo_gr
Thu May 05, 2022 12:10 pm
Forum: ESP-IDF
Topic: Bug caused by the ESP PROG
Replies: 1
Views: 1670

Re: Bug caused by the ESP PROG

Any idea about what I'm doing wrong?

Do you know a place where I can get further helpful information?
by filo_gr
Mon Mar 21, 2022 8:24 pm
Forum: ESP-IDF
Topic: Bug caused by the ESP PROG
Replies: 1
Views: 1670

Bug caused by the ESP PROG

I'm doing experiments on my ESP32 and an ESP-PROG. I'm using a code where I deliberately put a bug. This is the following: #include <stdio.h> #include <string.h> typedef struct Params_struct { char aString[20]; void (*functionPointer)(char * data); } Params; void CalledWithFunctionPointer(char * dat...