The Self Programming Mode (SPM) is a feature which enables a microcontroller to program its own flash memory. Using the SPM a microcontroller can program itself with an SPM code. The SPM is commonly used with the microcontroller Boot-Loader codes which help to program the microcontroller serially. In AVR microcontroller the SPM is available only for the code running in the BLS of the flash memory. With the help of the SPM a code in BLS can rewrite the application flash memory entirely or a part of it. It can even rewrite its own code in the BLS section. The SPM is a key factor of the Boot-Loader code since the major function of the Boot-Loader is to load an application code into the application flash section. The Boot-Loader may receive the code binary from other memory chips, SD-cards or through the serial port of the microcontroller in case of serial programming.
How to Program Stellaris MCU using LM Flash Programmer
a. Hardware requirements: 1. TI’s LM3S8962 Evaluation board. 2. 20 – Pin JTAG cable. 3. Mini USB cable. 4. 2- Pin JST cable. First connect the TI’s board to PC using USB cable. If it is connected for the first time then install Stellaris ICDI drivers. After a successful connection, it will show Stellaris…