Search found 606 matches

by fly135
Sat Mar 17, 2018 4:13 pm
Forum: ESP-IDF
Topic: Mixed project c and c++ -> possible?
Replies: 2
Views: 5746

Re: Mixed project c and c++ -> possible?

Depends... If you want to call C code from C++, then no problem. Simply surround the C dot H includes with.... extern "C" { #include "myC.h" #include "myotherC.h" } The other way around isn't practical. But if I say it can't be done then someone will come in and show how to do it. The exported names...
by fly135
Fri Mar 16, 2018 7:13 pm
Forum: General Discussion
Topic: [resolved] I need an IDE for my development
Replies: 13
Views: 18105

Re: I need an IDE for my development

The WROVER has two serial ports. The second is for monitor/download. The first is for JTAG. I haven't tried it yet, but that's how I understand it.

John
by fly135
Thu Mar 15, 2018 3:16 pm
Forum: General Discussion
Topic: ESP32_TFT_library on M5Stack
Replies: 4
Views: 8604

Re: ESP32_TFT_library on M5Stack

I'm using the same library with the WROVER board and the demo seems to work fine. For some reason when I use it in my program I can draw lines but the screen clear doesn't work.

John A
by fly135
Wed Mar 14, 2018 4:45 pm
Forum: ESP-IDF
Topic: Setting mac address and hostname using functions.
Replies: 11
Views: 21345

Re: Setting mac address and hostname using functions.

Code: Select all

  ESP_ERROR_CHECK(esp_wifi_init(&cfg));
  // Give our wifi a mac address
  uint8_t mac[6] = { 0x10, 0x84, 0x2C, 0x80, 0, 2 };
  esp_wifi_set_mac(ESP_IF_WIFI_STA, mac);
by fly135
Wed Mar 14, 2018 4:40 pm
Forum: General Discussion
Topic: Serve HTML from SPIFFS
Replies: 11
Views: 22084

Re: Serve HTML from SPIFFS

My early experience was that just printing in a task added ~2K to the stack req.
by fly135
Tue Mar 13, 2018 5:40 pm
Forum: General Discussion
Topic: Anyone hit a task limit?
Replies: 7
Views: 8204

Re: Anyone hit a task limit?

Is there a call that I can make to see how much internal ram is left available?

John A

edit: Found it.... heap_caps_get_free_size(MALLOC_CAP_INTERNAL)
by fly135
Tue Mar 13, 2018 1:04 am
Forum: General Discussion
Topic: Anyone hit a task limit?
Replies: 7
Views: 8204

Re: Anyone hit a task limit?

Well, you can't just double it from 32768 to 65536. You get this....

E (1171) cpu_start: Could not reserve internal/DMA pool!

But 48000 did work.
by fly135
Tue Mar 13, 2018 12:17 am
Forum: General Discussion
Topic: Anyone hit a task limit?
Replies: 7
Views: 8204

Re: Anyone hit a task limit?

Well that explains it. Now I just need to figure out how to make sure I reserve memory for task creation.
by fly135
Mon Mar 12, 2018 11:12 pm
Forum: General Discussion
Topic: Anyone hit a task limit?
Replies: 7
Views: 8204

Re: Anyone hit a task limit?

More info.... I just made a loop and was able to create 65 tasks before getting an error return from xTaskCreate. I had 4M of heap left (wrover board) and 5K of stack space on the creating task (i.e. main task). So now the question is... What do I need to look at to see if I'm about out of resources...