Search found 12 matches

by reza_neam
Fri Sep 16, 2022 8:24 pm
Forum: ESP32 Arduino
Topic: Flash issue ESP32-PICO-MINI-02
Replies: 0
Views: 1130

Flash issue ESP32-PICO-MINI-02

Hello, I recently switched from TTGO-Micro32-v2 to ESP32-PICO-MINI-02 But I can't make it work and can't troubleshoot the source of the issue! When I connect the MCU to PC (USB-bridge) in terminal MCU endlessly prints this rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) invalid header: 0...
by reza_neam
Fri Apr 01, 2022 8:36 pm
Forum: ESP32 Arduino
Topic: SD card with ESP32-PICO-V3-02
Replies: 1
Views: 2181

SD card with ESP32-PICO-V3-02

Hi all, I am considering moving from ESP32-PICO-D4 to ESP32-PICO-v3-02 So, I am testing peripherals using ESP32-PICO-MINI-02 (ESP32-PICO-DevKitM-2). I can't communicate with the SD card because VSPI is not available (MISO & CLK pins are missing) and when I use HSPI, ESP32 doesn't boot (GPIO12 is MIS...
by reza_neam
Fri Apr 30, 2021 7:38 pm
Forum: ESP32 Arduino
Topic: Best practice for Memory management and RTOS tasks
Replies: 8
Views: 10438

Re: Best practice for Memory management and RTOS tasks

Many Thanks for your help, I got the idea.
I definitely delete setup and loop after setting up queues and tasks.
by reza_neam
Fri Apr 30, 2021 6:45 pm
Forum: ESP32 Arduino
Topic: Best practice for Memory management and RTOS tasks
Replies: 8
Views: 10438

Re: Best practice for Memory management and RTOS tasks

Thanks for pointing out the problems. I don't claim any good skills in c++ just want to get things done. :D I am also a bit puzzled about how new would work in this context. not very certain if it calls ps_malloc or malloc ! :? This can also be true in a class with members initialize by new! Truly, ...
by reza_neam
Fri Apr 30, 2021 3:56 pm
Forum: ESP32 Arduino
Topic: Best practice for Memory management and RTOS tasks
Replies: 8
Views: 10438

Re: Best practice for Memory management and RTOS tasks

@chegewarta thanks for your message. Now everything looks more clear. So, as I said I need to have access to a non-static variable (big_class here) inside the task function. Not having the task stored in the psram. I thought the following code might work without using the internal heap. volatile Big...
by reza_neam
Thu Apr 29, 2021 5:38 pm
Forum: ESP32 Arduino
Topic: Best practice for Memory management and RTOS tasks
Replies: 8
Views: 10438

Re: Best practice for Memory management and RTOS tasks

@chegewarta thanks for your reply.
If I understood correctly, the xTaskCreateStatic is storing on top of the stack.

in my case, I can store Task on the internal heap but it needs to have access to the data stored on external ps-ram.
by reza_neam
Thu Apr 29, 2021 4:23 pm
Forum: ESP32 Arduino
Topic: Best practice for Memory management and RTOS tasks
Replies: 8
Views: 10438

Best practice for Memory management and RTOS tasks

Hi everyone, I am writing an app that is highly dependent on the big objects/classes stored in the external PS-RAM. Since I can't have the classes as a static variable so I need to find the best way to pass-in the object. my first thought was to make a static pointer pointing to the class in the PS-...
by reza_neam
Wed Mar 24, 2021 8:38 pm
Forum: ESP32 Arduino
Topic: fetching local time in Arduino
Replies: 4
Views: 5187

Re: fetching local time in Arduino

So, I can minimize it to this HTTPClient http; const char *ntpServer = "pool.ntp.org"; const char *timeApiUrl = "http://worldtimeapi.org/api/ip"; http.begin(timeApiUrl); int httpCode = http.GET(); if (httpCode != 200) { printf("Unable to fetch the time info\r\n"); configTime(0, 0, ntpServer); return...
by reza_neam
Wed Mar 24, 2021 7:48 pm
Forum: ESP32 Arduino
Topic: fetching local time in Arduino
Replies: 4
Views: 5187

Re: fetching local time in Arduino

Hi Ibernstone,

Thank you for your reply. I really found it thoughtful.
i found another API to that directly gives the offset value.
see
http://worldtimeapi.org/api/ip
by reza_neam
Tue Mar 23, 2021 9:31 pm
Forum: ESP32 Arduino
Topic: fetching local time in Arduino
Replies: 4
Views: 5187

fetching local time in Arduino

Hi,

Currently, I am using pool.ntp.org to fetch the time. As you know it only returns the GMT time and if I want to convert it to the local time I need to know the offset.
I am wondering is there any way to find the offset based on the IP address of the ESP32 module?