Keil Logo

setting reset vector address for ST-Link debugger in keil

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
satyendra singh rathore
Posted
17-Apr-2018 12:35 GMT
Toolset
None
New! setting reset vector address for ST-Link debugger in keil

I am using STM32L072( cortex M0+) with kel5.23 .
My application start address is not the default reset vector address.
It has been changed from 0x8000000 to 0x802000.
I have changed the startup file and target ROM location accordingly.
but how to change reset address in debugger setting?
please provide solution.

Read-Only
Author
Westonsupermare Pier
Posted
17-Apr-2018 16:33 GMT
Toolset
None
New! RE: setting reset vector address for ST-Link debugger in keil

Write the value to &SCB->VTOR either in the debugger's Data Window, or via an Initialization Script.

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0662a/Ciheijba.html

The address of the register is 0xE000ED08

_WDWORD(0xE000ED08, 0x08002000); // VTOR to Image Base

Read-Only
Author
Ron Wedge
Posted
3-May-2018 04:36 GMT
Toolset
None
New! RE: setting reset vector address for ST-Link debugger in keil

Here is an example of an initialization file to set the Program Counter, the Stack Pointer, and the Vector Table Offset register.

http://www.keil.com/forum/19320/problem-with-debugger-start-address/#/Msg100486

Read more about ini files at:

http://www.keil.com/support/docs/3156.htm

If you want to do this, make sure to turn off "Load application at startup" in the options for target -> debug tab

See screenshots at:

http://www.keil.com/support/docs/3697.htm

=====

If you want to read more about Vector Table Offset Register:

http://www.keil.com/pack/doc/CMSIS/Core/html/using_VTOR_pg.html

http://www.keil.com/support/docs/3913.htm

http://www.keil.com/forum/19866/how-to-relocate-the-cortex-m3-vector-table/

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.