This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5342: Set ISR's address fixed and modify code range

Part Number: MSP430F5342

Dear TI experts,

Now I have some problems with lnk430f5342.xcl which is known as link file.The IDE which I'm using is IAR For MSP430.

1.What's the difference between LOW MEMORY 0-0FFFF and ALL MEMORY 0-FFFFF

2.If I want to modify code range,can I set the code range like the picture as follow,LOW MEMORY:4400-FBFF and All MEMORY:4400-FBFF,10000-137FF

and FC00-FFFF with nothing except interrupt vectors.

3.How can I set Interrupt Service Routine fixed?If I want to set ISR's address in the range 4400-FBFF,or 10000-137FF,what should I modify this .xcl?With the ISR in the range 10000-137FF,16bit interrupt vectors can pointer to the address over 0xFFFF?If not,which range should I choose?

4.In summary,if I want to set the code range in 4400-FBFF,10000-137FF,ISR in fixed address,is there any .xcl files to refer to about MSP430F5342?

Best Regards!

  • "Low memory" can be addressed using 16-bit pointers. "High memory" requires 20-bit pointers. Since the CPU has to do a little extra work to deal with 20-bit pointers, there's some small advantage to using low memory unless your code doesn't fit.

    CCS has the notion of "small model" (fits in low memory) and "large model" (uses both low and high memory). This is a setting in the Project. I expect IAR has something analogous.

    Since interrupt vector words are only 16 bits, any ISRs (that they point to) must be in low memory. The compiler/linker arrange for this using specially-named code sections.

    Placing an ISR (code) at a fixed address is something I've never wanted to do, so I have to defer to the IAR wizards on that one.

    Normally the linker files take care of all this "out of the box". Is something malfunctioning?

  • Dear Bruce:

    Actually,I want to realize OAD in my MSP430 project and this is related  to the flash operation above 0xFFFF.

    So I ask these questions for help and fortunately you replied to me in detail.

    Now I can upgrade my MSP430 Program over air successfully after several days' work.

    :)

    Thanks,Bruce.

    Best Regards

**Attention** This is a public forum