nimaltd / spif

W25qxx, N25Qxx and other SPI FLASH driver for stm32 HAL
GNU General Public License v3.0
605 stars 173 forks source link

Not working in release. #27

Open AdamFull opened 4 years ago

AdamFull commented 4 years ago

I'm using stm32f103 and in release it's not initializing. I made empty project with: 36MHz core freq, in perepherial i enabled usart1, spi1, spi2 and usb.

nimaltd commented 3 years ago

please watch youtube video for configuration.

AdamFull commented 3 years ago

No, problem was in HAL functions for work with SPI

diyfr commented 3 years ago

In my project, i added in w25qxx.h :

#include <stdint.h>   // for uint32_t etc..

And in w25qxxConf.h :


#include "stm32f4xx_hal.h"   // for hspi1
#include "main.h" // for FLASH_CS_GPIO_Port & FLASH_CS_Pin ```