2018-10-14 02:10 AM
I checked the data sheet of STM32F407 and it says it is little endian.
However, when I test in a real device in MDK, it shows that it is big endian. I assign an int "testttt" as 0x12345678. Then, in memory window, it shows as 0x12345678 which is big endian.
Is there anything I missed?
Thanks for your help in advance.
Solved! Go to Solution.
2018-10-14 02:19 AM
I think you missed the point that the processor doesn't perceive the numbers as being backward, you write 0x12345678, the processor and debugger see it as a 32-bit word 0x12345678.
Want to see it in byte order? Then select the debugger memory view to show BYTES rather than WORDS.
2018-10-14 02:19 AM
I think you missed the point that the processor doesn't perceive the numbers as being backward, you write 0x12345678, the processor and debugger see it as a 32-bit word 0x12345678.
Want to see it in byte order? Then select the debugger memory view to show BYTES rather than WORDS.
2018-10-20 06:48 PM
OK, I got it. Thanks very much.
2018-10-20 06:56 PM
Just find that MDK memory view can display such many options: char, int, short, long, even float and double. Cool!!!