How to assign automatically & dynamically the heap in esp32 at runtime?

dayal_nigam
Posts: 4
Joined: Tue Jul 26, 2022 5:13 am

How to assign automatically & dynamically the heap in esp32 at runtime?

Postby dayal_nigam » Tue Jul 26, 2022 5:31 am

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 .

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: How to assign automatically & dynamically the heap in esp32 at runtime?

Postby ESP_Sprite » Tue Jul 26, 2022 7:22 am

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.)

dayal_nigam
Posts: 4
Joined: Tue Jul 26, 2022 5:13 am

why we use parameter_options in modbus in esp-idf

Postby dayal_nigam » Sat Jul 30, 2022 8:21 am

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]

dayal_nigam
Posts: 4
Joined: Tue Jul 26, 2022 5:13 am

why we use nvs in wifi application?

Postby dayal_nigam » Wed Aug 17, 2022 11:58 am

Can anyone explain why we use an NVS in wifi applications?

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: How to assign automatically & dynamically the heap in esp32 at runtime?

Postby ESP_Sprite » Thu Aug 18, 2022 1:30 am

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.

dayal_nigam
Posts: 4
Joined: Tue Jul 26, 2022 5:13 am

Re: How to assign automatically & dynamically the heap in esp32 at runtime?

Postby dayal_nigam » Thu Aug 18, 2022 4:58 am

I don't know how to post new topics i didn't get the option for post new topics can you please help me

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: How to assign automatically & dynamically the heap in esp32 at runtime?

Postby ESP_Sprite » Fri Aug 19, 2022 12:42 pm

...seriously?
here.png
here.png (227.67 KiB) Viewed 1955 times

Who is online

Users browsing this forum: No registered users and 96 guests