The erase function lives in the bootloader application and the bootloader application lives in the first few pages of flash that will not be erased. You need two different projects i.e. a bootloader project and a separate application project. In your project setup (not sure what tools you are using) you set the base address. For the bootloader this will be 0x08000000 and for the application this will be (0x08000000 + the bootloader length). Your not the first not to get this immediately. Maybe ST need a diagram in the application note. I'm always a little surprised how unfamiliar people are with this approach as I and others I've worked with have been using this approach on different processors for many years. Regards Trevor [ This message was edited by: trevor on 07-01-2009 16:02 ]
I'm writing an I2C loader too. I would be very interested in any information or code to help me achieve this, even if it is just links for examples on I2C image transfer, anything would be greatly received, thanks. Mark
I'm writing an I2C loader too. I would be very interested in any information or code to help me achieve this, even if it is just links for examples on I2C image transfer, anything would be greatly received, thanks. Mark