cancel
Showing results for 
Search instead for 
Did you mean: 

IAP for STM32F0

toantq3
Associate II
Posted on October 08, 2012 at 09:10

Dear Friends,

I read document AN4065 of ST. it told that use must configure 2 conditions for application code, I understand condition setting linker 0x08003000 for KEIL compiler.

Does anyone help me explain condition 2 about Relocate vector table? How can we do that? Do we need modify in Compiler KEIL?

  

User program conditions

The user application to be loaded into the Flash memory using IAP should be built with the 

following configuration settings:

1. Set the program load address at 0x08003000, using the toolchain linker file.

2.

 Relocate the vector table at address 0x20000000 (reserve 48 word starting in RAM @ 

 

0x20000000 ).

7 REPLIES 7
lowpowermcu
Associate II
Posted on October 08, 2012 at 10:33

Hi toan,

This means create an array of 48 words that is mapped at adress 0x20000000 (initial RAM address) and then copy the vector table starting from 0x08003000 to the already created array

MCU Lüfter

toantq3
Associate II
Posted on October 08, 2012 at 11:01

Dear friends,

You can make examples of this code. I'm not clear so much.

Create one array 48 words, I can do like this in my application code:

How about map to address 0x20000000 and ''copy the vector table starting from 0x08003000 to the already created array''. You can type some C code in reply that help me a lot.

Thanks and Best Regards,

Toan Thieu

toantq3
Associate II
Posted on October 08, 2012 at 13:03

Dear Lüfter

Could you kindly give me more explanation? I'm really confused right now how to do your mention.

Thanks and Best regards,

Posted on October 08, 2012 at 13:26

Review the source related to the application note.

http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f0_programming_usart.zip

STM32F0xx_AN4065_FW_V1.0.0\Project\STM32F0xx_IAP\binary_template

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
toantq3
Associate II
Posted on October 09, 2012 at 07:29

Dear Clive1

Excellent, thank you so much for supports.

Best Regards,

Toan Thieu

rohittheozzy
Associate II
Posted on December 22, 2015 at 07:01

Dear Clive1,

The below link seems to be disabled now. Can you please send the new link for this firmware.

http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f0_programming_usart.zip

Thank you

Rohit

Posted on December 22, 2015 at 14:28

A quick Google pull this up

http://www.st.com/web/en/catalog/tools/PF258152

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..