请问一下5744P的程序在ram里运行比flash里运行还要慢一点这是正常的吗?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

请问一下5744P的程序在ram里运行比flash里运行还要慢一点这是正常的吗?

519 Views
kiddyang
Contributor I

Is it normal that program running in RAM is slower than in flash?

我测试的时候发现同样的程序在ram里反而慢,通过pc寄存器能看到确实在ram里运行的。

Labels (1)
Tags (1)
0 Kudos
1 Reply

404 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

this can happen, it is application dependent. Crossbar allows concurrent access of two bus masters to different slaves. If the code is running from flash memory, data can be written/read to/from the RAM at the same time because there are separate buses for instruction and data. If the code is running from RAM, it can add some wait states when accessing data in RAM because there's conflict on crossbar. This effect can be eliminated by enabled cache memory up to certain level.

Regards,

Lukas

0 Kudos