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.

MSP430F5438 RAM

Other Parts Discussed in Thread: MSP430F5438

I use MSP430F5438(rev.L) in the project. I can't solve a problem. When I create an array more than 4,5 KB, at loading in chip IAR behaves incorrectly.

unsigned char fBuf[2048];
unsigned char sBuf[2048]; / /WORKS TRULY

unsigned char fBuf[2048];
unsigned char sBuf[4096]; //Doesn't work

Why I can't create an array more than 4,5 KB if the controler has 16 KB RAM.

Help please!!!

 

  • Hello,

    Sound like your problem is not that the array cannot be created but that it takes too long to initialize thus causing the WDT to timeout.

    The solution is to halt the WDT before array initialization.

    Check out a previous post that hsows you how to do this: http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/p/18750/72345.aspx#72345

    Regards,

    Priya

  • Anton Kornilov said:
    When I create an array more than 4,5 KB, at loading in chip IAR behaves incorrectly.

    What do you mean by 'behaves incorrectly'? Does it dance on your screen? Moan at you? Format your harddrive?
    Is it really IAR which behaves incorrectly or is it perhaps the MSP? And is it incorrect or just not what you expect?

    Questions over questions, and there are more possible answer than I can count to, each one being as as likely ans any other.

    So please be a BIT more detailed if you want an answer.

    WHAT do you do (after changing the 2048 to 4096)
    WHAT do you expect and
    WHAT happens instead.

    Without this information, it is like writing a letter to the doctor with the content ' I don't feel well - what could it be?' My doctor usually suggests chopping off the head - it cures any pain independently of the undisclosed symptoms.

**Attention** This is a public forum