I created an SVD file for the RX130 micro and I noticed that for some registers the values were flipped. For example the CMCNT register at address offset 0x2 of the cmt0 peripheral at 0x88002 was reading the value that was supposed to be for the CMCOR register at offset 0x4. Interesting enough the first register CMCR had the correct value.

I read out the entire peripheral at its base address with gdb and my suspicion was correct. Somehow these two register values got flipped.

I tried writing to each one and the value I wrote to one register was saved to the other register.

Also for other registers, the values did not match what was in memory either.

I tried to debug the extension using the VS Code extension host(Used Launch Extension Target, Debug Server Target was throwing a weird error) to find out what was going on, but I encountered too many issues I could not resolve. Is there any way you could help me with this?
I created an SVD file for the RX130 micro and I noticed that for some registers the values were flipped. For example the

CMCNTregister at address offset0x2of the cmt0 peripheral at0x88002was reading the value that was supposed to be for theCMCORregister at offset0x4. Interesting enough the first registerCMCRhad the correct value.I read out the entire peripheral at its base address with gdb and my suspicion was correct. Somehow these two register values got flipped.

I tried writing to each one and the value I wrote to one register was saved to the other register.

Also for other registers, the values did not match what was in memory either.

I tried to debug the extension using the VS Code extension host(Used Launch Extension Target, Debug Server Target was throwing a weird error) to find out what was going on, but I encountered too many issues I could not resolve. Is there any way you could help me with this?