Search found 643 matches

by mzimmers
Wed Jul 25, 2018 8:45 pm
Forum: General Discussion
Topic: am I running out of heap?
Replies: 20
Views: 21675

Re: am I running out of heap?

So, do you agree that it seems like I'm running out of memory?

Bluetooth isn't enabled in my make sdkconfig file. Is calling this routine really going to help in this case?

If I do call esp_bt_controller_mem_release(ESP_BT_MODE_BTDM), do I need to call esp_bt_controller_deinit() first?

Thanks...
by mzimmers
Wed Jul 25, 2018 6:52 pm
Forum: General Discussion
Topic: am I running out of heap?
Replies: 20
Views: 21675

am I running out of heap?

Hi - I've got an app that is producing this error message: assertion "next > (intptr_t)block" failed: file "C:/esp-idf-release-v3.2/components/heap/multi_heap.c", line 124, function: get_next_block abort() was called at PC 0x400db10f on core 0 0x400db10f: __assert_func at /Users/ivan/e/newlib_xtensa...
by mzimmers
Wed Jul 25, 2018 5:18 pm
Forum: General Discussion
Topic: sleep mode and restarting Wifi
Replies: 9
Views: 25202

Re: sleep mode and restarting Wifi

Debugging this is miserably difficult...I really need an IDE.

So what happens to the other tasks when one task calls esp_light_sleep_start()? Do they suspend as well, or do they continue?
by mzimmers
Tue Jul 24, 2018 9:09 pm
Forum: General Discussion
Topic: meaning of hpoint in ledc_channel_config_t?
Replies: 1
Views: 3900

meaning of hpoint in ledc_channel_config_t?

Hi - Today I began converting from IDF v3.0 to v3.2. One change I discovered was the addition of a field hpoint to the ledc_channel_config_t struct. I can't find any documentation on it. I found an example that set hpoint = LEDC_HPOINT_HSCH0, and I tried that, but then my LED never came on. I set it...
by mzimmers
Tue Jul 24, 2018 7:00 pm
Forum: General Discussion
Topic: sleep mode and restarting Wifi
Replies: 9
Views: 25202

Re: sleep mode and restarting Wifi

Thank you. I'd like to confirm that I understand how this works. In the following code passage: // enable wakeup timer. esp_sleep_enable_timer_wakeup(SLEEP_INTERVAL); err = esp_wifi_stop(); // sleep. ESP_ERROR_CHECK(esp_light_sleep_start()); // upon waking, get the Wifi going again. err = esp_wifi_s...
by mzimmers
Mon Jul 23, 2018 10:07 pm
Forum: General Discussion
Topic: sleep mode and restarting Wifi
Replies: 9
Views: 25202

Re: sleep mode and restarting Wifi

Thanks, igrr. So, do I need to call stop and disconnect, or is stop enough?
by mzimmers
Mon Jul 23, 2018 10:06 pm
Forum: General Discussion
Topic: weird problem with gpio_config
Replies: 1
Views: 3162

weird problem with gpio_config

Here's the code fragment: void PowerMgr::powerMgr_task(TaskParams *params) { LedQueueEntry lqe; TickType_t delay; gpio_config_t gpioConfig; esp_adc_cal_characteristics_t adcCharBattery; // ADC characterization (see docs) Message msg(params); esp_err_t err; string s; stringstream ss; m_params = param...
by mzimmers
Mon Jul 23, 2018 8:00 pm
Forum: General Discussion
Topic: sleep mode and restarting Wifi
Replies: 9
Views: 25202

Re: sleep mode and restarting Wifi

Here's a code fragment that shows what I'm trying to do. I welcome any input. // if we're on battery power. else if (m_powerSourceNow == POWER_SRC_BATTERY) { // if we're transitioning to battery power, // turn off the LED, enable the pushbutton wakeup // and stop Wifi. if (m_powerSourcePrevious != m...
by mzimmers
Mon Jul 23, 2018 7:52 pm
Forum: General Discussion
Topic: sleep mode and restarting Wifi
Replies: 9
Views: 25202

Re: sleep mode and restarting Wifi

Hi Hassan - I'm willing to use either light or deep sleep. I've tried both, but neither seem to work as I expected. No, I hadn't tried that example. In fact, I wasn't aware of the esp_wifi_set_ps() routine. The readthedocs page is somewhat brief on this; is there somewhere else this is better descri...
by mzimmers
Mon Jul 23, 2018 6:50 pm
Forum: General Discussion
Topic: sleep mode and restarting Wifi
Replies: 9
Views: 25202

sleep mode and restarting Wifi

Hi all - I'm trying to implement the use of one of the sleep modes for power conservation. My initial idea was to have a low-power loop that: shuts down wifi (via esp_wifi_disconnect) enters a timed sleep mode restarts wifi does some processing I don't know what I'm doing wrong, but I don't seem to ...