Changing -mcpu option for compiler/assembler/etc
Posted: Tue Jul 09, 2013 8:06 am
I would like to try changing the mcpu option for the NANO54415 so that I can use the BYTEREV instruction. In another thread, I received the following advice:
This is a cpu flags problem to the assembler problem...
from a make file add
CPUFLAG=mcpu=54455
under elcipse you need to modify the project settings in c/c++ settings -> gnuc and c++ compiler
CPUFLAG=mcpu=54455
The instructions are
byterev %d0
byterev.l %d0
For the life of me, I can't figure out how to set this option. I tried adding "-mcpu=54455" to the Miscellaneous options for GNU C++ Compiler, but then it did not replace the default -mcpu=5206e option so I got an error. I tried modifying the PROPERTIES file under the NBEclipse/NANO54415 folder to include the CPUFLAG=mcpu=54415, but it had no effect. Can someone please direct me through the process of replacing the -mcpu=5206e with -mcpu=54455? I do not see in the GUI where this value is defined.
This is a cpu flags problem to the assembler problem...
from a make file add
CPUFLAG=mcpu=54455
under elcipse you need to modify the project settings in c/c++ settings -> gnuc and c++ compiler
CPUFLAG=mcpu=54455
The instructions are
byterev %d0
byterev.l %d0
For the life of me, I can't figure out how to set this option. I tried adding "-mcpu=54455" to the Miscellaneous options for GNU C++ Compiler, but then it did not replace the default -mcpu=5206e option so I got an error. I tried modifying the PROPERTIES file under the NBEclipse/NANO54415 folder to include the CPUFLAG=mcpu=54415, but it had no effect. Can someone please direct me through the process of replacing the -mcpu=5206e with -mcpu=54455? I do not see in the GUI where this value is defined.