nimaltd / spif

W25qxx, N25Qxx and other SPI FLASH driver for stm32 HAL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working in release.

AdamFull opened this issue · comments

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.

please watch youtube video for configuration.

No, problem was in HAL functions for work with SPI

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 ```