Search found 36 matches
- Thu Nov 14, 2024 12:07 pm
- Forum: General Discussion
- Topic: Critical Section Behavior
- Replies: 1
- Views: 452
Critical Section Behavior
Suppose that a Task on Core 1 has entered a Critical Section (i.e. taskENTER_CRITICAL(&lock)). Now suppose a Task (not an ISR) on Core 0 attempts to enter a Critical Section using the same lock object. Will that cause all of Core 0 to “hang” and spin waiting for lock to become available? Or, will th...
- Mon Jun 17, 2024 11:08 am
- Forum: ESP32 Arduino
- Topic: C++ Version in v3.0.1?
- Replies: 1
- Views: 759
C++ Version in v3.0.1?
What is the C++ standard used by default in ESP32 Arduino Core v3.0.1? The below code indicates that it's C++ something like "C++21" which I didn't even know was an official version? void setup() { Serial.begin(115200); delay(2000); auto ver = __cplusplus; Serial.print("C++ Version: "); Serial.print...
- Tue Apr 02, 2024 2:45 am
- Forum: ESP32 Arduino
- Topic: Can't Allocate in Heap using MALLOC_CAP_RTCRAM
- Replies: 4
- Views: 2170
Re: Can't Allocate in Heap using MALLOC_CAP_RTCRAM
but I can't help being curious what your use case is for dynamically grabbing a chunk of RTC memory? What do you gain vs static? If a global-scope instance of a class is statically allocated in RTC memory, the constructor for that class will run after the ESP wakes up from deep sleep. That may not ...
- Mon Apr 01, 2024 11:59 pm
- Forum: ESP32 Arduino
- Topic: Can't Allocate in Heap using MALLOC_CAP_RTCRAM
- Replies: 4
- Views: 2170
Re: Can't Allocate in Heap using MALLOC_CAP_RTCRAM
Thanks for the reply, @lbernstone. Following the link you provided and then digging in the core's source code, I found that the macro CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP is not defined. So, RTC FAST MEM is not available for use as heap when running the Arduino Core. I assume it must be poss...
- Sun Mar 31, 2024 1:15 pm
- Forum: ESP32 Arduino
- Topic: Can't Allocate in Heap using MALLOC_CAP_RTCRAM
- Replies: 4
- Views: 2170
Can't Allocate in Heap using MALLOC_CAP_RTCRAM
Hello. I was looking to dynamically allocate a small amount of heap memory in RTC RAM using: TheStruct *ptr = reinterpret_cast<TheStruct*>(heap_caps_malloc(sizeof(TheStruct), MALLOC_CAP_RTCRAM | MALLOC_CAP_8BIT)); However, it's returning the nullptr. Additionally, this function is returning 0: Seria...
- Fri Mar 29, 2024 6:27 pm
- Forum: ESP32 Arduino
- Topic: Documented Version of ESP32 Arduino Core???
- Replies: 4
- Views: 4124
Re: Documented Version of ESP32 Arduino Core???
chegewara, the version can be changed using the drop-down:
- Thu Mar 28, 2024 6:05 pm
- Forum: ESP32 Arduino
- Topic: Documented Version of ESP32 Arduino Core???
- Replies: 4
- Views: 4124
Re: Documented Version of ESP32 Arduino Core???
@lbernstone, interesting, thanks. In the meantime, I've found there is some past documentation (for v2.0.14 at least) on the GitHub, but it's format isn’t as nice as the web page I mentioned. To see it, go to https://github.com/espressif/arduino-esp32 , then the page for Release v.2.0.14: Screenshot...
- Thu Mar 28, 2024 11:00 am
- Forum: ESP32 Arduino
- Topic: Documented Version of ESP32 Arduino Core???
- Replies: 4
- Views: 4124
Documented Version of ESP32 Arduino Core???
What is the version of ESP32 Arduino Core documented at https://docs.espressif.com/projects/arduino-esp32/en/latest/ ? As the last word in the above URL implies, it's the "latest". But the latest what? It does not appear to be the latest released version which is v2.014. I say this because it contai...
- Fri Nov 17, 2023 11:07 pm
- Forum: Hardware
- Topic: RTC? RTC Slow Memory? RTC Fast Memory
- Replies: 1
- Views: 3671
RTC? RTC Slow Memory? RTC Fast Memory
Hi all. So, a pet peeve of mine is technical documentation that uses abbreviations and acronyms without first defining them. IMO, the Espressif documents are replete with this issue. Several references that I keep coming across are “RTC”, “RTC Slow Memory”, “RTC Fast Memory”. In typical technical us...
- Wed Aug 30, 2023 2:37 pm
- Forum: ESP32 Arduino
- Topic: High Priority Task Appearing Not to Preempt Low Priority Task???
- Replies: 7
- Views: 3760
Re: High Priority Task Appearing Not to Preempt Low Priority Task???
Confirmed the same behavior on:ESP_Sprite wrote: ↑Wed Aug 30, 2023 2:54 amWhat particular chip is this on, btw? (As in ESP32, ESP32-S2, ESP32-C3, ...)
Adafruit ESP32 Feather Huzzah: ESP-WROOM-32
ESP32 CAM: ESP32-S