Part # Application Notes Access Control Accessories Audio Broadcast Computer Power Supply Corded Terminals Cordless Terminal Dvd Data S datasheet

Part Manufacturer: ST Microelectronics

ST Microelectronics

Part Description: STM32F10xxx in-application programming using the USAR


Part Details:

AN2557 Application note STM32F10xxx in-application programming using the USART Introduction An important requirement for most Flash-memory-based systems is the ability to update firmware when installed in the end product. This ability is referred to as in-application programming (IAP). The purpose of this application note is to provide general guidelines for creating an IAP application. The STM3210B-EVAL/STM3210E-EVAL board was used to validate the IAP driver. The STM32F10xxx microcontroller can run user-specific firmware to perform IAP of the microcontroller-embedded Flash memory. This feature allows the use of any type of communication protocol for the reprogramming process (such as CAN, USART, USB). USART is the example used in this application note. June 2008 Rev 4 1/13 www.st.com Contents AN2557 Contents 1 IAP overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1 Principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 IAP driver description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 Running the IAP driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1 HyperTerminal configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2 Executing the IAP driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3 IAP driver menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.1 Download image to the internal Flash memory . . . . . . . . . . . . . . . . . . . . . 6 3.2 Execute the new program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.3 Disabling the write protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4 STM32F10xxx IAP implementation summary . . . . . . . . . . . . . . . . . . . . . 8 5 User program conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 6 IAP restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 7 How to use the IAP driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 8 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2/13 AN2557 IAP overview 1 IAP overview Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 32 and 128 Kbytes. Medium-density devices are implemented in the STMicroelectronics STM3210B-EVAL evaluation board. High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. High-density devices are implemented in the STMicroelectronics STM3210E-EVAL evaluation board. 1.1 Principle


Please click the following link to download the datasheet:

Application Notes Access Control Accessories Audio Broadcast Computer Power Supply Corded Terminals Cordless Terminal Dvd Data S.pdf Datasheet