Git Product home page Git Product logo

winbond-w25qxx-eeprom-spi-with-dma-on-stm32's Introduction

SPI_W25QXX

A project to use Winbond EEPROM W25Qxx (W25Q64 in case) on SPI transport with DMA in STM32F103RE microcontroller. Commands transfer with the normal SPI cycles while the data travels by DMA bus.

To provide an accurate short delay, SysTick clangs each 10us. Furthermore, in the main cycle, the cron handler is realized, but it has a tiny bug that I did not overwhelm yet. The RTC and independent watchdog are triggered.

// Address Pattern

// 0x00BBBBSP

// bits 3..0 - number of page - P

// bits 7..4 - number of sector - S

// bits 23..8 - number of block - B

A test procedure in a handler of basic timer lets to check read and write EEPROM filling the data buffer with CRC calculations. A page overload of writing data displays a technique of the data manipulating.

Remember that the EEPROM has to be erased before writing even a byte, herewith the smallest part affected to erase is 4Kb (1 sector). So, if an only byte is needed to store it holds the whole sector.

The erasing function uses the same address parameter as the write/read ones, but it does not take to account bits 4..0 LSB of a page address.

If more than 8/16 sectors are affected by erasing, the erase block command is used. In this case, sector address bits 7..4 LBS are ignored. It means the address parameter is rounded to a block address.

winbond-w25qxx-eeprom-spi-with-dma-on-stm32's People

Contributors

zoosmand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.