agaelema 39 Posted September 21, 2013 Share Posted September 21, 2013 I'm starting to learn the Stellaris programming. How I use the "no operration" or "noop" in the Stellaris. I'm using the CCS 5.5. In the MSP430 I use "_nop();", but in the Stellaris this code don't work. Thanks. Quote Link to post Share on other sites
monpetit 0 Posted September 21, 2013 Share Posted September 21, 2013 "this code don't work" means compile error, or unexpected behavior? Quote Link to post Share on other sites
Lyon 3 Posted September 21, 2013 Share Posted September 21, 2013 Hi, Some comments first: In general, depends on tool chain - some usual tools have a syntax like this: __asm(" nop\n"); The space before instruction is a TAB for some toolchains - take care. And some other comments (from ARM manual): NOP does nothing - and is not necessarily a time-consuming NOP. The processor might remove it from the pipeline before it reaches the execution stage. Can usually used for padding, for example to place the following instruction on a 64 bit boundary. L. agaelema 1 Quote Link to post Share on other sites
agaelema 39 Posted September 21, 2013 Author Share Posted September 21, 2013 In the first time that I used "_nop_()", the command not worked and the CCS jumped the break point, but now worked well. One new question, when I started a new project (with StellarisWare) appears one warning "#10210-D creating ".stack" section with default size of 0x800; use the -stack option to change the default size". This warning doesn't appeared on the first test, what it means? I used this site as a guide for using the StellarisWare: hackaday.com/2012/10/14/using-stellarisware-with-the-launchpad/ Thanks for the help. Quote Link to post Share on other sites
agaelema 39 Posted September 21, 2013 Author Share Posted September 21, 2013 @@Lyon, I tested "__asm(" nop\n");" and worked well too, thanks. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.