Search found 3 matches
- Sun Mar 10, 2019 12:37 pm
- Forum: ESP-IDF
- Topic: esp_console.h init and deinit issue
- Replies: 1
- Views: 2974
esp_console.h init and deinit issue
In a project I'm working on I am using esp_err_t esp_console_init(const esp_console_config_t* config) and esp_err_t esp_console_deinit() In the scenario when I'm using them in the order init -> deinit -> init I get the error ESP_ERR_INVALID_STATE. Debugging shows that this is because s_tmp_line_buf ...
- Tue Jun 27, 2017 7:07 am
- Forum: ESP32 Arduino
- Topic: Crash in timer interrupt
- Replies: 3
- Views: 6882
Re: Crash in timer interrupt
micros() returns the number of microseconds elapsed since startup, so it probably just reads a timer value configured by Arduino.h. this is the setup for the timer: hw_timer_t * timer = NULL; void setup(){ timer = timerBegin(0, 80, true); timerAttachInterrupt(timer, &onTimer, true); timerAlarmWrite(...
- Mon Jun 26, 2017 2:33 pm
- Forum: ESP32 Arduino
- Topic: Crash in timer interrupt
- Replies: 3
- Views: 6882
Crash in timer interrupt
If I uncomment "bigBuf", all parts of the code works as intended. When i comment "bigBuf" I get "Guru Meditation Error of type IllegalInstruction occurred on core 1" and I have no idea why. Any help would be appreciated. unsigned long bigBuf[numSamplesToTake]; void IRAM_ATTR onTimer(){ if (isSamplin...