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.

Compiler/MSP430F67791A: Need Help on Placing Functions at user defined memory segment.

Part Number: MSP430F67791A

Tool/software: TI C/C++ Compiler

Hello,

I am working on MSP430 Controller & i am using IAR Embedded Workbench IDE.

My question is - Is it possible to place different functions at different address(User defined address) in ROM?. Idea is to keep similar functions in one memory Bank(which is of 128 Kb each), so that in future if problem comes in those functions i can upgrade only that Bank using some firmware upgrade method.

I know #pragma constseg which is used to place constant variables in named segment.

  • Hello,

    I'd recommend using the #pragma location directive. If you create your own segments using this directive or the @ operator, these segments must also be defined in the linker configuration file using the -Z or -P segment control directives.

    The following links should be helpful.

    Regards,

    James

    MSP Customer Applications

**Attention** This is a public forum