- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
My program has hard coded default values that are uint32. In trying to reuse code from PSoC 3 programs we've done in the past, I noticed in debug that the bytes of the values are the reverse of the those in the PSoC 3. For instance if I store a value of 0x1E000000, and I view it in Debug mode, it is stored as 0x0000001E. The values are retrieved correctly but in my case, I store different items in bytes of the uint32. Is there a flag or option that can flip the Endian byte order or do I have to live with this?
Thank you,
Nick
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will have to live with that. The endianess of PSoC3 and 5 is different. Although the ARM core allows for changing the endianess by an assembly instruction, but the compiler (GCC) will not work with that correctly.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will have to live with that. The endianess of PSoC3 and 5 is different. Although the ARM core allows for changing the endianess by an assembly instruction, but the compiler (GCC) will not work with that correctly.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Bob. I have these low level routines that make use of single bytes in int32s and in the most used case I was able to just reverse the order of an array index.