Hi,
The CONTROL register (and BASEPRI) are mapped in the new GDB server as int types (4 bytes). I thought first that this was not right and that it should be 1 byte.
But it seems that it is 4 bytes (with a lot of reservations in it) but the endianesses of these registers are wrong.
The CONTROL is swapped over 4 bytes and the BasePri has an correct word swap but the word it self is wrong
. See output below.
output snippet:
The BasePri gives 0x2800 back, should be 0x28.
The CONTROL gives 0x2000000, should be 0x2.
Regards
The CONTROL register (and BASEPRI) are mapped in the new GDB server as int types (4 bytes). I thought first that this was not right and that it should be 1 byte.
But it seems that it is 4 bytes (with a lot of reservations in it) but the endianesses of these registers are wrong.
The CONTROL is swapped over 4 bytes and the BasePri has an correct word swap but the word it self is wrong


output snippet:
The BasePri gives 0x2800 back, should be 0x28.
The CONTROL gives 0x2000000, should be 0x2.
Regards
The post was edited 3 times, last by EmBlocks ().