Commit Graph

53 Commits

Author SHA1 Message Date
Gwenhael Goavec-Merou e56cfb41fc spiFlash: added MX25L enable/disable quad + display status register 2024-09-22 13:10:18 +02:00
Gwenhael Goavec-Merou 2a46ab9265 spiFlash: fixed set_quad_bit method 2024-09-22 08:53:54 +02:00
Gwenhael Goavec-Merou d38083517c core: added option/methods to enable/disable quad mode on SPI Flash 2024-08-25 09:38:27 +02:00
Gwenhael Goavec-Merou e0b841f5b1 spiFlash: added method to enable/disable Quad mode support 2024-08-25 09:36:47 +02:00
Gwenhael Goavec-Merou fca69cc702 spiFlash: added configuration/nonvolatile configuration register for spansion and micron SPI Flash 2024-08-25 09:34:14 +02:00
Gwenhael Goavec-Merou a7a1a788ff spiFlash: 0x0000 is not a valid jedec id 2024-07-29 07:45:45 +02:00
Gwenhael Goavec-Merou 58cc5033f0 spiFlash: removed unused variable (#468) 2024-07-06 08:51:28 +02:00
Gwenhael Goavec-Merou f6b6f6f9d8 spiFlash: added get_bp_mask to return default bp mask (unknown device) or compute mask based on bp_offset. Replace all manual mask compute. (#468) 2024-07-04 08:17:49 +02:00
Gwenhael Goavec-Merou d0dd71a28a spiFlash: display_status_reg simplify again 2024-06-09 09:26:27 +02:00
Gwenhael Goavec-Merou 36b1a7f9d9 spiFlash: read_id: display jedec ID. display_status_reg small fixes 2024-06-09 09:14:38 +02:00
Gwenhael Goavec-Merou cb523199cc spiFlash: enable_protection/disable_protection: uses mask to only deal by bp 2024-06-03 16:18:14 +02:00
Gwenhael Goavec-Merou 2b80ce158b spiFlash: added ask before writting TB when OTP, added missing write_enable and fixed mask 2024-06-03 15:23:12 +02:00
Patrick Urban 972ded1298 spiFlashdb: add MX25R6435F and fix SPIFlash::bp_to_len 2024-03-15 00:44:17 +01:00
Alexey Starikovskiy 1908ccd83b make output buffer const 2023-08-29 19:51:41 +03:00
Gwenhael Goavec-Merou 8ffa024a95 spiFlash: temporary disable read extended (#345) 2023-07-24 14:45:13 +02:00
Gwenhael Goavec-Merou a5489e62f8 spiFlash: ST M25P16 2023-03-04 18:14:37 +01:00
Ricardo Barbedo 43e6c0c867
Add support for 4-byte QSPI flash addressing (#295)
* Add support for 4-byte QSPI flash addressing

* Avoid code duplication
2023-01-23 15:18:46 +01:00
Cedric de Wijs 483304344f more typo fixes 2022-12-18 23:29:21 +01:00
Rod Whitby de5aff7a96 spiFlash: Add --bulk-erase command line option
Adds a --bulk-erase command line option for bulk erasure of SPI flash.
2022-11-06 18:56:07 +10:30
Petr Nechaev 1bbe448f3a Limit automatic read burst length to 64K
Reading of very large binaries (e.g. 32 MB) can cause stack overflow.
Put a reasonable limit on read burst length.
2022-10-16 15:44:33 +03:00
Gwenhael Goavec-Merou c64f1970d6 spiFlash: stop if jedec_id == 0xffffff 2022-06-02 08:52:56 +02:00
Gwenhael Goavec-Merou d7365495aa spiFlash: fix display: when bp_len==0 -> set bp/tb = 0, otherwise parse reg 2022-04-23 17:58:33 +02:00
Gwenhael Goavec-Merou 7a8ed993f3 spiFlash: bulk_erase: check bp before erase 2022-03-31 06:36:37 +02:00
Gwenhael Goavec-Merou f615627b3c
Merge pull request #204 from rstephan/p_one_flash
Support for the Microchip SST25VF040B flash
2022-03-30 06:45:53 +02:00
Stephan Ruloff 648d8b9e3b Removed `must_relock` part for the "SST25VF040B" as requested 2022-03-29 18:30:23 +02:00
Gwenhael Goavec-Merou f9eb32c778 spiFlash: handle case where TB is not configurable 2022-03-29 07:49:08 +02:00
Stephan Ruloff 8c4b1b3afd Support for the Microchip SST25VF040B flash.
Programming is slow, only one byte at a time :-(
2022-03-25 21:15:09 +01:00
Gwenhael Goavec-Merou 86fa1e01de spiFlash: force subsector only for SST26VF032B 2022-02-26 19:10:18 +01:00
Gwenhael Goavec-Merou add794ab67 spiFlashdb: add microchip SST26VF032B 2022-02-26 16:31:41 +01:00
Gwenhael Goavec-Merou aada7fe26b spiFlash: when no subsector_erase compute end_addr with correct block size 2022-02-26 16:17:49 +01:00
Gwenhael Goavec-Merou 655f2c61ec spiFlash: add no block protect use case 2022-02-26 16:15:50 +01:00
Gwenhael Goavec-Merou 498c01889f spiFlash: fix overflow test (#172) 2022-02-07 07:44:11 +01:00
Gwenhael Goavec-Merou b25e2e0125 spiFlash: enable/disable protection. now handle correctly device with protection enabled 2021-12-22 19:07:00 +01:00
Gwenhael Goavec-Merou 859c1a1a0f spiFlash: erase using 4 or 64Kb 2021-10-20 08:00:21 +02:00
Gwenhael Goavec-Merou c043da874c spiFlash: enable_protection method 2021-10-20 07:43:47 +02:00
Gwenhael Goavec-Merou 3730e8189d spiFlash: extract status register display from read_status_reg 2021-10-19 07:06:46 +02:00
Gwenhael Goavec-Merou d8b8afce99 spiFlash: fix len_to_bp mask 2021-10-18 07:34:27 +02:00
Gwenhael Goavec-Merou dd4e3e40df spiFlash: typo 2021-10-10 18:27:41 +02:00
Gwenhael Goavec-Merou ddcf8fd1b1 spiFlash: add flash_model, method to convert len to block protect and block protect to len 2021-10-10 18:26:04 +02:00
Gwenhael Goavec-Merou 28cbd1faad spiFlash: workaround for dump > 1M 2021-10-02 19:25:04 +02:00
Gwenhael Goavec-Merou b77c5a22df spiFlash: add verify and dump method 2021-07-11 11:32:10 +02:00
Gwenhael Goavec-Merou 8f95303daf move to APACHE-2.0 license 2021-06-26 15:24:07 +02:00
Gwenhael Goavec-Merou 6ae29125ed spiFlash: add a workaround for microchip SST26VF032B / SST26VF032BA 2021-05-05 06:59:02 +02:00
Gwenhael Goavec-Merou c82257c9ba spiFlash: introduce jedec_id 2021-05-05 06:25:00 +02:00
Gwenhael Goavec-Merou ad21a3bb36 recast verbose to int8_t to have more level of verbosity (-1 quiet, 0 normal, 1 verbose), add --quiet option, display progress bar when verbosity level >= 0 2021-01-30 07:57:49 +01:00
Gwenhael Goavec-Merou 31bc9cf988 spiFlash: drop annoying message in write_enable method 2020-08-24 08:52:00 +02:00
Gwenhael Goavec-Merou 4bfb764e75 spiFlash: fix base addr, add method to read flash content and (non)volatile registers + cleanup 2020-08-23 17:14:21 +02:00
Gwenhael Goavec-Merou 0409263f87 unlock block if locked before erase/flash 2020-04-21 19:25:35 +02:00
Gwenhael Goavec-Merou 95f247a25e spiFlash: read extented ID only when len != 0 2020-04-21 09:02:48 +02:00
Gwenhael Goavec-Merou c94f031025 spiFlash: use spiInterface to hide communication details 2020-04-21 09:00:57 +02:00