Skip to content

Commit 4a47709

Browse files
committed
Fix OSPIFBlockDevice program size
From the datasheet of the only OctaSPI flash we currently support (http://www.mt-system.ru/sites/default/files/docs/Macronix/mx25lm51245g_3v_512mb_v0.01.pdf): After program/erase command is issued, auto program/erase algorithms which program/erase and verify the specified page or sector/block locations will be executed. Program command is executed on byte basis, or page (256 bytes) basis, or word basis. Erase command is executed on sector (4K-byte), or block (64K-byte), or whole chip basis. So the minimum write size is one byte.
1 parent 9f3ada3 commit 4a47709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/blockdevice/COMPONENT_OSPIF/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"OSPI_POLARITY_MODE": 0,
2424
"OSPI_FREQ": "40000000",
2525
"OSPI_MIN_READ_SIZE": "1",
26-
"OSPI_MIN_PROG_SIZE": "256"
26+
"OSPI_MIN_PROG_SIZE": "1"
2727
},
2828
"target_overrides": {
2929
"MX25LM51245G": {

0 commit comments

Comments
 (0)