Placing LPC4367's M0SUB core's code in other memory location

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

Placing LPC4367's M0SUB core's code in other memory location

跳至解决方案
1,189 次查看
akhilesh_sreedh
Contributor III

Hello,

I would like to know if LPC4367's M0SUB core's program can be placed in any other internal memory location apart from the 16kB LOCAL SRAM which the LPCXpresso project creation wizard configures by default,  since our code for M0SUB doesn't fit into the 16 kB LOCAL SRAM.

Also, I would like to know if only M0SUB can be made to access code from an external flash using the SPIFI or a parallel NOR flash.

Any examples regarding both the queries would help me. 


Thanks,

Akhilesh Sreedharan 

1 解答
906 次查看
bernhardfink
NXP Employee
NXP Employee

It's possible, the M0SUB is a bus master and can access any memory location in the LPC4367.

But as the M0SUB is behind a sync bridge, there will be a latency.

I think it is 4 wait states, so you will only get 25% performance compared to execution from the LOCAL 16+2kB SRAM.

You can access the SPIFI with the M0SUB, but not exclusively. There is no systemwide MPU in this chip, only the M4 has a memory protection unit. All other bust master with their DMA or the M0APP could also access the SPIFI, so you can't establish a firewall in order to keep the access exclusively to the M0SUB.

Regards,

Bernhard.

在原帖中查看解决方案

1 回复
907 次查看
bernhardfink
NXP Employee
NXP Employee

It's possible, the M0SUB is a bus master and can access any memory location in the LPC4367.

But as the M0SUB is behind a sync bridge, there will be a latency.

I think it is 4 wait states, so you will only get 25% performance compared to execution from the LOCAL 16+2kB SRAM.

You can access the SPIFI with the M0SUB, but not exclusively. There is no systemwide MPU in this chip, only the M4 has a memory protection unit. All other bust master with their DMA or the M0APP could also access the SPIFI, so you can't establish a firewall in order to keep the access exclusively to the M0SUB.

Regards,

Bernhard.