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.

MSP430 Memory fill option

Hi,

 

I am confused with the memory fill option "0x3FFF".

 

Below wiki page metions that Fill empty code space with Op-code for "jmp $".

http://processors.wiki.ti.com/index.php/MSP430_Flash_Best_Practices

 

If we fill the memory with "0x3FFF", will the MSP430 gets reset 

if CPU enters this space? or will the CPU loop infintely?

 

Regards.

Mudigere

 

  • mudigere said:
    If we fill the memory with "0x3FFF", will the MSP430 gets reset  if CPU enters this space? or will the CPU loop infintely?


    The CPU should never try to execute code form the filled area. However, if it does (by a serious bug), it will 'freeze' at the place it starts running wild, jumping on place.

    If you didn't disable the watchdog, it will eventually reset the MSP.

    The reason for this is to ensure that the processor won't run wild, executing code it isn't meant to do (or even data as code) or finally arriving on valid code again and pretending to still work.

     

**Attention** This is a public forum