Search found 7 matches

by wesS2020
Fri Feb 04, 2022 11:30 pm
Forum: ESP-IDF
Topic: idf installation - Installation has failed with exit code 1
Replies: 2
Views: 5938

Re: idf installation - Installation has failed with exit code 1

Finally I fixed this issue.
To do that I had to disable McAfee antivirus protection. Then installation completed OK.
by wesS2020
Fri Feb 04, 2022 11:10 pm
Forum: ESP-IDF
Topic: idf installation - Installation has failed with exit code 1
Replies: 2
Views: 5938

idf installation - Installation has failed with exit code 1

I had a previous version of idf installed and working with eclipse plugin for a long time. Yesterday, I have decided to install the latest version of idf v4.4. I am using esp-idf-tools-setup-online-2.13.exe to install it. I have tried to install it in different folders but always get "Installation h...
by wesS2020
Mon May 17, 2021 1:55 am
Forum: General Discussion
Topic: Connect to wifi after light sleep
Replies: 2
Views: 5211

Re: [solved] Connect to wifi after light sleep

It looks like I solved it by just using: esp_wifi_stop() before entering lightsleep and then esp_wifi_start() after wakeup.
by wesS2020
Sun May 16, 2021 11:27 pm
Forum: General Discussion
Topic: Connect to wifi after light sleep
Replies: 2
Views: 5211

Connect to wifi after light sleep

I have spent days trying to workout why I can't reconnect to wifi after light sleep but I am not getting anywhere. Here is the code to init/stop wifi and enter sleep mode. static void oneshot_timer_callback2(void* arg){ ESP_ERROR_CHECK(esp_timer_delete(oneshot_timer2)); oneshot_timer2 = NULL; ESP_LO...
by wesS2020
Fri Mar 26, 2021 5:11 am
Forum: ESP-IDF
Topic: ESP32 variable scope problem
Replies: 4
Views: 5300

Re: ESP32 variable scope problem

Don't put definitions like that in header files, period. As dastoned said, it'll cause every C file that includes the header to have it's own 'private' version of the variable. Instead, *declare* the existence of the variable using 'extern char* ...' and then *define* (without 'extern') the variabl...
by wesS2020
Fri Mar 26, 2021 12:46 am
Forum: ESP-IDF
Topic: ESP32 variable scope problem
Replies: 4
Views: 5300

Re: ESP32 variable scope problem

Thanks for your reply but this didn't fix the problem. So, I started with a new project based on the "Hello_World" in idf example directory. I created a def.h file: #ifndef _DEF_H #define _DEF_H //#pragma once int result; #endif And another source calc.c: #include <stdio.h> #include "def.h" //extern...
by wesS2020
Thu Mar 25, 2021 6:15 am
Forum: ESP-IDF
Topic: ESP32 variable scope problem
Replies: 4
Views: 5300

ESP32 variable scope problem

I am working on converting a project from Microchip PIc32 to ESP32. Because I am using different peripherals - WiFi, SD Card, UART, I am using different "C" source files. And here I came across the problem with variables not retaining values between different source files. Here is an example: I have...