Search found 6 matches

by sempek34
Thu Jun 20, 2024 12:33 pm
Forum: Report Bugs
Topic: Power management, sleep and wifi issue
Replies: 1
Views: 5257

Re: Power management, sleep and wifi issue

I have same project working with Ethernet this time and after some amount of time my device ceases to work.

It seems like it is going to sleep but I have no logs printed this time.

I am still working on my goal stated on my first post above.
by sempek34
Thu Jun 20, 2024 12:30 pm
Forum: Report Bugs
Topic: Power management, sleep and wifi issue
Replies: 1
Views: 5257

Power management, sleep and wifi issue

To start with here is the log I have received from task wifi: I (87124243) wifi:state: run -> init (ea0) I (87124273) wifi:pm stop, total sleep time: 0 us / 87122327391 us I (87124363) wifi:<ba-del>idx:0, tid:0 I (87124373) wifi:new:<2,0>, old:<2,1>, ap:<255,255>, sta:<2,1>, prof:1 This is the lates...
by sempek34
Fri Jun 07, 2024 7:40 am
Forum: Report Bugs
Topic: Trying to understand the mysteries of Core Dump
Replies: 6
Views: 6319

Re: Trying to understand the mysteries of Core Dump

After some deep code review I found out the problem was the pointer info being nulled during a socket close operation. I have a end point struct which holds the socket and info pointer and my socket routine basically closes socket and frees info when it detects there is a socket operation error. Hen...
by sempek34
Fri May 31, 2024 12:09 pm
Forum: Report Bugs
Topic: Trying to understand the mysteries of Core Dump
Replies: 6
Views: 6319

Re: Trying to understand the mysteries of Core Dump

"info" is pointer which in the program, it is used by multiple tasks and is thread safe as it is used with a mutex. When the count of tasks which are using "info" are zero than there is another routine frees that pointer which also waiting for the mutex indefinetely to free. In this sense I've doubl...
by sempek34
Thu May 30, 2024 1:09 pm
Forum: Report Bugs
Topic: Trying to understand the mysteries of Core Dump
Replies: 6
Views: 6319

Re: Trying to understand the mysteries of Core Dump

Thanks for the reply! For further clarification, here is the follow and previous lines of the referenced line in the core dump. if ((Area == S7AreaCT) || (Area == S7AreaTM)) WordSize = 2; if (WordLen == S7WLBit) Amount = 1; MaxElements = (info->PDUlen - 25) / WordSize; I hope that brings some color ...
by sempek34
Wed May 29, 2024 9:09 am
Forum: Report Bugs
Topic: Trying to understand the mysteries of Core Dump
Replies: 6
Views: 6319

Trying to understand the mysteries of Core Dump

Before I start the topic let me give brief summary of the setup; I am using esp-idf 5.2.1 version and esp32 based board. My project contains WiFi connection as wifi_sta and creating a socket connection with a remote ip and port in order to exchange data. Basically I have this core dump which I am ha...