POSIX time functions in STUB

aravind.h615
Posts: 2
Joined: Sun Oct 02, 2022 2:05 am

POSIX time functions in STUB

Postby aravind.h615 » Sat Aug 05, 2023 6:12 pm

Hi All

[ Note: Without using SNTP server to get the current time , I can set the time and read the current time using POSIX functions in normal/non-stub mode]

Now , I am trying to read current time using POSIX functions in the Deep_sleep_wake_stubs . But , I keep getting "Guru Meditation Error: Core 0 panic'ed (Illegal instruction)...Stack dump detected" , when I call POSIX functions in stub.

I have followed the rules for custom wake stub as given in the programming guide [https://docs.espressif.com/projects/esp ... -stub.html]

Can anyone please tell me if we can call POSIx functions in stub?

Regards

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: POSIX time functions in STUB

Postby ESP_igrr » Tue Aug 08, 2023 1:45 pm

Hi aravind.h615,

No, unfortunately you can't. POSIX time function depend on a large amount of code in C standard library which only gets loaded along with the application, most importantly the port layer which maps POSIX functions to hardware functions. That code simply can't fit into the RTC RAM.

Who is online

Users browsing this forum: No registered users and 347 guests