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/MSP430F425: Compatibility slac488 MSP430F4794 between MSP430F425

Part Number: MSP430F425
Other Parts Discussed in Thread: MSP430F4794, MSP430F427

Tool/software: TI C/C++ Compiler

Hello all, 

Watch I use the TI slac488 library msp430f4794 .MY MSP is MSP430F425 when i downlood the program:
Error [e16]: Segment DATA16_Z (size: 0x2dc align: 0x1) is too long for segment definition. At least 0xdc more bytes needed. The Problem
"-Z (DATA) DATA16_I, DATA16_Z, DATA16_N, TLS16_I = 0200-03FF", where at the time of placement the available memory ranges were "CODE: 200-3ff"
    Reserved ranges relevant to this placement:
    200-3ff DATA16_I
If you have an idea if this program can work with MSP430F425 or there is another code compatible with MSP430F425 which allows the measurement of single-phase energy !!!
There is a solution to avoid the mistake of memory space !!
help please.

  • Hi,

    Basically, the MSP430F425 has only 512 bytes RAM, which isn't enough for this project. However, the MSP430F4794 has 2kB RAM, which should be enough to hold the required 0x2DC (732 in decimal) bytes (mentioned in the error message above).

    Changing the compiler optimization settings to high in the IAR project may help, but I doubt it will eliminate 200+ bytes. There's some good discussion about this topic in the following thread.

    I'd recommend using a MSP430 with larger RAM, like the MSP430F427 in some of your previous posts. Keep in mind that MSP430F425 is NRND (not recommended for new designs).

    Regards,

    James

    MSP Customer Applications

  • Thank you

    The problem is not resolved the only solution is to find another library for the measurement of electrical energy compatible with MSP430F425. If there is another well organized code like slaac488 help me.

  • how i switch to the large memory model in IAR!!!!

**Attention** This is a public forum