Skip to main content
Associate II
March 4, 2024
Question

Not able to enable TIM4 interrupt in NUCLEO-F756ZG

  • March 4, 2024
  • 2 replies
  • 1200 views

Trying out a simple timer w/ interrupt

I am using the below code to enable interrupt

 

However during debug when ever I go to

NVIC_SetVector(....)

or

TIM4->CR1 |= TIM_CR1_CEN; ;//-> CEN=1;//Start Timer4

 

I get an error

'Break at address "0x80009b0" with no debug information available, or outside of program code.'

 

 

 

 

// Enable TIM4 interrupt

//error occurs here

// NVIC_SetVector(TIM4_IRQn, (uint32_t)&TIM4_IRQHandler);

 

NVIC_SetPriority(TIM4_IRQn, 0); // Set priority

NVIC_EnableIRQ(TIM4_IRQn); // Enable interrupt

TIM4->DIER |= TIM_DIER_UIE;

 

//error occurs here

TIM4->CR1 |= TIM_CR1_CEN; ;//-> CEN=1;//Start Timer4

 

wondering if anyone has previous experience with a similar error

ANy comments welcome

Thanx in advance

 

Jay Jayaram

 

 

 

 

2 replies

ST Employee
March 4, 2024

Hello @JJAYAR, check option bytes or BOOT0 pin

also which IDE are you using? 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
JJAYARAuthor
Associate II
March 5, 2024

Hi Sarra

I should have mentioned this

Using STM Cube IDE 1.14.0