Тёмный

STM32+SPI FLASH (w25q32) 

NimaLTD
Подписаться 1,2 тыс.
Просмотров 20 тыс.
50% 1

please enable subtitle زیرنویس را فعال کنید
Download Link : www.github.com/NimaLTD/w25qxx

Опубликовано:

 

22 июл 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 111   
@LawrenceHermes
@LawrenceHermes 3 месяца назад
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.
@nimaltd
@nimaltd 3 месяца назад
I cannot describe my happiness from your message. Did you see my latest spif lib? I think it is better. ☺️❤️❤️
@ahadidadgostar
@ahadidadgostar 4 года назад
مرسی، من خیلی دنبال یه مثال از نحوه راه اندازی بودم،مهندس کولیوند کانال شما رو معرفی
@nimaltd
@nimaltd 4 года назад
خیلی خوشحالم که کارتون راه افتاد
@gabrielfienco2531
@gabrielfienco2531 2 года назад
Could not read most of the string with your library, but it really helps me to have a better understing of the datasheet and build my own first version, thanks man!
@codenic_ir
@codenic_ir 4 года назад
خدا قوت مهندس❤️🌹👍
@nimaltd
@nimaltd 4 года назад
ممنون
@adibkamrani3972
@adibkamrani3972 3 года назад
عالی بود، یک هفته درگیرش بودم از برنامه شما جواب گرفتم ممنون. ببینم کجای برنامم ایراد دارد.
@sadrafazelifard8286
@sadrafazelifard8286 3 года назад
عالی استفاده کردم ⁦👌🏻⁩⁦👌🏻⁩🌹
@amnesia74fpv
@amnesia74fpv 2 года назад
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 !
@nimaltd
@nimaltd 2 года назад
your welcome :)
@gungo2293
@gungo2293 Год назад
i have problem seams to read but dont write any ideas? w25q16
@CTO_Mechanik
@CTO_Mechanik Год назад
@@gungo2293 У меня работает с этой флешкой w25q16, камень stm32f407vet6
@kameleon0781
@kameleon0781 3 года назад
Fast , Concret , Perfect , Professional :)
@nimaltd
@nimaltd 3 года назад
Thanks
@sunscriber
@sunscriber 3 года назад
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 +#include "main.h" w25qxxConf.h: +extern SPI_HandleTypeDef hspi1; -#define _W25QXX_USE_FREERTOS 1 +#define _W25QXX_USE_FREERTOS 0
@nimaltd
@nimaltd 3 года назад
;)
@gungo2293
@gungo2293 Год назад
w25q16 reads chip but dont write any ideas?
@brad8122
@brad8122 Год назад
@@nimaltd In this video are you programming a winbond EEPROM without using a dedicated programmer and only using an FPGA chip, am I right? So with an FPGA you do the task of that programmer, am I right? I have spartan 3E starter kit board from Xilinx can I do this too, I mean program a 6 pin EEPROM with a clamp using only the FPGA, what do you think brother? Are the VHDL resources for this example easily available or I need to write them myself?
@konstantingolinskiy4944
@konstantingolinskiy4944 4 года назад
Have you used the MAX30102 heart rate monitor? do you have a library or working code for it?
@nimaltd
@nimaltd 4 года назад
Nope. I did not use 😪
@fernandocastro7904
@fernandocastro7904 3 года назад
Thank you for share. Nice tutorial and source code.
@nimaltd
@nimaltd 3 года назад
Your welcome 🤗
@akhileshkhot8326
@akhileshkhot8326 8 месяцев назад
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.
@nimaltd
@nimaltd 5 месяцев назад
please use my latest library. uou can install it on the cubemx. it is a PACK
@nurlaelatululpah8780
@nurlaelatululpah8780 Год назад
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
@nimaltd
@nimaltd Год назад
Please double check. spi configuration or pins maybe wrong
@multicreative7344
@multicreative7344 3 года назад
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 ?
@nimaltd
@nimaltd 3 года назад
It does not matter. You can use upper speed.
@DarkKnight-de7np
@DarkKnight-de7np Год назад
Great, thank you very much.
@nimaltd
@nimaltd 5 месяцев назад
please install my latest pack on the cubeMX
@aminmohseni2811
@aminmohseni2811 2 года назад
Hi, Thank You. 🌹
@habibarabahmadi5860
@habibarabahmadi5860 Год назад
thank you for the video and library
@nimaltd
@nimaltd 5 месяцев назад
your welcome . please install my PACK.
@user-xs3uf9ps1n
@user-xs3uf9ps1n Месяц назад
کتابخانه ها را از کجا میتونم دانلود کنم داخل گیت هاب یک کدام خانه دیگر بار گذاری شده ؟؟؟
@nimaltd
@nimaltd Месяц назад
اپدیت شده. جدیدش بهتره. سمت راست صفحه ارشیو قدیمی هم هست
@shaqiffemir7718
@shaqiffemir7718 3 года назад
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
@nimaltd
@nimaltd 3 года назад
You should add to source folder and header folder
@shaqiffemir7718
@shaqiffemir7718 3 года назад
@@nimaltd add to how?...could you provide me step by step?
@nimaltd
@nimaltd 3 года назад
@@shaqiffemir7718 you can add i project properties/general/path include and source tab
@shaqiffemir7718
@shaqiffemir7718 3 года назад
@@nimaltd great...i solved it....now how can i visualize those data in STMCube IDE?
@MrIrani1989
@MrIrani1989 Год назад
سلام ممنون از راهنمایی ارزشمندتان آیا این کتابخوانه می‌تواند سری x برای مثال w25x16 را راه اندازی کند، یا نیاز به دستکاری دارد؟؟
@nimaltd
@nimaltd Год назад
سلام. ندیدم دیتاشیتشو
@tekinkoyuncu7694
@tekinkoyuncu7694 Год назад
thank youm for your share
@chrischris6399
@chrischris6399 Год назад
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 !!
@abhijithekv
@abhijithekv 11 месяцев назад
Hi, even I have the same problem. Can you tell me what do you mean by fix PA4? Was that the chip select pin? How should you configure it?
@nimaltd
@nimaltd 5 месяцев назад
please use my latest library. it is PACK and can install into CUBEMX
@arslaanalimujtaba7534
@arslaanalimujtaba7534 Год назад
what happens if we dont clear sector before writing into flash ?
@nimaltd
@nimaltd 5 месяцев назад
Can not write into any bit contain 0. ony can change any 1 bits to 0.
@shimapanahi9403
@shimapanahi9403 2 года назад
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?
@nimaltd
@nimaltd 2 года назад
Your welcome. I never workwith stm8. But i think 1k ram is very low
@alirezasarrami1955
@alirezasarrami1955 3 года назад
سلام ، من متن کتابخونه رو خوندم خیلی عالی بود ، فقط وقتی ادد میکنم 66 ارور میده ، مثلا میگه uint8 رو نمیشناسه ، من با bluepill کار میکنم ، علتش یه چیز کلیه ، میشه بگید چی میتونه باشه با سپاس
@alirezasarrami1955
@alirezasarrami1955 3 года назад
باید فایل هدر میکرو رو توی h. اضافه کنی ، تا متغییر ها رو بشناسه
@konstantingolinskiy4944
@konstantingolinskiy4944 4 года назад
Was this memory chip used in Quad SPI mode? or only in SPI mode?
@nimaltd
@nimaltd 4 года назад
Only spi mode yet
@arabiyasoft6716
@arabiyasoft6716 3 года назад
nice Job.
@nimaltd
@nimaltd 3 года назад
Thanks
@smitpatel1315
@smitpatel1315 Год назад
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...
@nimaltd
@nimaltd 5 месяцев назад
hello. i will it in next version.
@romankucera4728
@romankucera4728 9 месяцев назад
How DMA used? 😊
@nimaltd
@nimaltd 5 месяцев назад
In my latest version :)
@ABABA30175
@ABABA30175 2 года назад
Hi MimaLTD, Thank you for your example about how to use SPI flash, I learn it step by step from the video, there have an error when I Rebuild the code, In the w25qxx.h, have an error in every function :identifier "uint32_t" is undefined Thank you Br Steve
@nimaltd
@nimaltd 2 года назад
Hi, what is your error?
@ABABA30175
@ABABA30175 2 года назад
@@nimaltd Thank you for your reply, I re-try the project again, unfortunately, the result is as same as previous, the build output information shown that some error is occurred as below: In the w25qxx.h all the function return type is undefined, for example: ..\w25qxx-master\w25qxx.h(52): error: #20: identifier "uint8_t" is undefined uint8_t UniqID[8]; I upload the project I build, the link: drive.google.com/file/d/1IHgves1LNAApe_4kzekRFX4FO0OHDzAa/view?usp=sharing
@ABABA30175
@ABABA30175 2 года назад
Hi,NimaLTD a) I add the header file "main.h" in the w25qxx.c b) I add the header file "stdint.h" in the w25qxx.h the error is disappear, but I still cannot observe the change about the w25qxx register value, I'll try to learn this video again Thanks a lot
@ABABA30175
@ABABA30175 2 года назад
Hi,NimaLTD I change from stm32f429zet6 to stm32f103c8t6 cause my evb is broken, Now, I could read the w25qxx register value, but the write function is not work as the link: drive.google.com/drive/folders/1g5olD7jm5JKfzxfv_ZzRI4KTaeSfE_Jb?usp=sharing I record all the steps in the power point, I'm not sure that the step is correct or not.
@AmazingMj07
@AmazingMj07 3 года назад
CAN WE ADD W25Q32 IN ATMEGA328P ?
@nimaltd
@nimaltd 3 года назад
Yes. You must convert spi functions
@AmazingMj07
@AmazingMj07 3 года назад
@@nimaltd you try this one ?
@nimaltd
@nimaltd 3 года назад
@@AmazingMj07 i did not
@tambaxoso4287
@tambaxoso4287 2 года назад
i still get id 0, what is wrong?
@nimaltd
@nimaltd 2 года назад
please check your spi configurations
@saiteja-dn6pt
@saiteja-dn6pt 3 года назад
i am not able to write into the spi flash
@nimaltd
@nimaltd 3 года назад
What is your problem. do you read Reamdme ?
@levanhieu2358
@levanhieu2358 11 месяцев назад
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.
@nimaltd
@nimaltd 5 месяцев назад
please use my latest library and tell me you result
@akhilkaki6480
@akhilkaki6480 3 года назад
how can erase a single page. If I try to erase sector other pages will lost the data
@nimaltd
@nimaltd 3 года назад
This is impssible
@akhilkaki6480
@akhilkaki6480 3 года назад
@@nimaltd is there any chance of writing in each page without losing previously stored data in pages in same sector
@nimaltd
@nimaltd 3 года назад
@@akhilkaki6480 you should solve with software
@saiteja-dn6pt
@saiteja-dn6pt 3 года назад
can you please help in that
@ninhnguyen-el6dp
@ninhnguyen-el6dp 3 года назад
Can u help me? I have problem.
@nimaltd
@nimaltd 3 года назад
What is the problem?
@saiteja-dn6pt
@saiteja-dn6pt 3 года назад
I AM NOT ABLE TO SECTOR WISE ERASE
@nimaltd
@nimaltd 5 месяцев назад
please use my latest PACK.
@alirezasarrami1955
@alirezasarrami1955 3 года назад
بایت ادرس چیست مثلا باید گفت که فلان متغییر را در ادرس 22332 بریز
@nimaltd
@nimaltd 3 года назад
بله.
@alirezasarrami1955
@alirezasarrami1955 3 года назад
تشکر من باید کد هگز یه عکس رو بریزم روی همین ای سی و اون رو از ای سی بر روی lcd نمایش بدم ، لطف میکنید یه توضیح کوچولو بدید ، با تشکر
@404animator
@404animator 11 месяцев назад
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.
@404animator
@404animator 11 месяцев назад
it started to work only after adding W25qxx_EraseBlock(0); and W25qxx_WaitForWriteEnd();
@404animator
@404animator 11 месяцев назад
and still for some reason mcu has to be reseted in order to read newly written byte value. Otherwise read operation returns old value
@404animator
@404animator 11 месяцев назад
Still, read/write operations for sectors work great without any issues. So there must be some bug in the library
@nimaltd
@nimaltd 5 месяцев назад
please use my latest library and install it on your cube. it is a PACK
@laiphamvan9738
@laiphamvan9738 3 года назад
i dont have spi.h. can you help me?
@nimaltd
@nimaltd 3 года назад
Please watch video again. You can find it 🤗
@JeahBee66
@JeahBee66 3 года назад
configure Cube IDE to give it out.
@serhiivakarov3940
@serhiivakarov3940 3 года назад
At 1:50 -> Code Generator -> Generate peripheral initialization as .c/.h
@laiphamvan9738
@laiphamvan9738 3 года назад
i got it, Thank you
@mehdimotalebi549
@mehdimotalebi549 3 года назад
سلام عالی درجه یک ولی نمیدونم چرا وقتی من همه این کار ها رو انجام میدم 30 تا ارور میده مثلا میگه اصلا uint8_t رو نمیشناسه
@nimaltd
@nimaltd 3 года назад
سلام. شاید اتیبرری رو درست ادد نمیکنید
@CTO_Mechanik
@CTO_Mechanik Год назад
Я повторил в CubeIDE это сработало 👌🙏🖐️🤝👍👍👍🔥🔥🔥 спасибо за код
@mehdimotalebi549
@mehdimotalebi549 3 года назад
v
Далее
QSPI in STM32 || Write and Read || N25Q
16:51
Просмотров 26 тыс.
W25Q16JV flash память документация
26:00
Miyagi & Andy panda - minor (пародия Beatrise)
0:30
Interface WS2812 LEDs with STM32 || SPI 8bit
13:28
Просмотров 9 тыс.
External loaders for SPI flash: a "standard" version
47:08
SPIF( SPI FLASH) Library for STM32
6:21
Просмотров 1,5 тыс.
QSPI in STM32 || Boot from EXT Memory || XIP || N25Q
13:11
READ ,WRITE AND ERASE THE STM32 FLASH MEMORY
22:46
Просмотров 15 тыс.
STM32+EEPROM EMULATION
5:34
Просмотров 10 тыс.