Hi Marco,
My apologies for the delay in responding to your thread. Your definition in the LDF as above for the 16-bit wide memory section is not valid - if you are declaring a 16-bit WIDTH for a section, you also need to modify the TYPE to SW RAM (DM RAM is 32-bit).
This will allow you to place your heap within a 16-bit memory section, however I should advise that on SHARC the addressable unit is 32-bit - all data types such as short, char, int are a minimum of 32-bit. Configuring the LDF in this way will allow you use a 16-bit memory section, however the libraries will allocate based on the size of the data being allocated.
The Compiler and Libraries Manual states:
Analog Devices does not support data sizes smaller than the addressable unit size on the processor. For the ADSP-21xxx processors, this means that both short and char have the same size as int. Although 32-bit chars are unusual, they do conform to the standard.
Is there a particular reason you are looking to use a 16-bit wide heap/data?
Regards,
Craig.