2010-05-13 09:55 AM
IAP (In Application Programming) not jumping
#programing #in #application #error #iap #bootloader #iar #stm322011-05-17 04:50 AM
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);2011-05-17 04:50 AM
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.2011-05-17 04:50 AM
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.2011-05-17 04:50 AM
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^