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.

use of 'load memory' in CCSv5



Hi,

 

I want to fill 16-bit values in a range of memory using the 'load memory' feature in CCSv5.

 

I have a data file 'test.dat' (generated using matlab) whose contents are as follows.

 

1651 1 002BB028 0 10

0x0

0x1

0x2

0x3

0x4

0x5

0x6

0x7

0x8

0x9

0xa

0xb

0xc

0xd

0xe

0xf

 

My problem is that the data that gets loaded to memory is always 32-bit aligned as below.

 

0x002BB028 0000

0x002BB02A 0000

0x002BB02C 0001

0x002BB02E 0000

0x002BB030 0002

0x002BB032 0000

.......and so on

 

What I would like is 16-bit aligned data as below.

 

0x002BB028 0001

0x002BB02A 0002

0x002BB02C 0003

0x002BB02E 0004

0x002BB030 0005

0x002BB032 0006

.......and so on

 

Could someone help me achieve what I am trying to do?

 

Thanks.

Luke

  • Hi Luke,

    The data alignment when loading *.dat files is determined by the size of a word on the target. You cannot currently configure it to use a different size. There is an enhancement request to support this but it has not yet been implemented.

    ki