malloc

Problem with dynamic memory allocation

Sun, 2018-09-02 23:34--uched41

Hello, I am having a little problem allocating relatively large arrays using this chip, I am using SDK 5.0.4, I have a 2 structs,

typedef struct{ uint8_t x, uint8_t y;} s1;
typedef struct{
uint8_t c;
s1* buf; // pointer to array of first struct
}s2;

然后我对th动态分配内存e second structure s2,

s2* mys2 = malloc( sizeof(s2) );

then inside an initializer for struct s2, I am allocating memory for struct s1

s2->buf = malloc( sizeof(s1)*length );

malloc/free using FreeRTOS with 1468x

Mon, 2017-09-11 10:59--ewilson90

I am using some C libraries that internally are using malloc/free for dynamic memory. Is it ok to use the standard C malloc/free if I'm running FreeRTOS on the 1468x? Does the compiler automatically link these to the correct implementations, or should I provide an override that maps them to OS_MALLOC/OS_FREE, similar to what RETARGET does for printf? What is Dialog's recommended method?

Thanks.

GTL messages and (dynamic) memory allocation

Wed, 2015-10-21 17:34--abremen

Dear support,

Currently I am implementing the GTL interface (over UART) in a custom embedded project. My first goal is to get the prox_reporter_ext project working in combination with our external processor (DA1458x_SDK\5.0.2.1\projects\target_apps\ble_examples folder). I have used the host_proxr_sdk project as a reference (DA1458x_SDK\5.0.2.1\projects\host_apps\windows\proximity\reporter\ folder).

Subscribe to RSS - malloc