Hi,
first of all thanks for support
I am using USB-MULTILINK BDM with 4 pin connector.PE7/XCLKS is connected to 5v pull up.I am also using Codewarrior development studio Version 5.1. still I am not able to program the controller. .Please do some needful.
As “reference design” you can use board EVB9S12XDP512
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=EVB9S12XDP512
Schematic:
http://www.freescale.com/files/microcontrollers/hardware_tools/schematics/EVB9S12XDP512SCH.pdf
or APS12XDT512SLK (CSMB-12XDT512)
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=HCS12XDT512SLK
http://www.freescale.com/files/student_learning_kits/hardware_tools/schematics/CSMB12_SCH_A.pdf
Your MCU may be secured. You can unsecure MCU by complete mass erase of BDM device(in special mode). In CodeWarrior debugger menu ->MultilinkCyclonePro (it depends on your BDM interface)->Unsecure…
If not work you can use unsecure12 from P&E (works with P&E interfaces):
http://www.pemicro.com/downloads/download_file.cfm?download_id=16
Unsecure_12 Help Files:
http://www.pemicro.com/downloads/download_file.cfm?download_id=14
Note: For downloading is necessary registration.
Few notes about your schematic:
Akash,
The standard BDM connector consists of a six pin dual row 0.1" header as shown here:
Pin 3 & 5 are "no connects", I'm not sure why PE7/XCLKS is connected to pin 3 of the connector in the schematic.
To program the S12XD256, requires an in circuit debugger/programming tool and some software. The least expensive debugger/programming tool Freescale sells is the USBMULTILINKBDM: USB S08/HCS12 BDM Multilink - In-Circuit Debugger/Programmer for $99. It can be ordered here:
USBMULTILINKBDM Product Summary Page
In addition, the Codewarrior Classic development environment can be downloaded for free here:
CodeWarrior Development Studio for HCS12(X) Microcontrollers (Classic IDE) Product Summary Page
The "Special" edition is limited to 32K of code/data. For larger code development needs, various licenses are available (Basic, Standard and Professional) for purchase.
If you are looking for production high speed programming, the P&E CyclonePro to Freescale's LFBDMPGMR would be two choices.
Best Regards,
Gordon