- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks that the format is in little endian.
Is there a way to configure it to big endian?
Solved! Go to Solution.
- Labels:
-
PSoC Creator Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the PSoC 5 uses the GCC compiler and it is in little endian format. To change the endianess just add the custom flag "-mbig-endian" in the command line section provided in the compiler options of the build settings as shown below:
You can find the list of custom flags available here: https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
However, please note that our architecture supports only little endian format and changing it might prove disastrous for your project.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i dont thinks is there any way to placed the data in the next three bytes in memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is an ARM machine instruction to set/change the endianess. But I am sure that neither C-compiler nor the components will work after a change. What is the reason for your question, what do you need to perform?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Bob.
I am using this data in the communication with other device.
Just wanted to know if there is a standard way to cahnge, befoe I make the conversion myself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the PSoC 5 uses the GCC compiler and it is in little endian format. To change the endianess just add the custom flag "-mbig-endian" in the command line section provided in the compiler options of the build settings as shown below:
You can find the list of custom flags available here: https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
However, please note that our architecture supports only little endian format and changing it might prove disastrous for your project.
Regards,
Dheeraj