AnsweredAssumed Answered

Little endian register display

Question asked by Dean Saridakis on Apr 11, 2017
Latest reply on Apr 18, 2017 by Yiping Wang

Is there a way to define a register as little-endian in the xml used by CodeWarrior? I haven't been able to find the schema.

 

Example:

        <registers>
          <register>
            <name>example</name>
            <access>R</access>
            <register-details-file-name>blkX/example.xml</register-details-file-name>
            <offset>0</offset>
            <size>4</size>
            <base>
              <direct-base>
                <base-model>MMR_BASE</base-model>
                <base-address>0x124000</base-address>
                <base-memory-space>4</base-memory-space>
              </direct-base>
            </base>
          </register>

 

Note that bitrange does seem to handle bit being number w/ 0 as the lsb, e.g., 

      <bitrange>15:8</bitrange>

but a register of size 4 is read as big-endian.

 

Thanks,

Outcomes