Search found 25 matches

by stefanoxjx
Tue Jun 19, 2018 7:21 pm
Forum: ESP32 IDF
Topic: Problem with espmqtt...
Replies: 3
Views: 639

Re: Problem with espmqtt...

Hi, many thanks for your help. With your tricks the situation is mutch improved, but often I see this: E (17244) MQTT_CLIENT: Error write data or timeout, written len = -1 E (17256) MQTT_CLIENT: Error to public data to topic=30aea419630c, qos=0 E (17249) MQTT_CLIENT: Read error or end of stream I (1...
by stefanoxjx
Sat Jun 16, 2018 4:16 pm
Forum: ESP32 IDF
Topic: Problem with espmqtt...
Replies: 3
Views: 639

Problem with espmqtt...

Hi, I've a problem with espmqtt. When I send packets with frequency greater than 50Hz I've many of this messages: Guru Meditation Error: Core 1 panic'ed (LoadProhibited) . Exception was unhandled. Core 1 register dump: PC : 0x4000c250 PS : 0x00060330 A0 : 0x800dbf79 A1 : 0x3ffcad50 A2 : 0x00000000 A...
by stefanoxjx
Sat Mar 17, 2018 9:08 am
Forum: ESP32 IDF
Topic: Mixed project c and c++ -> possible?
Replies: 2
Views: 379

Mixed project c and c++ -> possible?

Hi, I've a library in cpp and some libs in c. Exist a way to compile a mixed project? I tried to rename the C files in cpp, but I'm submerged from errors. For me, convert the cpp libs in C is very difficult, but convert C files in cpp is even more difficult. The interested libs are espmqtt (writed i...
by stefanoxjx
Sat Mar 17, 2018 9:05 am
Forum: ESP32 IDF
Topic: Problem with xTaskCreate in C++...
Replies: 7
Views: 808

Re: Problem with xTaskCreate in C++...

No, I don't call vTaskDelete, because I don't need to delete this task.

Stefano
by stefanoxjx
Fri Mar 16, 2018 9:37 am
Forum: ESP32 IDF
Topic: Problem with xTaskCreate in C++...
Replies: 7
Views: 808

Re: Problem with xTaskCreate in C++...

Hi, thanks at all for answers. I'm was wrong because I was putting "static" in header and cpp files. With "static" only to header file I can compile, but I've a "panic" messages. Guru Meditation Error: Core 0 panic'ed (IllegalInstruction) . Exception was unhandled. Core 0 register dump: PC : 0x400d2...
by stefanoxjx
Thu Mar 15, 2018 8:56 pm
Forum: ESP32 IDF
Topic: Problem with xTaskCreate in C++...
Replies: 7
Views: 808

Problem with xTaskCreate in C++...

Hi, I'm trying to write a class, but I've a compilation error. Anyone can tell me why? This is the interested code... led.h #ifndef LED_H #define LED_H #include <stdint.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" class LED { public: LED(); private: void blin...
by stefanoxjx
Sat Mar 03, 2018 5:45 pm
Forum: ESP32 IDF
Topic: Strange problem with vTaskDelay()
Replies: 5
Views: 698

Re: Strange problem with vTaskDelay()

Hi, I don't understand :( In "make menuconfig" I see: (100) Tick rate (Hz) But why if I write the line vTaskDelay(500 / portTICK_PERIOD_MS); the task work fine and with: vTaskDelay(ledMode / portTICK_PERIOD_MS); the task doesn't work though ledMode is equal to 500? Can you explain me? Thanks. Regard...
by stefanoxjx
Fri Mar 02, 2018 11:22 am
Forum: ESP32 IDF
Topic: Strange problem with vTaskDelay()
Replies: 5
Views: 698

Strange problem with vTaskDelay()

Hi, I've a strange problem with vTaskDelay(). This is the code: main.c void app_main() { ledInit(); esp_err_t err = nvs_flash_init(); printf("Hello!!!\n"); } led.h #ifndef LED_H #define LED_H #include <stdint.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" //Pro...
by stefanoxjx
Fri Mar 02, 2018 10:55 am
Forum: ESP32 IDF
Topic: Problem with SPI...
Replies: 5
Views: 697

Re: Problemi with SPI...

Hi, I tried to connect an Arduino configured to slave and data sent from esp is received.
by stefanoxjx
Tue Feb 27, 2018 4:12 pm
Forum: ESP32 IDF
Topic: Problem with SPI...
Replies: 5
Views: 697

Re: Problemi with SPI...

After 3 days of tests, I haven't solved. The latest test that I made is to write a little sketch for arduino reduced to minimum as possible and when I've seen that it work on arduino, I'had translate it for esp-idf. Arduino sketch (it works fine): #include <SPI.h> #define RST_PIN 9 // Configurable, ...

Go to advanced search