Skip to main content
hebel23
Associate
May 26, 2010
Question

STM32F105RB vector table relocating fails for CAN2

  • May 26, 2010
  • 2 replies
  • 579 views
Posted on May 26, 2010 at 08:45

STM32F105RB vector table relocating fails for CAN2

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 13:52

    Surely the syntax is

    #ifdef  VECT_TAB_RAM

      /* Set the Vector Table base location at 0x20000100 */

      NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x100);

    #else  /* VECT_TAB_FLASH  */

      /* Set the Vector Table base location at 0x08008900 */

      NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x8900);

    #endif

    More likely the table is not built correctly. Have you checked the errata?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    hebel23
    hebel23Author
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:52

    Hi Clive1,

    thanks for your reply. You´re right, but because the offset will be ''OR´ed'' with 0x08000000 respectively 0x20000000 inside the NVIC_SetVectorTable function, it is not wrong to write the offset with the complete address.

    The errata sheet say´s nothing to this problem.

    Greetings

    Andreas