Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: Allocate local variable into RAM

$
0
0
Hi everybody. I need to store a huge array of byte into RAM. This array is a local variable. How can I do? I have seen another post that use the function BSP_PLACE_IN_SECTION()  but it work only for global variable and I know the dimension of the real file during process. This is the situation: I have a compressed file load into program memory. My program read the dimension of decompress file into fist 2 byte (convert to unit16_t) and now generate the array. I try use malloc() to create this vector, but I have a problem to write and read in this vector. Someone can help me?

Viewing all articles
Browse latest Browse all 59170

Trending Articles