Hello,
Running the example program indicated in the title, it needs about 17 seconds to erase a single flash sector! The flash data sheet indicated that it needs about 300ms (internally) to erase a single sector. I'm using a MIMXRT1064-EVK evaluation board.
Can anybody please try this too, and tell me what the results are? What could be the root cause?
Thanks in advance.
Solved! Go to Solution.
Hi Tamir Michael ,
Do you use the newest SDK version, in my memory the the last SDK already fix this issue.
To the old SDK, really have this problem, please check the following information:
The ERASESECTOR index is wrong, when I changed the ERASECHIP to 13, or just use the RT1060 index:
#define NOR_CMD_LUT_SEQ_IDX_READ_NORMAL 7
#define NOR_CMD_LUT_SEQ_IDX_READ_FAST 13
#define NOR_CMD_LUT_SEQ_IDX_READ_FAST_QUAD 0
#define NOR_CMD_LUT_SEQ_IDX_READSTATUS 1
#define NOR_CMD_LUT_SEQ_IDX_WRITEENABLE 2
#define NOR_CMD_LUT_SEQ_IDX_ERASESECTOR 3
#define NOR_CMD_LUT_SEQ_IDX_PAGEPROGRAM_SINGLE 6
#define NOR_CMD_LUT_SEQ_IDX_PAGEPROGRAM_QUAD 4
#define NOR_CMD_LUT_SEQ_IDX_READID 8
#define NOR_CMD_LUT_SEQ_IDX_WRITESTATUSREG 9
#define NOR_CMD_LUT_SEQ_IDX_ENTERQPI 10
#define NOR_CMD_LUT_SEQ_IDX_EXITQPI 11
#define NOR_CMD_LUT_SEQ_IDX_READSTATUSREG 12
#define NOR_CMD_LUT_SEQ_IDX_ERASECHIP 5
The sector erase time is about 70ms, it's correct.
Wish it helps you!
If you still have questions about it, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
You are welcome!
If you have any new questions, welcome to create the new community post, we will help you in your new case!
Best Regards,
Kerry
Hi Tamir Michael ,
Do you use the newest SDK version, in my memory the the last SDK already fix this issue.
To the old SDK, really have this problem, please check the following information:
The ERASESECTOR index is wrong, when I changed the ERASECHIP to 13, or just use the RT1060 index:
#define NOR_CMD_LUT_SEQ_IDX_READ_NORMAL 7
#define NOR_CMD_LUT_SEQ_IDX_READ_FAST 13
#define NOR_CMD_LUT_SEQ_IDX_READ_FAST_QUAD 0
#define NOR_CMD_LUT_SEQ_IDX_READSTATUS 1
#define NOR_CMD_LUT_SEQ_IDX_WRITEENABLE 2
#define NOR_CMD_LUT_SEQ_IDX_ERASESECTOR 3
#define NOR_CMD_LUT_SEQ_IDX_PAGEPROGRAM_SINGLE 6
#define NOR_CMD_LUT_SEQ_IDX_PAGEPROGRAM_QUAD 4
#define NOR_CMD_LUT_SEQ_IDX_READID 8
#define NOR_CMD_LUT_SEQ_IDX_WRITESTATUSREG 9
#define NOR_CMD_LUT_SEQ_IDX_ENTERQPI 10
#define NOR_CMD_LUT_SEQ_IDX_EXITQPI 11
#define NOR_CMD_LUT_SEQ_IDX_READSTATUSREG 12
#define NOR_CMD_LUT_SEQ_IDX_ERASECHIP 5
The sector erase time is about 70ms, it's correct.
Wish it helps you!
If you still have questions about it, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Kind of funny, I encountered this bug when I reviewed the code after determining that it was misbehaving but I took no action...
Hi,
Just downloaded and unzipped SDKs and found the fix myself (corrected in 2.7.0). Thanks again.
Hi,
Thanks for your reply. I will compare the relevant code of SDK 2.6.1 and SDK 2.7.0 to see if something changed. Can't actually install 2.7.0 because of an obscure error I posted about recently...