K60 with external code memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

K60 with external code memory

跳至解决方案
820 次查看
cktrod
Contributor I

I'm trying to run code in an external flash on the FlexBus.  I would like to set instruction breakpoints in the code in external flash for debugging. It appears that I will have to use the aliased region that resides on the code bus between 0x1800_0000 and 0x1BFF_FFFF (aliased to 0x9800_0000 and 0x9BFF_FFFF).  Is this correct?

Do I use the aliased address (0x1XXX_XXXX) for all references to this space in the linker file and CSARX?

I'm using a K60FX512VLQ12 and can't seem to read the memory in the memory window of my debugger (IAR EWARM) when the CSARX is set to 0x1800_0000, but if I change CSARX to one of the external memory/peripheral regions I can read the contents of my flash part.  Does my processor have the aliased region?  Are there any other settings that are required to enable this aliased function?

Thanks,

Rod

标签 (1)
标记 (4)
0 项奖励
回复
1 解答
680 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Rodney,

0x1800_0000–0x1BFF_FFFF can only be accessed by core only, so if you want to put your code there, it would be the better place other than the places can be accessed by all masters.


Have a great day,
B.R
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
681 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Rodney,

0x1800_0000–0x1BFF_FFFF can only be accessed by core only, so if you want to put your code there, it would be the better place other than the places can be accessed by all masters.


Have a great day,
B.R
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复