Question
Failed to insert all hardware breakpoints: You may have requested too many hardware breakpoints/watchpoints.
I started getting this message when I try to debug my code. However, there are currently no breakpoints in my code at all. I have gotten this in the past and I deleted and redownloaded the IDE which I really do not want to do again. I am running it on Mac. Any suggestions are helpful.
// Simple ADC Reader
// ADC1_1 on PA1
// Port A on AHB1
// ADC on APB2
#include "stm32f4xx.h"
#include "printUSART.h"
int val = 0;
int main(void){
USART2_Init();
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN;
GPIOA->MODER = GPIO_MODER_MODE0_0 | GPIO_MODER_MODE0_1;
RCC->APB2ENR |= RCC_APB2ENR_ADC1EN;
ADC1->CR2 = 0;
ADC1->SQR3 |= ADC_SQR3_SQ1_0;
ADC1->CR2 |= ADC_CR2_ADON;
while(1){
ADC1->CR2 |= ADC_CR2_SWSTART;
while(!(ADC1->SR & ADC_SR_EOC)){}
val = ADC1->DR;
printf("\n%d", val);
}
}