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.

Specifying device memory length, using RTSC



I am using an F2808 device with Code Composer 4 and DSP/BIOS 6.

When I create a new RTSC platform, and need to specify the Device Memory, from all the examples I see it looks like the memory length is specified in 16 bits.

Is this correct?  For instance, for MO SARAM and M1 SARAM, there is a total of 2K x 16.  Do I specify the total length as 0x1000 (in bytes), or 0x800 (in 16 bit words)???

My gut feeling is to specify in bytes, but does the memory length need to be specified in 16 bit words?  And if so, why? Does the compiler / linker assume all lengths are in 16 bit words?

Thanks in advance-

Jeff

  • For 28x, everything is in 16-bit words.   All sizes, etc. should be in 16-bit values.   Minimum addressable unit is 16-bits.   Compiler uses 16-bits for characters and does not do any packing of two 8-bit chars into 16-bit word.  When using 28x, pretend that a byte is 16-bits.

    -Karl-