Hi,
i am using the micro MK22FN512, and the gpio EZP_CS is put to GND. In this condition on the power on the micro goes in the EZPORT mode.
I have found a solution to avoid this behaviour -> disable the EZ register on the FOTP (0x40D) using the SPI protocol.
The question is: Can i send the right command sequence
* WRITE_ENABLE CMD
*ERASE THE SECTOR CMD (0x00)
* WAIT THE SE REGISTER IS SET
*WRITE_ENABLE CMD
*PROGRAM ADDRESS CDM (0X40D0
*WAIT THE SE REGISTER IS SET
if the EZP_CS is put to ground during the sequence? Or is it necessary handle it and have a falling edge before send a command?
Thank you,
-Anna
Hi Anna,
First, if you clear FOPT[EZPORT_DIS], chip will not enter EZPORT mode. You can't program FLASH at any time.
If you connet EZP_CS to ground, you can't send SPI command. "The negation of EZP_CS indicates that the current command has finished and resets the EzPort state machine, so that EzPort is ready to receive the next command."
Regards,
Jing