Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
About Little-endian to Big-endian
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
118 subscribers
Views
3474 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
About Little-endian to Big-endian
liang wang
over 12 years ago
Note: This was originally posted on 9th September 2013 at
http://forums.arm.com
If i change SC100 from little endian to big endian,
1. what should i do about software source code? Only change ADS1.2->Byte Order to big endian is ok?
2. what should i do about RTL code?
thanks!
liang wang
over 12 years ago
Note: This was originally posted on 9th September 2013 at
http://forums.arm.com
For example, if i want to write addraess 0xD0000 data 0x12345678, i should write code like this:
#ifdef __BIG_ENDIAN
*((volatile uint32 *)0xD0000) = 0x78563412;
#else // little endian
*((volatile uint32 *)0xD0000) = 0x12345678;
#endif
Am i right?
Cancel
Vote up
0
Vote down
Cancel
liang wang
over 12 years ago
Note: This was originally posted on 11th September 2013 at
http://forums.arm.com
My email :
Leonwang82@hotmail.com
Hope to reply, Thanks!
Cancel
Vote up
0
Vote down
Cancel