In imxrt1170-evk board, when i use hello_world demo in SDK2.12 in the IAR env (version:9.30.1),I can not goto debug mode, it shows:
Solved! Go to Solution.
debug build是下载到片内SRAM运行
fllexspi_nor_debug build是下载到片外NOR Flash运行(这个需要IDE里下载算法支持)
Below blogs may be helpful to you
大话双核i.MXRT1170之Cortex-M7与Cortex-M4互相激活之道 大话双核i.MXRT1170之单独在线调试从核工程的方法(IAR篇) 大话双核i.MXRT1170之在线联合调试双核工程的三种方法(IAR篇) |
你好,我的问题是hello wrold的demo在flexspi nor模式下无法调试,在普通debug模式下是可以调试的,换言之,就是链接文件由MIMXRT1176xxxxx_cm4_ram.icf改为MIMXRT1176xxxxx_cm4_flexspi_nor.icf无法进行,从IAR端操作如下:
切换到:
因为默认CM4是从核,没法HW复位后从flash直接启动,最好在IAR选项里将复位类型改为 core reset
IAR在线调试时设不同复位类型可能会导致i.MXRT下调试现象不一致(J-Link/DAPLink) |
然后你确定IAR的flash下载算法在 CM4 下能正常工作吗?
你好,我确认使用SDK2.12版本,IAR环境的hello-world的demo程序,在debug(对应链接文件xxx_ram.icf)下载运行是没问题的
debug build是下载到片内SRAM运行
fllexspi_nor_debug build是下载到片外NOR Flash运行(这个需要IDE里下载算法支持)
the core in-use is cortex-m4