cancel
Showing results for 
Search instead for 
Did you mean: 

In application programing - available in every fresh bought micro ?

mehmet.karakaya
Associate III
Posted on June 12, 2010 at 21:50

In application programing - available in every fresh bought micro ?

1 REPLY 1
darcy23
Associate II
Posted on May 17, 2011 at 13:54

Hi, you're getting confused with ISP (In System Programming).  IAP is where your program (typically running from User Flash Memory) writes to internal flash memory on its own.  ISP is where the bootloader (running from System Memory) writes in to User Flash Memory.  Look up the reference manual for the functionality of the BOOT0 and BOOT1 pins.  For normal operation (your code) tie both bins low.  To run the factory bootloader BOOT0 is pulled high.  These pin states are inspected coming out of reset.

Every device will have a bootloader in the area of memory known as System Memory.  Using that, you are able to use ISP to program a device without ever using JTAG.

The factory bootloader listens on USART1.  Grab the ''Flash loader demonstrator'' from the ''Documents and files for family STM32'' from the ST site.  This will provide the PC program that talks to the micro and performs the programming.