This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS570LC4357: .sysmem creation for Heap without memory.c

Part Number: TMS570LC4357

Tool/software: TI C/C++ Compiler

Hi Ti Experts,

This is with respect to previous query provided below

https://e2e.ti.com/support/microcontrollers/hercules/f/312/p/805194/2994497#2994497

Heap start and end addresses i am getting properly, my understanding was wrong.
I have another question with respect to this, i am using memory.c file from the ti.
If i exclude memory.c file from my build, i could see the .sysmem section not created in map file.
Heap start and end addresses are showing save value.
when i was looking at the memory.c file, i observed the below part of code from memory.c is creating the .sysmem.
Can you please explain without these changes why .sysmem is not created, unlike other sections, and what _sys_memory will hold.

typedef struct pack
{
size_t packet_size; /* number of bytes */
struct pack *size_ptr; /* next elem in free list */
} PACKET;
#pragma DATA_SECTION(_sys_memory, ".sysmem")
PACKET _sys_memory[1];

Regards,
Somesh