Skip to content

MX25R6435F

Frederic Pillon edited this page May 28, 2024 · 2 revisions

MX25R6435F

Arduino library to support the Quad-SPI NOR Flash memory MX25R6435F.

API

  • MX25R6435FClass: class constructor

  • begin: initialize memory interface

  • end: de-initialize memory interface

  • write(uint8_t, uint32_t): write a single byte to the memory
    Params byte to be written
    Params memory address where write the byte
    Return number of byte written. 0 indicates a failure.

  • write(uint8_t*, uint32_t, uint32_t): write an amount of data to the memory
    Params pointer to byte(s) to be written
    Params memory starting address
    Params number of bytes to write
    Return number of byte written. 0 indicates a failure.

  • read(uint32_t): read a single byte
    Params memory address
    Return the byte read

  • read(uint8_t*, uint32_t, uint32_t): read an amount of data from the memory
    Params pointer to byte(s) to be read
    Params memory starting address
    Params number of bytes to read

  • mapped: configure the memory in mapped mode
    Return pointer to memory

  • erase(uint32_t): erase a block of the memory
    Params the address of the block to erase
    Return memory status

  • eraseChip: erase the entire memory
    Return memory status

  • eraseSector(uint32_t): erase a sector of the memory. This function is non blocking meaning that sector erase operation is started but not completed when the function returns. Application has to call status() to know when the device is available again (i.e. erase operation completed).
    Params the address of the sector to erase
    Return memory status

  • suspendErase: suspend an ongoing eraseSector command
    Return memory status

  • resumeErase: resume a paused eraseSector command
    Return memory status

  • sleep: enter the memory in deep power down mode
    Return memory status

  • wakeup: leave the memory from deep power down mode
    Return memory status

  • status: read the current memory status
    Return memory status

  • info(memory_info_t): read the memory configuration
    Params the parameter to read. Must be a memory_info_t value (MEMORY_SIZE, MEMORY_SECTOR_SIZE, MEMORY_SECTOR_NUMBER, MEMORY_PAGE_SIZE or MEMORY_PAGE_NUMBER)
    Return the parameter value

  • length: read the total size of the memory
    Return memory size

Note

This library uses the Q-SPI interface of the STM32 boards.

Examples

  • demo: shows how to use the memory driver
  • eraseChip: erase all the memory
  • memoryMappedMode: show how to use the memory mapped mode

Source

You can find the source files at
https://github.com/stm32duino/MX25R6435F

Documentation

The MX25R6435F datasheet is available at
http://www.mxic.com.tw/Lists/Datasheet/Attachments/6270/MX25R6435F,%20Wide%20Range,%2064Mb,%20v1.4.pdf

Clone this wiki locally