MPC56xx Read flash from user code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC56xx Read flash from user code

ソリューションへジャンプ
2,273件の閲覧回数
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,260件の閲覧回数
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,261件の閲覧回数
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 件の賞賛
返信