freeing memory after osMalloc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

freeing memory after osMalloc

1,360 Views
steve88
Contributor I

Hi.  I'm running on 8156ADS with beta verision of code warrior 10.0 and Smart DSPOS.  I'm wondering what is a "memory free" method for a buffer allocated with osMalloc().

thank you.

Labels (1)
0 Kudos
Reply
1 Reply

644 Views
CrasyCat
Specialist III

Hello

 

From SDOS Concept manual "Memory manager supports allocation of memory from different memory sections using
the osMalloc() function. Note that SmartDSP OS doesn't support an equivalent
osFree() function and therefore allocated memory is never really released".

 

You may want to look at the Buffer Management feature and the osMemPart and osmemBlock functions.

This allows you to allocate a buffer and then get and free part of this buffer.

 

CrasyCat

0 Kudos
Reply