Besides different EEPROMs, now you can read and write SPI FLASH devices with PICkit2 and PICkit3. Support is added to PICkitminus, starting from version 3.21.00 GUI software and 1.24.00 command line software (pk2cmd).
The connection is similar as for SPI EEPROM chips. See below
diagram for connection advice for typical chips. Note that on
PICkit3 the AUX pin is called PGM or LVP. Diagram made by Adem
Gdk.
Please note that some modern FLASH chips use 1.8 V voltage which
is not supported by PICkit2, due to the simple voltage clamp
circuit on PICkit2. You would need external voltage level
converter to work with 1.8 V chips. Be careful and don't burn your
FLASH!
Another note; it is good to keep the wires between PICkit and
FLASH chip short. The DO / SO pin has quite low drive strength on
some FLASH devices. The clock can cause crosstalk, giving read and
verify errors. It might help a little if you disable fast
programming.
There are already some chip types added to SPIFLASH family. More
can be added with device
file editor by dougy83. When you add devices, pay attention
to these parameters:
Also ConfigRdScript has special purpose for SPI FLASH chips. It
is used to read STATUS register. This is used to check whether
chip is busy performing an erase. It is also used to check if the
last write has finished. Otherwise the busy bit is read in the
write script, before starting new write operation. Note that you
don't normally need to touch these scripts, this is just FYI.
Usually copying an existing SPI FLASH device and modifying the
above listed parameters is enough.
kair.us/ projects/ pickitminus/ program spi flash devices with pickit2 and pickit3
page created 27.6.2023
last updated 13.10.2024 webmaster@kair.us