Hey All,
I am new to ESP-IDF .Please explain me how can i dynamically assign stack in esp32 so that it will automatically take stack at runtime
i find some of the malloc and realloc functions in ESP-IDF but i was not able to understand it clearly .
How to assign automatically & dynamically the heap in esp32 at runtime?
-
- Posts: 4
- Joined: Tue Jul 26, 2022 5:13 am
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: How to assign automatically & dynamically the heap in esp32 at runtime?
There is no way to dynamically resize stack. You need to assign an amount that is large enough when you start the task.
(Also, you posted your question as the response in another topic; I split it into its own topic for you.)
(Also, you posted your question as the response in another topic; I split it into its own topic for you.)
-
- Posts: 4
- Joined: Tue Jul 26, 2022 5:13 am
why we use parameter_options in modbus in esp-idf
I didn't clearly understand why we are using this mb_parameter_opt_t can anyone please explain me this!!
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
param_opts
Parameter Options
Limits, options of characteristic used during processing of alarm in user application (optional)
union mb_parameter_opt_t
#include <esp_modbus_master.h>
Modbus parameter options for description table.
Public Members
int opt1
Parameter option1
int opt2
Parameter option2
int opt3
Parameter option3
struct mb_parameter_opt_t::[anonymous] [anonymous]
int min
Parameter minimum value
int max
Parameter maximum value
int step
Step of parameter change tracking
struct mb_parameter_opt_t::[anonymous] [anonymous]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
param_opts
Parameter Options
Limits, options of characteristic used during processing of alarm in user application (optional)
union mb_parameter_opt_t
#include <esp_modbus_master.h>
Modbus parameter options for description table.
Public Members
int opt1
Parameter option1
int opt2
Parameter option2
int opt3
Parameter option3
struct mb_parameter_opt_t::[anonymous] [anonymous]
int min
Parameter minimum value
int max
Parameter maximum value
int step
Step of parameter change tracking
struct mb_parameter_opt_t::[anonymous] [anonymous]
-
- Posts: 4
- Joined: Tue Jul 26, 2022 5:13 am
why we use nvs in wifi application?
Can anyone explain why we use an NVS in wifi applications?
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: How to assign automatically & dynamically the heap in esp32 at runtime?
Can you not post questions that have nothing to do with eachother in the same topic? It all but guarantees you won't get an answer, as the people who can answer the later questions won't click on your topic.
-
- Posts: 4
- Joined: Tue Jul 26, 2022 5:13 am
Re: How to assign automatically & dynamically the heap in esp32 at runtime?
I don't know how to post new topics i didn't get the option for post new topics can you please help me
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Who is online
Users browsing this forum: Bing [Bot] and 94 guests