i dont thinks is there any way to placed the data in the next three bytes in memory.
1 of 1 people found this helpful
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?
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.
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.