2014-04-09 01:27 AM
Hi guys
I'm trying to understand NVIC with STM32F4-Discovery, I've read the user manual and programming manual (the partition related with NVIC and Exceptions) and I've searched the web for a full simple example that help me understanding -how NVIC works -how to write a simple handler -what is the difference between event and interrupt -what is the difference between NVIC and EXTI ?either I found a complex example with USART for example, or a snippet of code, not full oneI hope some example, with comments wherever possible, that toggle LEDs to make it clearer for meI hope I'm not asking too much.. thanks in advance2014-04-09 04:50 AM
Suggest you find yourself a copy of
https://www.google.com/search?q=Joseph+Yiu%27s+Essential+Cortex-M3&ie=utf-8&oe=utf-8&aq=t
/42014-04-09 05:34 AM
Suggest you find yourself a copy of
https://www.google.com/search?q=Joseph+Yiu%27s+Essential+Cortex-M3&ie=utf-8&oe=utf-8&aq=t
/4OK, I've got one now, and I'll start studying itBut I'll be really grateful if you provide me a simple working code to start with.Hope not bothering :)2014-04-09 08:26 AM
Hope not bothering :)
Not so much, but I don't like repeating myself either. I think there are examples within the firmware libraries and here that demonstrate EXTI. The NVIC is the interrupt controller integrated with the Cortex-M3/4, unlike earlier ARM (or other archs) where everyone implemented their own. The EXTI peripheral is ST's solution to handling external interrupting signals, edges, etc, and then propagating those to the NVIC for dispatch.2014-04-09 12:58 PM
I've copied and pasted your code and it worked well
Now I'm digging deep in it to understand it more. Thanks a lot SIR2014-04-09 03:44 PM
The associations are architecturally defined, most likely in the Data Sheet/Manual, and also then reflected in the startup_stm32f4xx.s