You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-20Lines changed: 57 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,69 @@
1
1
# MX25R6435F
2
-
Arduino library to support the Quad-SPI NOR Flash memory MX25R6435F
2
+
Arduino library to support the Quad-SPI NOR Flash memory MX25R6435F using the Quad SPI flash memories interface. Since library version 2.0.0 and [STM32 core](https://github.com/stm32duino/Arduino_Core_STM32) version 2.0.0 the OctoSPI Flash memories interface can also be used.
3
3
4
4
## API
5
5
6
6
The library provides the following API:
7
7
8
-
* begin()
9
-
* end()
10
-
* write()
11
-
* read()
12
-
* mapped()
13
-
* erase()
14
-
* eraseChip()
15
-
* eraseSector()
16
-
* suspendErase()
17
-
* resumeErase()
18
-
* sleep()
19
-
* wakeup()
20
-
* status()
21
-
* info()
22
-
* length()
8
+
*`begin()`
9
+
*`end()`
10
+
*`write()`
11
+
*`read()`
12
+
*`mapped()`
13
+
*`erase()`
14
+
*`eraseChip()`
15
+
*`eraseSector()`
16
+
*`suspendErase()`
17
+
*`resumeErase()`
18
+
*`sleep()`
19
+
*`wakeup()`
20
+
*`status()`
21
+
*`info()`
22
+
*`length()`
23
+
24
+
Since library version 2.0.0, xSPI pins can be defined at sketch level, using:
25
+
26
+
* To redefine the default one before call of `begin()`:
* or by redefining the default pins definition (using [build_opt.h](https://github.com/stm32duino/wiki/wiki/Customize-build-options-using-build_opt.h) or [hal_conf_extra.h](https://github.com/stm32duino/wiki/wiki/HAL-configuration#customize-hal-or-variant-definition)):
53
+
54
+
*`MX25R6435F_D0`
55
+
*`MX25R6435F_D1`
56
+
*`MX25R6435F_D2`
57
+
*`MX25R6435F_D3`
58
+
*`MX25R6435F_SCLK`
59
+
*`MX25R6435F_SSEL`
23
60
24
61
## Examples
25
62
26
-
3 sketches provide basic examples to show how to use the library API.
27
-
demo.ino uses basic read/write functions.
28
-
eraseChip.ino erases all data present in the memory.
29
-
memoryMappedMode.ino shows how to use the mapped mode.
63
+
3 sketches provide basic examples to show how to use the library API:
64
+
*`demo.ino` uses basic read/write functions.
65
+
*`eraseChip.ino` erases all data present in the memory.
66
+
*`memoryMappedMode.ino` shows how to use the mapped mode.
0 commit comments