Setting censor mpc563

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

Setting censor mpc563

2,647 Views
mpowere36
Contributor I

Hi,

I have some difficulties to set censor bits of my mpc563 after clearing them. However, I follow the instructions given in the manual for setting censor (see picture attached).

My 2FC800 register is currently equal to 40 FF 00 FF and I want to set it to 41 FF 00 FF (censorship = 1).

Before setting the censor bit, I set the 2FC808 register (UC3FCTL) to 58 00 00 42 (CSC=1, PE=0, SES=1) as it is said in the manual but then, when I try to change the first byte of the 2FC800 register from 40 to 41, the value stay at 40. It is like I am not allowed to set the censor bits and I don't understand why.

If someone can help me, it would be very appreciated.

Thanks

0 Kudos
Reply
3 Replies

2,617 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I have found in the old ticket database some code snippet to enable censorship.

They should be both high to enable program of FLASH NVM location.

// Enable EPEE and BOEPEE
USIU.SGPIOCR.B.SDDRC = 0x60;
USIU.SGPIODT2.B.SGPIOC = 0x00;
while(UC3F_A.UC3FCTL.B.EPEE != TRUE);

UC3F_A.UC3FCTL.B.CSC =1;
UC3F_A.UC3FCTL.B.PE = 0;
UC3F_A.UC3FCTL.B.SES =1;
UC3F_A.UC3FMCR.B.CENSOR = INFORMATION_CENSORSHIP;
UC3F_A.UC3FCTL.B.EHV = 1;

So yes, please make sure you execute the set censor process from RAM.

Also check errata sheet for the device you are using, there are some mentions about censorship.

Unfortunately we cannot offer comprehensive support for these legacy family (MPC5xx) since we do have no expert.

0 Kudos
Reply

2,610 Views
mpowere36
Contributor I

Thank you for your reply. It seems that EPEE and BOEPEE are both set because the byte 0x2FC808 (UC3FCTL) is equal to 0x58=0b1011000.

I made a little video of my problem :

https://m.youtube.com/watch?v=gACG9_35JwU

How could execute the instructions of the MPC563 manual from RAM with my ICD software ?

 

0 Kudos
Reply

2,600 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I suppose it could certain RAM target in that version of CodeWarrior.

0 Kudos
Reply