Search found 6 matches

by warren
Fri Nov 29, 2019 9:40 pm
Forum: General Discussion
Topic: Adding support of HTTP server on Amazon freeRTOS
Replies: 2
Views: 337

Re: Adding support of HTTP server on Amazon freeRTOS

Take some time to explore the ESP32 API documentation at https://docs.espressif.com/projects/esp-idf/en/latest/index.html . There is some functionality here, though it may differ from what you're used to in POSIX/Linux/*BSD environments: https://docs.espressif.com/projects/esp-idf/en/latest/api-refe...
by warren
Sat Nov 09, 2019 5:03 am
Forum: General Discussion
Topic: where is libatomic?
Replies: 5
Views: 885

Re: where is libatomic?

The ESP is a 32-bit platform after all, so probably doesn't support a 64-bit atomics. You'll need to look at the xtensa instruction set to confirm but I wouldn't be holding my breath.
by warren
Tue Nov 05, 2019 6:17 pm
Forum: General Discussion
Topic: where is libatomic?
Replies: 5
Views: 885

Re: where is libatomic?

Have you tried std::atomic<long> x, that is just one "long" (or try int)?

Code: Select all

static int test()
{
    std::atomic<long> x; // long, not long long
    return x;
}
It is likely that the platform does not support an atomic that large.
by warren
Tue May 28, 2019 7:48 pm
Forum: General Discussion
Topic: ESP-IDF and BG96 GSM Module
Replies: 7
Views: 1892

Re: ESP-IDF and BG96 GSM Module

Sorry Leo, no idea on the 2nd issue. I don't have the same hardware to test.

But keep us posted if the pullup resistor solves your issue since it may provide a solution for others.

Warren
by warren
Thu May 23, 2019 6:25 pm
Forum: General Discussion
Topic: ESP32 Threading
Replies: 2
Views: 2385

Re: ESP32 Threading

To create a "thread", which is a "task" in FreeRTOS lingo, you use one of the API calls described here:

https://docs.espressif.com/projects/esp ... ertos.html

Either:
  • xTaskCreatePinnedToCore
  • xTaskCreate
There are examples shown there.
by warren
Thu May 23, 2019 6:17 pm
Forum: General Discussion
Topic: ESP-IDF and BG96 GSM Module
Replies: 7
Views: 1892

Re: ESP-IDF and BG96 GSM Module

Because you are seeing "framing" errors and "break", that is suggesting that your serial input line is floating or pulled low when you disconnect. If you add a pullup resistor to your receiving input, the receiver won't see receive data / framing errors or break.

Warren

Go to advanced search