platformio-vscode-ide icon indicating copy to clipboard operation
platformio-vscode-ide copied to clipboard

SVD viewer doesn't respect big endian setting

Open maxgerhardt opened this issue 10 months ago • 2 comments

Consider an Nintendo 64 with a big endian MIPS processor. A register is located at 0xa4300004 whose individual bytes (addr + 0, addr + 1, addr + 2, addr + 3) read as

0xa4300004:  0x02    0x02    0x01    0x02
right reading:RSP    RDP     RAC    IO     Version
wrong reading: IO    RAC    RDP    RSP     Version

This is the big endian value 0x02 02 01 02. PlatformiO however doesn't seem to respect this in the SVD file and parses it in little endian, causing a wrong decoding of the fields.

Image

Needed in e.g. https://github.com/maxgerhardt/platform-nintendon64

Endian setting for SVD is e.g. documented at https://arm-software.github.io/CMSIS_5/SVD/html/elem_cpu.html

maxgerhardt avatar Jan 23 '25 23:01 maxgerhardt

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 25 '25 01:04 stale[bot]

Still valid.

maxgerhardt avatar Apr 25 '25 11:04 maxgerhardt

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '25 22:06 stale[bot]

Push

maxgerhardt avatar Jun 27 '25 23:06 maxgerhardt