Option to choose Endianess in Microchipstudio

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it possible to configure the Watch window of Microchip Studio to selectively choose between BE/LE while debugging ?. While trying to debug a 16bit LE controller with a 16-bit BE co-processor, the Watch/memory/register windows will by default display data in BE format resulting in the data from co-processor to look confusing in this format. Is there a way through which user can choose to display the required endianess for these Windows ?.

Note : I have used the word co-processor here to indicate the CTE which itself is a slave ALU that accepts commands from the main MCU.

Last Edited: Wed. Mar 9, 2022 - 09:10 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

TAGS: Tools, Atmel Studio (AVR-related)

Clearly Absolute Rubbish. What's the purpose of these TAGS anyway ?

 

@am_sk

You probably don't wish to change the Endianness of the entire watch window but the individual item. Unfortunately the only choices I see that MPLAB offers are these:

 

I guess if you choose Hexadecimal, it's easier to visualise/convert a Big-Endian number.

 

 

Last Edited: Wed. Mar 9, 2022 - 08:37 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

N.Winterbottom , thanks.

I dont want to selectively choose, my intention here is since we have 2 components present, right now my focus in on Debugging only the ALU & hence I want the Watch/Memory AT LEAST the I/O window to show Endian corrected so that I can see the values without spending much time in finding out their memory location & do the arithmatics.

For example, the piece of code is supposed to modify PFXSPEA register whereas due to this Endian issue, the I/o window shows it as PFYSPEA which is really confusing!!. I am happy to modify the Endianness setting as a whole while debugging the ALU.

 

Last Edited: Wed. Mar 9, 2022 - 08:55 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Excuse my buffoonery - I misread Microchip-Studio as Microchip-MPLAB.

 

Now we're back into Microsoft land I wonder if any of these format modifiers would help ?

https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2015/debugger/format-specifiers-in-cpp?view=vs-2015

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks again  N.Winterbottom  but as mentioned above, I was expecting some hack to "tell" the Studio to use the desired endianess while debugging, as you can see from the above snapshots, looking for individual bits of a register's value on the I/O window (eg. 64 bit) is a nightmare. However thanks for pointing me to the format specifier stuff, until now I was aware only about the hex/dec/binary format specifiers within MicrochipStudio, thrilled to know that we have numerous format specifiers which helps to view the data in customized formats.