Skip to main content
sue
Associate III
January 29, 2013
Question

Error: __vector_table not found when dowloading

  • January 29, 2013
  • 5 replies
  • 3728 views
Posted on January 29, 2013 at 05:28

Using STM32F103ZE and IAR Embedded Workbench IDE 5.4 using assembler (no C).

The program assembles and links with no errors.

When selecting ''download and debug'' option the following errors occur:

Warning: __vector_table symbol not found.

E-entry value: 0x08000000 does not match reset vector value: 0x5c24f64e

Initial SP-main value: 0xba00f8df uncertain.

Warning - stack pointer is set up to incorrect alignment. Stack address: 0xba00f8df

I am using the standard ''generic_cortex.icf'' which contains:

''define symbol __ICFEDIT_intvec_start__ = 0x00000000''

which I have tried changing to ''define...=0x20000000'' but this does not fix the error.

Program contains at the top:

SECTION CSTACK:DATA:NOROOT(3)

SECTION .intvec:CODE_NOROOT(2)

       PUBLIC __vector_table

       PUBLIC __iar_program_start

       PUBLIC __vector_table_0x1c

       DATA

__vector_table

DCD sfe(CSTACK)

DCD __iar_program_start

DCD NMI_handler

etc.

I would greatly appreciate assistance with this. I have combed through all the reference manuals and trawled the internet to no avail.   Thank you

#__vector_table-stm32f103ze
    This topic has been closed for replies.

    5 replies

    Tesla DeLorean
    Guru
    January 29, 2013
    Posted on January 29, 2013 at 06:25

    So you've been fighting this problem for 18 months?

    I think this

    SECTION .intvec:CODE_NOROOT(2)

    should be this

    SECTION .intvec:CODE:NOROOT(2)
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    sue
    sueAuthor
    Associate III
    January 29, 2013
    Posted on January 29, 2013 at 07:41

    Hi Clive, sorry I typo'd.  I do have : and not _.  No haven't been fighting it for 18 months.  Had to leave it and do a heap of other things and have just come back to it.  thanks for your reply.

    do you have any other suggestions?

    Tesla DeLorean
    Guru
    January 29, 2013
    Posted on January 29, 2013 at 13:03

    Zip up a free standing project that illustrates the failure mode and attach here, or email to sourcer32@gmail.com

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    sue
    sueAuthor
    Associate III
    January 29, 2013
    Posted on January 30, 2013 at 00:50

    Hi Clive, have emailed to you. Many thanks.

    sylvain
    Associate II
    August 4, 2014
    Posted on August 04, 2014 at 19:21

    a bit late but I ran into that same issue and spent a couple hours on it...

    I got the same cryptic error message when trying to load/debug an fully compiled image using IAR 7.20.  It turned out that my project was not configured to include debug information.  All I had to do was check the ''include debug information in output'' under Options -> Linker -> Output

    Hope it helps someone else.