EmbeddedRelated.com
Forums

IAR Inline Assembly Error Unknown symbol

Started by Addison Mayberry July 19, 2012
I just upgraded to the latest version of IAR Kickstart (code-limited). When I tried recompiling my code (which includes a lot of inline assembly), I got a large number of errors where there were none before. I found the issue, and reproduced it in the simple program below:



This generates two errors on the second asm line, saying: "Unknown symbol in inline assembly: 'test_label'", and "Syntax error in inline assembly: 'Error[54]: Expression can not be forward.'" I'm really surprised, as this code follows all the conventions as far as I know. Any thoughts on what could be going on?

An Engineer's Guide to the LPC2100 Series

Not sure what's up, but I do know that the newer versions of EWARM are way more finicky about having correct C syntax.

Your code worked fine for me using EWARM 5.40 but I had to
change the jmp to a branch instruction because it did not know what a jmp instruction was. That seems fine to me though.



The changes in IAR's requirements are why I have not updated to the newer versions of EWARM. Our code is working as is, even though we have to get around some IAR bugs with 5.40 Newer versions don't quite compile "as is" without modifications and so would require a complete and lengthy test of the workings of our products, so we'll just use the old stuff for now.

boB