Part Number: TMS320F28377S
Hi,
I'm working with a driver for our embedded device that needs integration to the customer's application. This driver can be switched to big endian reflecting the endianess of the customer's host controller. I would like to test if the driver's big endian adaptation works in real life.
Somewhere I might have picked up that for some of the C28x controllers it might be possible to switch the endianess. Of course I don't mean the endianess at byte level; this is intrinsically fixed since they address memory in 16 bit chunks. I rather mean on the word level.
The C28x I know so far put the least significant word of a 32 bit value on the low address and the most significant one on the high address:
32-bit value: 0x12345678
C28x Memory Map (little endian word order)
------------------------------------------
Address ¦ Word Content
------------+--------------
0x0100 ¦ [0x5678] <-- low word (stored first / lower address)
0x0101 ¦ [0x1234] <-- high word (stored second / higher address)
0x0102 ¦ [ ... ]
0x0103 ¦ [ ... ]
------------+--------------
CPU reads 32-bit from 0x0100:
+---------------------+
¦ 0x0101 ¦ 0x0100 ¦
+---------------------+
¦ [0x1234] ¦ [0x5678] ¦
¦ high word¦ low word ¦
+---------------------+
^ ^
MSB LSB
Question: is there a register to switch C28x family controllers to big-endian word order as illustrated below?
Hypothetical big endian word order
----------------------------------
Address ¦ Word Content
------------+--------------
0x0100 ¦ [0x1234] <-- High Word (would be at lower address)
0x0101 ¦ [0x5678] <-- Low Word (would be at higher address)
0x0102 ¦ [ ... ]
0x0103 ¦ [ ... ]
------------+--------------
Thank you,
Mark