Search found 12 matches

by zilizii
Thu Jan 24, 2019 6:04 pm
Forum: Report Bugs
Topic: Suspicious Memory leak when using esp-mqtt
Replies: 3
Views: 7324

Re: Suspicious Memory leak when using esp-mqtt

Thank you for your explanation, good to know. I will read those documents to increase my knowledge.
by zilizii
Wed Jan 23, 2019 8:38 pm
Forum: Report Bugs
Topic: Suspicious Memory leak when using esp-mqtt
Replies: 3
Views: 7324

Re: Suspicious Memory leak when using esp-mqtt

After a day running seems oscillating

currently the low point the low (82292367) NextionMQTTBridge: [APP] Free memory: 213064 bytes
which is far way from the top:
I (84432367) NextionMQTTBridge: [APP] Free memory: 214876 bytes

And the same "static" code running. I do not except this difference
by zilizii
Tue Jan 22, 2019 9:51 pm
Forum: Report Bugs
Topic: Suspicious Memory leak when using esp-mqtt
Replies: 3
Views: 7324

Suspicious Memory leak when using esp-mqtt

Hello, I tries to make a small Home Automation project with a Nextion display. I use Eclipse and C++ with the ESP-IDF together. I made the first single test with the following code: void mqtt_app_start(void * parameters) { esp_mqtt_client_config_t mqtt_cfg = { .event_handle = mqtt_event_handler, .ho...
by zilizii
Tue Oct 31, 2017 8:43 pm
Forum: ESP-IDF
Topic: error message ledc_isr_register()
Replies: 16
Views: 20034

Re: error message ledc_isr_register()

I made a mistake
LEDC_DUTY_CHNG_END_HSCHn_INT_ST|LEDC_HSTIMER0_OVF_INT_ST was incorrect
LEDC_DUTY_CHNG_END_HSCHn_INT_RAW|LEDC_HSTIMER0_OVF_INT_RAW should be correct.....
by zilizii
Tue Oct 31, 2017 8:32 pm
Forum: ESP-IDF
Topic: error message ledc_isr_register()
Replies: 16
Views: 20034

Re: error message ledc_isr_register()

Hello last time I used the following part of code to catch the interrupt. I guessing I am doing something wrong / not understand the concept or missunderstand between the ESP-IDF documentation and my mind. Any help is a welcome.... I got 257 decimal value 151 times before the ESP32 reset itself.... ...
by zilizii
Tue Oct 31, 2017 7:59 pm
Forum: Report Bugs
Topic: DIV by zero in ledc.c -> ledc_set_fade_with_step() fnc in case of scale =0
Replies: 1
Views: 4251

DIV by zero in ledc.c -> ledc_set_fade_with_step() fnc in case of scale =0

Hello, I started to investigate about a strange behaviour. In case of decrease of the duty the scale used for division without to check scale is not 0. Please update. The problematic part step_num = (duty_cur - target_duty) / scale ; esp_err_t ledc_set_fade_with_step(ledc_mode_t speed_mode, ledc_cha...
by zilizii
Tue Oct 31, 2017 3:21 pm
Forum: ESP-IDF
Topic: error message ledc_isr_register()
Replies: 16
Views: 20034

Re: error message ledc_isr_register()

Hello,

In the technical documentation there is a small part:

LEDC_DUTY_CHNG_END_HSCHn_INT in the Chapter 13.2.4 Interrupts.
How I am able to invoke ISR function when this event happens?

I guess the ledc_isr_register() fnc may be the answer....
by zilizii
Tue Oct 31, 2017 2:31 pm
Forum: ESP-IDF
Topic: error message ledc_isr_register()
Replies: 16
Views: 20034

Re: error message ledc_isr_register()

Hello https://esp-idf.readthedocs.io/en/latest/api-reference/peripherals/ledc.html I just would like to use what the documentation said: Use Interrupts When configuring a LEDC channel, one of parameters selected within ledc_channel_config_t is ledc_intr_type_t and allows to enable an interrupt on fa...
by zilizii
Tue Oct 31, 2017 9:29 am
Forum: ESP-IDF
Topic: error message ledc_isr_register()
Replies: 16
Views: 20034

Re: error message ledc_isr_register()

Hello, Thank you for your response! The example is working well. I would like to use the isr part because of I do not want to write and calculate fixed waiting times. I would like to use the fade end interrupt to change the behaviour of the ledc. The Documentation of the ESP-IDF clearly described I ...
by zilizii
Mon Oct 30, 2017 7:51 pm
Forum: ESP-IDF
Topic: LEDC interrupt for fade --> how it is working?
Replies: 1
Views: 4071

Re: LEDC interrupt for fade --> how it is working?

Hello, I made some modification in the main: ledc_fade_func_install(ESP_INTR_FLAG_IRAM); ledc_isr_register(&ledc_isr_fnc, NULL, ESP_INTR_FLAG_IRAM, NULL); in the ISR: void IRAM_ATTR ledc_isr_fnc(void * arg) { uint32_t l_ulCounter = counter++; BaseType_t xHigherPriorityTaskWoken; xQueueSendFromISR(qu...