2008-03-05 06:17 AM
Changes to loaded program for in application programming
2011-05-17 12:50 AM
I am using the in-application programming with uart example and have gotten it working with the example projects provided. However when I loaded a binary of a project that I created it would not run. Is there any special changes I have to make to my project to get it to work with the in-application programmer?
2011-05-17 12:50 AM
How do you link the binary file to 0x0? I am using EWARM 4.42.
2011-05-17 12:50 AM
Your binary image must be linked to 0x0 and be sure that you have removed the boot bank configuration from the startup file
2011-05-17 12:50 AM
The AN2475 application note contains a pre-configured example. See the following link:
http://www.st.com/mcu/modules.php?name=mcu&file=familiesdocs&FAM=101
2011-05-17 12:50 AM
I have looked over the example project and tried some changes but still can not get it to work with the in-application programmer. So far I have commented this code out of my 91x_init_IAR.s file
; --- Remap Flash Bank 0 at address 0x0 and Bank 1 at address 0x80000, ; when the bank 0 is the boot bank, then enable the Bank 1. LDR R6, =0x54000000 LDR R7, =0x4 STR R7, [R6] LDR R6, =0x54000004 LDR R7, =0x3 STR R7, [R6] LDR R6, =0x5400000C LDR R7, =0x0 STR R7, [R6] LDR R6, =0x54000010 LDR R7, =0x20000 STR R7, [R6] LDR R6, =0x54000018 LDR R7, =0x18 STR R7, [R6] I have also copied over the lnkarm_flash.xcl from the example project to my own. Neither of these has fixed the problem. Is there anything that I am failing to do here? freeRTOS v4.6 is the program I am trying to load. [ This message was edited by: joshh on 05-03-2008 20:09 ]