2009-09-14 04:33 PM
missing vectors
2011-05-17 04:23 AM
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.2011-05-17 04:23 AM
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.