erasing the page FF and page FD ?

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

erasing the page FF and page FD ?

2,379 次查看
qinxk
Contributor I

Dear:

After erasing the page FF and page FD

when I launch the debug, the following error happen:

Communication with the target failed:  The target MCU has no clock or wrong BDM clock speed is used or derivative is secured.

 

 

 

 

0 项奖励
回复
11 回复数

2,348 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Page FF covers global 0x7F_C000 – 0x7F_FFFF address range that includes the Flash configuration filed and the Flash Security byte.

danielmartynek_1-1600850777524.png

I assume the MCU is secure, please try the Unsecure command.

danielmartynek_2-1600850785676.png

Thank you,

BR, Daniel

 

0 项奖励
回复

2,041 次查看
kef2
Senior Contributor V

Obviously your project is for other than S12XE derivative or you crafted it to use wrong *unsecure*.cmd file. Here's exceprt form unsecure cmd for S12XE. See different divider settings, no ECLKDIV at all.

Edward

 

// ver 0.2 (28-Mar-06)
// HCS12XE Core erasing + unsecuring command file:
// These commands mass erase the chip then program the security byte to 0xFE (unsecured state).

DEFINEVALUEDLG "Information required to unsecure the device" "FCLKDIV" 17 "To unsecure the device, the command script needs \nthe correct value for the FCLKDIV onchip register.\n\nDatasheet proposed values:\n\noscillator frequency\tFCLKDIV value (decimal)\n\n 16 \tMHz\t\t17\n 12 \tMHz\t\t13\n 8 \tMHz\t\t9\n 4 \tMHz\t\t5\n"

0 项奖励
回复

2,344 次查看
qinxk
Contributor I

Thanks! Your answer is very helpful for me.

Unsecure is failure as follow:

image.png

Using default configuration: (Bus clk maybe 40MHz)

image.png

0 项奖励
回复

2,336 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Can you take a look at the project and read what was written to the ECLKDIV / FCLKDIV registers?

What is the frequency of the oscillator?

 

Thanks,

BR, Daniel

 

 

0 项奖励
回复

2,329 次查看
qinxk
Contributor I

ECLKDIV/FCLKDIV = 0x28

OSCCLK = 8MHz

0 项奖励
回复

2,303 次查看
qinxk
Contributor I

Yes!

0 项奖励
回复

2,319 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Have you tried with CLKDIV = 0x28 = 40?

 

BR, Daniel

0 项奖励
回复

2,302 次查看
qinxk
Contributor I

Hi, yes

It is still failure!

0 项奖励
回复

2,237 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

If you use a PE Micro debugger or OSBDM, please use the Unsecure12 PE Micro tool:

http://www.pemicro.com/downloads/download_file.cfm?download_id=16

 

It should unlock the MCU.

 

Thank you,

BR, Daniel

 

0 项奖励
回复

2,367 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

Which MCU do you use?

 

Thanks,

BR, Daniel

0 项奖励
回复

2,359 次查看
qinxk
Contributor I
Hi, MCU is MC9S12XDG128MAL
0 项奖励
回复