MPC56xx Read flash from user code

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

MPC56xx Read flash from user code

跳至解决方案
2,268 次查看
tbonkers
Contributor III

Is there any restriction on reading Flash from user code in MPC56xx processors? I need to read parts from Shadow and Data flash, and know that erase and write are performed using special drivers, but what about reading?

Normally I'll use the code below:

  	for (i =SHADOW_FLASH_BASE; i <  SHADOW_FLASH_END; i+= 4)
  	{
  		word = *(uint32_t*) i;
  		uart_print_int(word);
  	}
  	

 

0 项奖励
回复
1 解答
2,255 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can read the flash directly, there are no restrictions.

It's just expected that the flash area is covered by Memory Management Unit - MMU (not present on e200z0 cores) and it's not protected by Memory Protection Unit - MPU (not all MPC56xx have MPU).

Regards,

Lukas

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,256 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can read the flash directly, there are no restrictions.

It's just expected that the flash area is covered by Memory Management Unit - MMU (not present on e200z0 cores) and it's not protected by Memory Protection Unit - MPU (not all MPC56xx have MPU).

Regards,

Lukas

0 项奖励
回复