2009-02-20 01:30 AM
NVIC_Init hardfault?
2011-05-17 04:03 AM
Hello!
I've a problem with NVIC_Init function. When I use NVIC_Init for USART1 it works correctly. But when I use it with USART2, I get a hardfault - why? I'm searching now for about 2 hours, but I can't find the problem. My Code: I also found a post in here, which said, that I should rebuild the whole project - this also does not work. thanks for help Andi [ This message was edited by: anm on 18-02-2009 21:32 ] [ This message was edited by: anm on 18-02-2009 22:07 ]2011-05-17 04:03 AM
What about the interrupt handler?
Have Du implemented it correctly, i.e. in the same way like for USART1?2011-05-17 04:03 AM
Hi!
I deleted the whole Code in USART1 and USART2 Interrupt Handler. The Error occurs at the Init - I stepped through the program - but he does not go over the Init function. Does it help, when I post my Interrupt-Handlers? Thanks!2011-05-17 04:03 AM
Can you post your interrupt handlers
Giles2011-05-17 04:03 AM
Hi!
Sure, I will post everything ;) The Interrupt-Handlers are from the example... stm32f10x_it.c:http://rafb.net/p/Bxst8Y22.html
stm32f10x_it.h: and to complete the files: stm32f10x_conf.h: Thanks!2011-05-17 04:03 AM
I tested some other things (other clock source...) - but it does not work - I don't know what to do next...
2011-05-17 04:03 AM
So, now it works! Vectors where false...