AnsweredAssumed Answered

The vector-table defined in the startup code(startup_stm32f10x_cl.s, the gcc version)

Question asked by zhang.glen on Nov 14, 2013
Latest reply on Nov 14, 2013 by Clive One

There is a vector-table defined in the "startup_stm32f10x_cl.s"(the gcc version):

    .section  .isr_vector,"a",%progbits  
    .type  g_pfnVectors, %object   
    .size  g_pfnVectors, .-g_pfnVectors
    .word  _estack   
    .word  Reset_Handler  
    .word  NMI_Handler  
    .word  HardFault_Handler

My question is: what's the result of the .size directive sentence? I think maybe it's 0, because the '.' symbol and the 'g_pfnVectors' label may represent the same address:

.size  g_pfnVectors, .-g_pfnVectors

Then what's the function of this sentence, if its result is 0?

Another question is about the last item of this table:

.word  BootRAM     /* @0x1E0. This is for boot in RAM mode for STM32F10x Connectivity line Devices. */

What's the purpose of this?