Programming program memory
To program Program memory:
- Make sure that the ST microcontroller is plugged into the hardware programming tool socket.
- Make sure that the hardware is correctly configured by following the instructions given in Configuring ST Visual Programmer.
- In the STVP main window, click on the PROGRAM MEMORY tab.
- Open a file that contains data for a program. You can modify program memory before writing it to a device.
- To program all program memory in a FLASH device:
- Select all sectors in the FLASH sector area.
- Click on Active Sector(s) in the Program menu (or press the button).
- To program all program memory in an EEPROM or EPROM device, select Program>Current tab from the main menu.
- Or to program a selected area of program memory:
- Click on Address Range... in the Program menu (or press the button). The Address range dialog box opens.
- 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.
- Click on OK.
- After data has been written into program memory, a verify operation is done. Any discrepancies are reported in the Output window.
TIP: Program memory is also written by clicking on All tabs in the Program menu (or pressing the 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.