Search found 35 matches
- Mon Jun 17, 2024 11:08 am
- Forum: ESP32 Arduino
- Topic: C++ Version in v3.0.1?
- Replies: 1
- Views: 721
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: 2109
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: 2109
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: 2109
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: 4056
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: 4056
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: 4056
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: 3591
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: 3681
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
- Tue Aug 29, 2023 11:46 am
- Forum: ESP32 Arduino
- Topic: High Priority Task Appearing Not to Preempt Low Priority Task???
- Replies: 7
- Views: 3681
Re: High Priority Task Appearing Not to Preempt Low Priority Task???
I'm thinking that this may be some weird behaviour in the log_i function Also, it behaves the same way with Serial.print(). FYI, see the code below using Task Notifications . Note the relative priority of the 3 tasks (1 Producer + 2 Consumers). You'll see that reflected in the order of the printout...