STM32+SPI FLASH (w25q32)

preview_player
Показать описание
please enable subtitle زیرنویس را فعال کنید
Рекомендации по теме
Комментарии
Автор

مرسی، من خیلی دنبال یه مثال از نحوه راه اندازی بودم،مهندس کولیوند کانال شما رو معرفی

ahadidadgostar
Автор

Nice! With a bit of changes - works like a charm. Now i can save joystick calibration data to onboard Flash! :)

Stm32f407vet6 (BlackBoard), CubeMX, Toolchain STM32CubeIDE (no device initialisation generation as pairs c/h)
SPI1 at:
MOSI:PB5
MISO:PB4
SCK:PB3
CS:PB0

Changes:
w25qxx.h:
-#include "spi.h"
+#include <stdint.h>
+#include "main.h"

w25qxxConf.h:
+extern SPI_HandleTypeDef hspi1;
-#define _W25QXX_USE_FREERTOS 1
+#define _W25QXX_USE_FREERTOS 0

sunscriber
Автор

I followed your video step by step and it worked like a charm ! STM32F407VET6 | CubeMX 6.3.0 | Keil 5.28. Thank you very much !

amnesiafpv
Автор

کتابخانه ها را از کجا میتونم دانلود کنم داخل گیت هاب یک کدام خانه دیگر بار گذاری شده ؟؟؟

علیرضاعزیزی-زذ
Автор

i got error of:

undefined reference to `W25qxx_Init'
undefined reference to `W25qxx_EraseSector'
undefined reference to `W25qxx_WriteSector'
undefined reference to `W25qxx_ReadSector'

please help me, i'm using STMCube IDE

shaqiffemir
Автор

عالی بود، یک هفته درگیرش بودم از برنامه شما جواب گرفتم ممنون. ببینم کجای برنامم ایراد دارد.

adibkamrani
Автор

Я повторил в CubeIDE это сработало 👌🙏🖐️🤝👍👍👍🔥🔥🔥 спасибо за код

CTO_Mechanik
Автор

Thank Nimal for the tutorrial and library is very helpful
I'm creating project in Stm32CubeIDE with FreeRtos (I has define #define _W25QXX_USE_FREERTOS 1). When I step by step as video like below:

W25qxx_Init();
W25qxx_EraseSector(1);

W25qxx_WriteSector(TxBuff, 1, 0, 8);
W25qxx_ReadSector(RxBuff, 1, 0, 8);

-> The infomation of W25 is OK but the RxBuff received is 0xff, 0xff, 0xff.... What happen, can you advice for me.

levanhieu
Автор

3 Years later and I am to say thanks to you sir.
I was in urgent need of flash programmer, however these things are not available locally and buying them would have cost me over 3 weeks.
Via your library I was able to turn STM32F4VE development board into a flash programmer, I load a binary file into sd card and wrote it into xt25f32b flawlessly via your flash library.

Thank you.

LawrenceHermes
Автор

Have you used the MAX30102 heart rate monitor? do you have a library or working code for it?

konstantingolinskiy
Автор

could i ask you sir, I used stm32407vgtx and the internal SPI flash is w25q16, I was configurations SPI correctly, after debugging, everything has no errors, but the w25q16 value on the expression does not appear, what should i do? thaks

nurlaelatululpah
Автор

Hello Buddy.. I want to create a file system using API like FATFS, LittleFS, and SPIFS in W25QXX chip module.. I don't know how to create or mount file system on this chip. If you have ever done this, then please share the process... Thanks in advance...

smitpatel
Автор

In 7:10
Why using presaller 8 and baudrate 5.25Mbit/s ? Can you expalain that ?
In my case, using STM32F411CE Clock 100MHz, when i use prescaller 8, the baudrate is 3.125 Mbits/s. Will my setup be trouble ?

multicreative
Автор

Are the delays that you included in the library at every function important? I have to deal in microseconds and with your library it is in write time is in milliseconds.

akhileshkhot
Автор

thank u so much for sharing this video. I have a question, can I use this code for stm8s003F3p6 that has 1KB RAM and 128 Byte EEPROM memory?

shimapanahi
Автор

Thank you for share. Nice tutorial and source code.

fernandocastro
Автор

Fast, Concret, Perfect, Professional :)

kameleon
Автор

Thank you! Have you try it using Blackpill stm32F401 Dev board? It has a position for windbound external flash, easy to solder. And with latest stm32cubeide. Do you think a follow up video would be useful ? Unfortunately my test isn't working. 0 id, can erase, but cannot write, cannot read. Will keep trying though. Thanks....OK, figured out what the problem is....my PA4 was
wrong by previous experiment, after it's fixed, flash works very well, thanks !!

chrischris
Автор

what happens if we dont clear sector before writing into flash ?

arslaanalimujtaba
Автор

for some reasons only those command in the video work for me. Simple W25qxx_ReadByte(&readBuffer[0], 1); also works but next reading new value after (W25qxx_WriteByte(&writeBuffer[0], 1);) returns previous value.

animator