2004-05-10 07:59 PM
2011-05-17 02:35 AM
Hello All ,
I am using the ST92F150 Family and i need to know if I can run a program from one point on the flash that will program another point of the flash ? Latino from Israel2011-05-17 02:35 AM
Hi Latino!
that isn't possible. your program has to be executed from another kind of memory to program the flash, e.g. the eeprom or the xram. greets2011-05-17 02:35 AM
Hi Latino,
Perhaps you are talking about IAP. In which case you can use one portion (sector) of the flash to program another portion of the flash. The programming sector has the bootloader and the program and this sector should be same as the one with the reset vector. Ritu2011-05-17 02:35 AM
hello,
actually i want to use iap in my s/w to program /erase at three different positions.i also want to retrieve the data that is written. could you jst explain me the way out,& send the related documents. i am using st7flite02 controllers. regards shweta2011-05-17 02:35 AM
Ritu i believe it is not possible to program any sector of flash, sitting in any other sector of same flash, for this we have to copy our program in Ram first and then do it from there.
2011-05-17 02:35 AM
Hello,
Its true that instruction fetch from flash and programming (write / erase operation) can't go simultaneoulsy. So to program one sector of flash from another sector of flash a bootloader is required to be put in the same sector as the reset vector so that its the first to get executed on reset and it sets up RS-232 serial communication intrface to receive data (hex-file) from PC and initializes flash. and then invokes functions to write or erase flash (located in ram). As once the programming starts no more instruction can be fetched from flash. You can find the detailed infirmation in AN 1275 attached with this message. Rds, Ritu