Programming program memory

ST Visual Programmer

home.gif

Programming program memory


To program Program memory:

  1. Make sure that the ST microcontroller is plugged into the hardware programming tool socket.
  2. Make sure that the hardware is correctly configured by following the instructions given in Configuring ST Visual Programmer.
  3. In the STVP main window, click on the PROGRAM MEMORY tab.
  4. Open a file that contains data for a program. You can modify program memory before writing it to a device.
  5. To program all program memory in a FLASH device:
    1. Select all sectors in the FLASH sector area.
    2. Click on Active Sector(s) in the Program menu (or press the alt button).
  6. To program all program memory in an EEPROM or EPROM device, select Program>Current tab from the main menu.
  7. Or to program a selected area of program memory:
    1. Click on Address Range... in the Program menu (or press the alt button). The Address range dialog box opens.
    2. In the Valid address ranges are list, choose the predefined range address you want to program or, enter addresses in the Start @ and End @ fields.
    3. Click on OK.
  8. After data has been written into program memory, a verify operation is done. Any discrepancies are reported in the Output window.
  9. TIP: Program memory is also written by clicking on All tabs in the Program menu (or pressing the alt button).

    NOTE 1: If any area of the program memory is already programmed, an appropriate message is displayed in the Output window.

    NOTE 2: To find out if an area is programmed, follow the instructions given in Checking memory is blank.

     


    prev.gif next.gif