Search found 8 matches

by zhenghaku
Wed Mar 23, 2022 4:17 am
Forum: ESP32 Arduino
Topic: if WiFi not connected, it crashes after a few loops
Replies: 1
Views: 1780

Re: if WiFi not connected, it crashes after a few loops

I also ruled out the power issue, by powering the board with a smartphone charger. I even changed a board, it still crashed. The stack trace decoder gives: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0 register dump: PC : 0x4009006e PS : 0x00060433 A0 : 0x8...
by zhenghaku
Tue Mar 22, 2022 1:06 pm
Forum: ESP32 Arduino
Topic: if WiFi not connected, it crashes after a few loops
Replies: 1
Views: 1780

if WiFi not connected, it crashes after a few loops

I got an application that calls WiFi.begin(ssid, password); and tries to connect to an known AP. Then, no matter if the WiFi is connected or not, another work thread is started. This thread has nothing to do with WiFi. The work thread will just loop 4-7 time before the ESP32 crashes. I use xTaskCrea...
by zhenghaku
Fri Sep 04, 2020 10:51 am
Forum: ESP-IDF 中文讨论版
Topic: ESP-PROG可以上传但是不能调试(之前可以调试)
Replies: 2
Views: 4336

Re: ESP-PROG可以上传但是不能调试(之前可以调试)

谢谢,后来不知为啥,又正常可以用了。但是调试的时候有个奇怪的问题,
他经常不能停在我设的断点上,有时候挺在前面有时候停在后面。然后step over也不太灵,进常一下就不知道跑到哪里去了。step into也是的,行为很奇怪。
我下面某一行代码会crash,但是,不能停在哪一行上面也进不去,挺在前面,然后step into就crash了。很奇怪。
by zhenghaku
Thu Sep 03, 2020 5:01 am
Forum: ESP-IDF 中文讨论版
Topic: ESP-PROG可以上传但是不能调试(之前可以调试)
Replies: 2
Views: 4336

ESP-PROG可以上传但是不能调试(之前可以调试)

大家好,我在使用VSCODE+platformio开发调试ESP32。 我买了2个ESP-PRog,其中一个还没开始用就坏了,任务管理器里看不到。 另外一个可以用,挺好的debug了几次都没问题。但是,突然有一天,不能用了,可以上传,我用的是ESP-Prog上传的,但是点调是的时候就不行。程序基本没改过,没有使用IO,之前可以调试,现在就不行,显示: Error: timed out while waiting for target halted / 4 - 2 Error: xtensa_wait_algorithm: not halted 0, pc 0x40090d40, ps 0x60...
by zhenghaku
Tue Jul 21, 2020 4:27 pm
Forum: ESP-IDF
Topic: cannot build using esp-idf v3.3, missing cc1 error
Replies: 0
Views: 2054

cannot build using esp-idf v3.3, missing cc1 error

Hi, I was trying to build some lib that only support esp-idf v3.3, the micropython to be specific. I followed the steps on the v3.3 docs to install the tool chain. When I do make, it give me this error: xtensa-esp32-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory I reinstall t...
by zhenghaku
Mon Jul 20, 2020 2:26 am
Forum: ESP-IDF
Topic: can not build when using c++
Replies: 11
Views: 13598

Re: can not build when using c++

Thank you very much fro being really helpful. :D
by zhenghaku
Fri Jul 17, 2020 8:00 am
Forum: ESP-IDF
Topic: can not build when using c++
Replies: 11
Views: 13598

Re: can not build when using c++

Finally, after hours of researching and trying I figure it out!
If you are using functions in .c file you have to put the #include in the extern "C" block, like:

Code: Select all

extern "C" {
   void app_main();
   #include "startWifi.h"
}
by zhenghaku
Thu Jul 16, 2020 11:11 am
Forum: ESP-IDF
Topic: can not build when using c++
Replies: 11
Views: 13598

can not build when using c++

Hi, I am new to ESP32. I am using PlatformIO and ESP-IDF framework. I tried to use c++ to program my esp32. I copied the example code here: https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html And make it c++ by split it into a cpp file and a c file...