硬件:mcu:rt1010 flash:w25q32fvzpig
我的板子外接了一个nor flash w25q32 ,但是我通过flexspi操作flash读写,运行FLEXSPI_SoftwareReset时,会进入硬件错误。可能的原因是什么?
我的程序在rt1010中已经可以正常运行。附件是用配置工具生成的.mex文件。
参考例程:SDK_2.6.0_EVK-MIMXRT10\boards\evkmimxrt1010\driver_examples\flexspi
已解决! 转到解答。
Hi ,
从现象来判断,现象可能与硬件连接有关,但是从你的回复来看,代码可以在w25q32执行,又与前面的结论矛盾了。
你有在尝试过将整个代码运行在RAM中去读写w25q32吗?
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi 志成 项 ,
非常感谢使用NXP产品,很高兴为你提供技术支持!
查看过mt.mex 文件发现,连接w25q32的引脚与MIMXRT1010开发板是一样的,可以排除硬件方面的问题。
而根据你的描述,‘’运行FLEXSPI_SoftwareReset时,会进入硬件错误。‘’,我想知道的是在运行例程哪一个flash操作函数时出错呢?
同时,我建议你使用逻辑分析仪抓取信号分析一下,这样会给我们很多的信息来分析问题所在。
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi 志成 项 ,
感谢回复,我并没有你所说的具体函数和调试信息图。
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi 志成 项 ,
这个测试是在你自己的板子上运行的,QSPI Flash是w25q32吗?
根据截图,代码其实已经可以在QSPI运行了,只是运行flexspi_nor_polling_transfer工程代码时出错了,你有尝试将工程代码运行在RAM中执行吗,如果有的话,也会碰到类似错误吗?
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi 志成 项 ,
感谢回复。
1) 这个测试是在你自己的板子上运行的,QSPI Flash是w25q32吗?
2) 请问上面的函数放在RAM中执行,只是将上述函数进行转移呢,还是整个工程都是在RAM中呢?
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi ,
从现象来判断,现象可能与硬件连接有关,但是从你的回复来看,代码可以在w25q32执行,又与前面的结论矛盾了。
你有在尝试过将整个代码运行在RAM中去读写w25q32吗?
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi 志成 项,
感谢回复。
1)如果我要操作flash,关闭中断是必须的吗?
-- 不是必须,但是建议关闭全局中断,以排除干扰。
Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------