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.
Hi,
Page FF covers global 0x7F_C000 – 0x7F_FFFF address range that includes the Flash configuration filed and the Flash Security byte.
I assume the MCU is secure, please try the Unsecure command.
Thank you,
BR, Daniel
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"
Thanks! Your answer is very helpful for me.
Unsecure is failure as follow:
Using default configuration: (Bus clk maybe 40MHz)
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
ECLKDIV/FCLKDIV = 0x28
OSCCLK = 8MHz
Yes!
Hi,
Have you tried with CLKDIV = 0x28 = 40?
BR, Daniel
Hi, yes
It is still failure!
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
Hello,
Which MCU do you use?
Thanks,
BR, Daniel