How to place a constant at specific address in code memory with IAR 5.20 ?

Started by "gnnc.cn" May 6, 2009
I need to place 0x87654321 at 0x000001fc to encry my code. With MDK It's
easy to work :

const unsigned long CRW __attribute__((at(0x000001FC))) = 0x87654321 ;

But with IAR 5.20, it's difficult to me. I am new to IAR. I read the appnote
:

http://supp.iar.com/Support/?note'787&from=search+result

But get little help. Could you please to help me? Thanks in advance!


An Engineer's Guide to the LPC2100 Series