cancel
Showing results for 
Search instead for 
Did you mean: 

missing vectors

trevor3
Associate II
Posted on September 15, 2009 at 01:33

missing vectors

2 REPLIES 2
trevor3
Associate II
Posted on May 17, 2011 at 13:23

I am using Keil MDK V3 to develop a project based on the STM32F103RDT6 device. I am also using the ST fwr libraries for setting up peripherals.

Problem: I have noticed that there are 17 external vectors missing in the STM32F10x.s file that is created when the MDK project is first created. The lack of vectors cases a hardfault exception error (IAC violation) if trying to use IRQ's on say UART5. I have searched on the net and forums and can not find a full vector table version of the STM32F10x.s file. Has anyone else had this problem and found a complete vector table file or am I missing something fundamental. Any help appreciated please.

picguy
Associate II
Posted on May 17, 2011 at 13:23

Simply set all unused / unknown vectors to “dc32 xxx� then “xxx: b xxx�. If you know the name use that name. Thus at 0x6c I have “dc32 DmaChan1� then at DmaChan1 I have “b DmaChan1�

That way if some vector gets used unexpectedly you will stop hard and with your debugger you at least have a clue as to what happened.