cancel
Showing results for 
Search instead for 
Did you mean: 

Changes to loaded program for in application programming

joshh
Associate II
Posted on March 05, 2008 at 15:17

Changes to loaded program for in application programming

5 REPLIES 5
joshh
Associate II
Posted on May 17, 2011 at 09:50

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?

joshh
Associate II
Posted on May 17, 2011 at 09:50

How do you link the binary file to 0x0? I am using EWARM 4.42.

jilisegiar
Associate II
Posted on May 17, 2011 at 09:50

Your binary image must be linked to 0x0 and be sure that you have removed the boot bank configuration from the startup file

jilisegiar
Associate II
Posted on May 17, 2011 at 09:50

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

joshh
Associate II
Posted on May 17, 2011 at 09:50

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 ]