STM32F4 SPI code only works in debug mode
Hi I am trying to read ID of an external FLASH.The code which reads it is shown below.uint16_t FLASH_ReadID(void) { uint16_t tempData = 0x0000; //Read ID GPIOB->BSRR |= GPIO_BSRR_BR2; //Reset FLASH CS while(!(SPI1->SR & SPI_SR_TXE)); SPI1->DR ...