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.

MSP430f5528 and code more than 64KB

Hi! Sorry my English!

I'm using IAR for my project. When size code more than 64KB, project don't work. I know that when code more than 64k requires usage of the extended instruction set. How to make  IAR  using of the extended instruction set. I tried in IAR Data Model to Large, but don't  work.

  • What do you mean with 'project don't work'? Does it nto compile, does the linker complain or does the code not run properly?

    You'll need to use large code model (large data model is only required when having constants in memory above 64k). IIRC, it is the default anyway.

    However, code exceeding 64k needs some special care. It is incompatible to code compiled for less than 64k address range. So all precopiled code, including libraries, needs to be rebuilt for large code model.

    Keep in mind that the 'limit' is not the code size of > or < 64k, but the code and constants and variable init values fitting into the flash below 64k address. The 5528 has 47k flash below 64k, so this is the critical point.

  • Code compiled, linked, but not run. If run code with IAR Debug, after download code start automatically and don't jump to main() function. If press Break button in IAR Debug program stop at (see screenshoot). 

      

  • Problem solved! Problem was in WDT, it worked before jump to main().

**Attention** This is a public forum