We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Using a STM32F107VC (on the MCBSTM32C) I am able to setup and run an interupt driven peripheral.
However, I am unable to set the priority of that interrupt using the 'Standard Peripheral' functions provided for by ST.
/* Enable the Interrupt */ NVIC_InitTypeDef NVIC_InitStructure; NVIC_InitStructure.NVIC_IRQChannel = USART2_IRQn; NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1; NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1; NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; NVIC_Init(&NVIC_InitStructure);
I stop the execution and see that the Keil IDE/Debugger interrupt (Peripherals->Core Peripherals->NVIC) is always set to 0.
Does anybody have any ideas what I'm doing wrong? Thank you,
Hi,
have a look at CMSIS (http://www.onARM.com). The NVIC Implementation there is much easier.
BR, /th.