Search found 39 matches

by greg-dickson
Mon Jun 16, 2025 7:17 am
Forum: Hardware
Topic: FSPI What does F stand for
Replies: 3
Views: 324

Re: FSPI What does F stand for



FSPI - Fast SPI. The prefix of the signals for GP-SPI2. FSPI bus signals are routed to GPIO pins via either GPIO matrix or IO MUX

- ESP32-S3 TRM v1.7, "30.2 Glossay"


Thank you.
Neither chatGPT, Grok, or myself found that.
However that doesn't answer the other half of my question.
Is it ...
by greg-dickson
Wed Jun 11, 2025 11:52 am
Forum: Hardware
Topic: FSPI What does F stand for
Replies: 3
Views: 324

FSPI What does F stand for

FSPI is used often in the documentation and there is no clear definition.
Could someone at Espessif please explain it.
The schematics don't show it connected to any flash on the wroom units.
Can these be used as general purpose pins and if so what are the restrictions or advantages of FSPI.
Thank ...
by greg-dickson
Mon Feb 24, 2025 8:07 am
Forum: ESP-IDF
Topic: CONFIG_WL_SECTOR_SIZE is overriding .allocation_unit_size
Replies: 0
Views: 412

CONFIG_WL_SECTOR_SIZE is overriding .allocation_unit_size

CONFIG_WL_SECTOR_SIZE is overriding .allocation_unit_size in
esp_vfs_fat_spiflash_mount_rw_wl

sdkconfig
#
# Wear Levelling
#
# CONFIG_WL_SECTOR_SIZE_512 is not set
CONFIG_WL_SECTOR_SIZE_4096=y
CONFIG_WL_SECTOR_SIZE=4096
# end of Wear Levelling

and
CONFIG_FATFS_SECTOR_512=y
# CONFIG_FATFS ...
by greg-dickson
Fri Feb 07, 2025 4:19 am
Forum: ESP-IDF
Topic: Little trick to get the latest build time as a variable in your c project
Replies: 0
Views: 865

Little trick to get the latest build time as a variable in your c project

Hi

I code in C so C++ may be a little different.
Also I am on linux so for others the COMMAND line will be different

Anyway I wanted a base timeline that was the absolute last build time every time I compiled
other methods give the last full compile time which can be quite old.
I also wanted it ...
by greg-dickson
Fri Jan 31, 2025 2:43 am
Forum: ESP-IDF
Topic: Wifi won't restart correctly after shutdown [SOLVED]
Replies: 8
Views: 3314

Re: Wifi won't restart correctly after shutdown [SOLVED]

I have now added this to my generic code to make the errors a little more clear.


const char *wifi_reason_to_name(wifi_err_reason_t reason)
{
switch (reason)
{
case WIFI_REASON_UNSPECIFIED :return "1, Unspecified reason";
case WIFI_REASON_AUTH_EXPIRE :return "2, Authentication expired ...
by greg-dickson
Fri Jan 31, 2025 2:05 am
Forum: ESP-IDF
Topic: Wifi won't restart correctly after shutdown [SOLVED]
Replies: 8
Views: 3314

Re: Wifi won't restart correctly after shutdown


Hi,
You posted code the way you stop wifi, but not how you init and start wifi.

Also, if your code and logs are more or less standard then disconnect reason 201 means the AP cant be discovered.


Thank you I did find the error elsewhere in the code where the AP details were stored incorrectly ...
by greg-dickson
Thu Jan 30, 2025 3:15 pm
Forum: ESP-IDF
Topic: Wifi won't restart correctly after shutdown [SOLVED]
Replies: 8
Views: 3314

Re: Wifi won't restart correctly after shutdown

To be complete here I will add this

time_t compile_time()
{
char source[40];
time_t t = 1736287200; // Error case
#ifdef BUILD_TIME_UNIX
sprintf(source, "BUILD_TIME_UNIX");
t = (time_t)BUILD_TIME_UNIX;
#else
struct tm tm_info; // A struct to hold the time information
char datetime_str[30 ...
by greg-dickson
Thu Jan 30, 2025 3:13 pm
Forum: ESP-IDF
Topic: Wifi won't restart correctly after shutdown [SOLVED]
Replies: 8
Views: 3314

Re: Wifi won't restart correctly after shutdown


Hi,
i have reasons asking you to show wifi init code, which i will explain later.
There is last one question:
- when you stop wifi with this function, which one is next to restart wifi and it fails?
esp_err_t wifi_stop(void)


that would be either of these


//! SNTP functions

esp_err_t sync ...
by greg-dickson
Thu Jan 30, 2025 11:05 am
Forum: ESP-IDF
Topic: Wifi won't restart correctly after shutdown [SOLVED]
Replies: 8
Views: 3314

Re: Wifi won't restart correctly after shutdown


Hi,
You posted code the way you stop wifi, but not how you init and start wifi.

Also, if your code and logs are more or less standard then disconnect reason 201 means the AP cant be discovered.

Thanks for your interest but if it is working fine on a cold boot but not after my code why do you ...
by greg-dickson
Wed Jan 29, 2025 12:33 pm
Forum: ESP-IDF
Topic: Wifi won't restart correctly after shutdown [SOLVED]
Replies: 8
Views: 3314

Wifi won't restart correctly after shutdown [SOLVED]

HI
In esp-idf I have the following shutdown code.

esp_err_t wifi_stop(void)
{
CHECK(esp_wifi_stop());
CHECK(esp_wifi_deinit());
CHECK(esp_wifi_clear_default_wifi_driver_and_handlers(STA_netif));
esp_netif_destroy(STA_netif);
CHECK( esp_event_loop_delete_default());
STA_netif = NULL;
return ...

Go to advanced search