cancel
Showing results for 
Search instead for 
Did you mean: 

IAP (In Application Programming) not jumping

angel972
Associate II
Posted on May 13, 2010 at 18:55

IAP (In Application Programming) not jumping

#programing #in #application #error #iap #bootloader #iar #stm32
4 REPLIES 4
filippo2991
Associate II
Posted on May 17, 2011 at 13:50

I tried and works fine, I had just to select the right platform on IAR workspace dropdown menu (STM3210B-EVAL in my case). That's all.

What problem did you get?

The following condition is met?

    if (((*(__IO uint32_t*)ApplicationAddress) & 0x2FFE0000 ) == 0x20000000)

    { /* Jump to user application */

      JumpAddress = *(__IO uint32_t*) (ApplicationAddress + 4);

angel972
Associate II
Posted on May 17, 2011 at 13:50

Hi Giannetti,

thanks for you reply.

I got Hardware Error when ever it jump.

I'm using the exact example of AN2557, i didn't change a thing.

it met the code and get to the jump instructions.

I also change the IAR workspace dropdown menu to be STM3210E-EVAL for my case.

Angel.

chikos332
Associate II
Posted on May 17, 2011 at 13:50

Hi,

I think somethings are still not clear in your problem description:

What do you mean by ''I got Hardware Error when ever it jump.'' ?

Is it Hardfault interrupt, or lost PC pointer, or something wrong in the loaded application... ?

Could you please describe a little more what happens after you jump?

What image code are you jumping to?

Did you already tried to run this image code (directly, ie. by debugger) ?

Are you sure this image is already running on STM3210E-EVAL ?

Cheers.

angel972
Associate II
Posted on May 17, 2011 at 13:50

Hi Chikos,

AN2557 contain IAP example,

it has two images inside - the first one is the boot loader

and the second one is an example that turn the LEDs on/off.

both images works OK whenever using debugger

only the jump from the first one to the second isn't working.

I got to the HardFault interrupt as you mention.

Yesterday I upgraded my IAR from version 5.41 to version 5.5 and it's working just GREAT now !!!

I don't know what is the root cause of the problem, if it related to a configuration in the IAR 5.41 or a bug.

In any case, thanks for you all.

^AngeL^