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.

write to invalid address

Hello All,

For MSP430F543xA based device, does anyone know what happen if we write to address 0 (null pointer)?  I have looked into the MSP430F543xA spec and found that the register base address is starting at 0x100, but nothing really listed at address 0-0xff.  I am evaluating the effect of problem and have not seen any unexpected response from MSP yet.  It looks like the write is completed normally and the MSP continues to operate as expected.  I am looking for any information about exception in MSP behaviors what may have caused by writing to this invalid address.


Thank you very much for your feedback in advance.


Kind Regards,

 

Loc

 

  • For triggering an exception, the MSP doesn't check for individual modules. 0x0000 is part of the peripheral area, so read/write does not trigger a reset. Only an instruction fetch (program execution) from this area will trigger a reset.
    You can consider this region as the register set of the null device. :)

    However, if you set VMAIE=1, you should experience a system NMI when accessing vacant memory in the peripheral space.

     

  • Thank you, Jens-Michael.  That confirms the behaviors I observed and helps keeping the fear of unexpected exception from this bug away :)

**Attention** This is a public forum