Programming mode

ST Visual Programmer

home.gif

Programming mode


Socket programming mode is used when putting the device in the EPB/DVP sockets. Take care to place only one device if there are several sockets.The arrow indicates pin 1 of the device on the EPB/DVP sockets. If the EPB/DVP support also ISP or ICP programming mode, remove the flat cable provided with the board from the ISP or ICP connector to use Socket programming mode.

ISP/ICP programming modes are used when you have soldered your device on your application board and you want to access the device afterwards.

ISP stands for In Situ Programming, it is working with ST72C254xx/ST72C334xx/ST72C171xx and ST72C411xx devices only. Refer to the Data sheet of the device for more details on ISP connector and ISP programming. Take care to remove the devices that are in the socket of the EPB/DVP before using the ISP programming mode.

ICP stands for In Circuit Programming, it is working with the latest Flash devices (XFlash or HDFlash). Refer to the data sheet of the device for more details on ICP connector and In Circuit Programming. Take care to remove the devices that are in the socket of the EPB/DVP before using the ICP programming mode.

Before selecting the Programming mode you have to check the option byte description in your ST Flash microcontroller Data sheet and also whether the ST is ex-factory or not. Ex-factory devices are brand new devices with factory default options programmed.

 

ICP OPT Disable: This programming mode is ICP mode with Option Bytes Disabled. This means that the setting or state of the device's option bytes have no effect in application, which the exception of Read-out Protection. The clock configuration is forced to "External Source" and if your ST7 Flash application clock is not a square wave from 0v to VDD (i.e. if you use the internal RC oscillator of the ST7 Flash Microcontroller or if you have a resonator or an external RC oscillator on the OSC1/OSC2 pins), you have to connect the clock ICCOSC from the ICC connector to the OSC1 pin of the ST7 Flash microcontroller in your application. This programming mode is a safe mode. It must be used when the ICP OPT Enable configuration does not work. This can be the case if your application clock circuitry doesn’t match the previously programmed clock source or osctype option byte selection.

 

ICP OPT Enable: This programming mode is ICP mode with Option Bytes Enabled. This means that the option bytes of the ST7 device in the application are activated with their programmed values. The Read-out Protection and the Clock Configuration (OSC Type, OSC Range, PLL) are Enabled, the Watchdog is forced to Software during communication. This programming mode has to be selected if the ST7 Flash is has the factory default settings or if your application clock circuitry matches the previously programmed clock source or osctype option byte selection. In this Programming mode, the ICCOSC clock from the ICC connector is not needed.

ICP: This programming mode is the same as ICP OPT Enable, the Option Bytes are 'Enabled' and the Watchdog is forced to Software during communication. Normally, this mode is the only choice for that device because there is no clock configuration, at least a resonator must be used with that ST7 device. So, the ICCOSC clock from the ICC connector must not be connected to the application.

 

Refer to the latest Errata sheet of the device to get extra useful information.