2008-08-20 09:02 PM
How to create an application for UART IAP?
2011-05-17 03:42 AM
Ref: Application Note
http://www.st.com/stonline/products/literature/an/13588.pdf
Quote:
The PDF documents (and readme file) state the requirement that the ''user'' application must start at 0x0800_2000.
I assume that the example proajects supplied must do this, but there is no description of how it is done - which is not very helpful when it comes to creating my own application! See:http://www.st.com/mcu/forums-cat-6742-23.html&start=7
The two requirements stated in the App Note are:2011-05-17 03:42 AM
There is a pre-configured example for RIDE which allows you to generate an application for IAP. see @:
IAP_AN/binary/template project/RIDE (AN2557)2011-05-17 03:42 AM
Quote:
There is a pre-configured example for RIDE...
Yes, that's the problem - it is all pre-configured, and there's no explanation of how to configure your own application! :| As I said, I took the Linker script from that example - and it doesn't work! :| :|2011-05-17 03:42 AM
As I said you can start from this project. All needed steps are described in the readme file(IAP_AN/binary).
Regarding the linker file, you have to use stm32f10x_md_flash_offset.ld as linker with medium density devices and stm32f10x_hd_flash_offset.ld with high density devices. What do you mean by it doesn't work!:can you give more details ! :-W2011-05-17 03:42 AM
Quote:
you have to use stm32f10x_md_flash_offset.ld ...
That actually seems to be the source of the problem - causing this extra, spurious data in the HEX file.Quote:
What do you mean by it doesn't work!:can you give more details !
The IAP application runs, and transfers the file successfully but, when I try to run the downloaded application, it doesn't start. In the debugger, it just seems to cause a hard fault exception. If I manually remove the spurious section from the HEX file, it all works fine. Hence the original questions: