2014-02-25 07:48 AM
Hi All,
I am new on this forum and as well new to STM32 microcontrollers - almost two months working with them - so please beunderstanding
if I will write something stupid or ask about something obvious. Thanks. I am working right now with STM32F051R8T6 microcontroller. I am using uVision 5 with KEIL RTX and it CMSIS interface. I have managed to do many nice things with this micro already but I didn't manage to do anything sensible with handling interrupts. I mean here the NVIC controller. As I am trying to find around the web for examples how to use it I have found following sites:[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Problems%20with%20interrupts%20for%20STM32f051&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=445]Forum 1/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/TIM2%20is%20not%20generating%20any%20interrupts%20on%20STM32f051&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=1303
http://www.keil.com/pack/doc/cmsis/Core/html/group___n_v_i_c__gr.html
As I was trying to follow those examples I face the problem that I don't have the 'drivers' for STM32F051 to use the same function as I have seen in those examples. I have installed the full packet of KEIL with all the source code and examples but nothing there. Only for STM32F10x devices. I have inpression that I have missed something obvious here. The first question that comes to my mind is about compatibility of NVIC driver for STM32F051 and any other microcontroller. Can somebody point me out where I should look for source code and examples because I didn't manage to find them by searching the web. Thanks in advance. null2014-02-25 08:02 AM
Hi Damian_Gowor,
In order for you to use your 32 bit MCU you need the ''driver'' files. Usually files like ''stm32f4xx.h'' for the F4 series or in your case ''stm32f0xx.h'' for the F0 series.I have never been able to find any example beyond the ones that you already found. These examples was written for F1 series. This means that you will probably not be able to ''cut and paste'' and expect everything to compile and work. What you can do is to go through the examples that you have and use them as a guide, sort of. To compare the two series; variable name could be changed or removed, interrupts routines could have other names, structures could be different and some basic design could also been changed. e.g. one interrupt for every ADC converter or one global interrupt function for all ADCs.Regards, /rygelxvi2014-02-25 08:38 AM
Thanks for the answer.
Meantime I have managed to find those libraries with NVIC for STM32F0 microcontrollers. Just in case if somebody else will be looking for it here is how you can find it: - On ST website search for 'STM32F0DISCOVERY'. - When you will find product page goto 'Design Resources'. - Under 'Related Tools and Software' click 'STSW-STM32050' to download. I suppose that this direct link should be available for a while: