2013-11-19 11:43 PM
Hi.
I want to disable all interrupts in my STM32F205 and I use macro __disable_irq() in core_cmFunc.h. I verified that this instructions works fine, but in ARM Keil IDE, if I select ''Go to definition of __disable_irq() '' IDe returns me error: ''undefined Definition/Reference'', even if I include core_cmFunc.h. Why this behaviour? Thanks2013-11-20 06:50 AM
Why this behaviour?
Keil's browser requires that you have compiled the code, and have the ''Output : Browse Information'' check box checked, doesn't it? Not sure you explicitly need to include that file either, should get pulled into the CMSIS project via with a #include ''stm32f2xx.h'' Strongly suggest downloading, and using, ST's firmware library, rather than anything that gets packaged with the Keil release you are using.
2013-11-21 12:09 AM
2013-11-21 12:36 AM
Tried using ''Find in Files'' ? I'm working with STM32F4 and __disable_irq() is defined in file
STM32F4xx_DSP_StdPeriph_Lib_V1.0.1\Libraries\CMSIS\Include\core_cmFunc.h. It is asm ''cpsid i''. Also see,http://embeddedfreak.wordpress.com/2009/08/14/cortex-m3-global-interruptexception-control/