2

I'm trying to program a Freescale MC12311 transceiver IC which has a 9S08QE32 MCU embedded in it:

MC12311: Sub-1 GHz RF and 8-bit HCS08 MCU with 32KB Flash, 2KB RAM

I'm using a Background Debug Module (BDM) from P&E Micro (USB Multilink Universal); and also the Codewarrior 10.4 software as IDE.

However, the following error occurs each time I try to program/debug/flash/erase the target IC:

Error message

Power Cycle Dialog: The target MCU is not responding. Please turn MCU power off (Under 0.1v), turn MCU power on, and then click OK. This will attempt to enter debug mode through a power on reset sequence (BKGD is currently driven low).

I tried to power off/on the MCU, but there's no success, and it fails to connect to the target board.

I have checked the pins and connections, and everything seems OK. Also, I have checked the BKGD and RESET pins of the 2x3 BDM header, and some activities (high-to-low and low-to-high) are monitored on oscilloscope.

In other hand, I have tried different versions of Codewarrior (10.5, 10.4, 6.3, etc.) and also on different platforms (Win7-64bit, WinXP-32bit, etc.), but the result is always the same: it fails to connect to the target board.

What should I do now? What's the problem?

EDIT

(The following is a list of additional information regarding the troubleshooting steps I've taken to solve this problem, which were not successful.)

I'm using a P&E USB Multilink Universal, and CodeWarrior 10.4 IDE, on Win7 64-bit platform.

But unfortunately, turning off/on the power doesn't help, and it fails to connect to the target. The following is the schematic of my circuit, in which the red circles depict the BDM header and connections:

schematic

(Click on the schematic image to enlarge.)

The following is a list of the related tries:

  1. I've added 10k pull-up resistors to both BKGD and RESET lines; but no success! The same error occurs and it fails to connect to the target.

  2. I try to turn off/on using either the main power supply, power jumpers, reset switch, etc.; but it doesn't matter; again no success!

  3. I checked the pins on the pcb, and everything seems OK. I mean, it seems that it has been soldered without any significant problems.

  4. I monitored both BKGD and RESET pins: some activities (going from low to high, and high to low) are monitored after I press the "erase" button on CodeWarrior IDE.

  5. I tried to monitor the external 32 kHz and 32 MHz crystal resonators, using a 10x probe, with both an analog oscillator and a digital counter. However, no activity is observed, nothing at all! It seems that either the crystals or the respective internal circuits are dead!

  6. The datasheet mentions that "the MCU has an internal crystal oscillator, which is enabled in every power-on-reset, without need for external components". What I understand from this part, is that the program/debug/erase step should be done without need for external crystals. This could mean that even if both of the external crystals are dead, I should theoretically be able to erase the MCU with the help of the internal oscillator. But I don't understand why it fails!

  7. I tried to program/debug/erase this IC using another version of CodeWarrior, such as 6.3, and also on another operating system, such as Win XP, or Win7 32-bit. But again no success!! The same error occurs, and it fails to connect to the target.

  8. There's another circuit board which uses the same MC12311 IC with almost the same components, configurations, and schematic. I tried all the mentioned steps on that board. But unfortunately, no success again! The same errors and the same failures!

  9. I checked the power: I provide 5-6 volt external power supply; it passes through a 3v3 regulator; then it passes through a schottky diode, and the final regulated 3.1 volt powers the IC. It is mentioned in the datasheet that the accepted input voltage range is approximately 2.5 ~ 3.7. So I don't think this "3.1 volt" would cause any problems.

Could this be related to the "clock" sources of the MCU?

I really don't know what to do next to solve this challenging problem! What should I do? I would be really grateful if you give any helpful comments or replies.

Omid1989
  • 275
  • 1
  • 3
  • 12
  • 1
    Did you try adding 10k pull up resistors to BKGD and RESET pins? – abdullah kahraman Mar 20 '14 at 09:09
  • Yes I did. I added 10k pull-up resistors to both BKGD and RESET pins, but the result was the same! No success. – Omid1989 Mar 20 '14 at 09:29
  • 1
    [This](https://community.freescale.com/thread/308663) was my question on Freescale Community Forum. Maybe clock settings are changed and corrupted so the MCU cannot respond? (The last sentence is probably gibberish, I know nothing about Freescale MCUs). – abdullah kahraman Mar 20 '14 at 09:41
  • Teşekkürler Abdullah for your comment. Actually, I had previously seen that topic on Freescale Community Forum. I have applied both of the suggestions (switch & pull-ups), but still no success! Also, I haven't still been able to program/debug-erase this MCU (even for one time!!), so I don't know about clock settings yet. I really don't know what to do :( – Omid1989 Mar 20 '14 at 10:05
  • Have you tried asking this on Freescale Community Forums? – abdullah kahraman Mar 20 '14 at 11:20
  • Yes. [This](https://community.freescale.com/message/388272#388272) is my question on the Freescale forum, and [this](http://www.pemicro.com/forums/forum.cfm?forum_id=2&forum_topic_id=4101) is another one on the P&E forum. Some answers are given, but not very much helpful :( – Omid1989 Mar 20 '14 at 12:12
  • Please let us know if you have any solution to the problem, by editing the question. – abdullah kahraman Mar 20 '14 at 14:06
  • 1
    I will definitely post the answer here. I just don't know what is causing the problem!! – Omid1989 Mar 20 '14 at 19:50
  • Dear Abdullah; I have a question regarding the on/off switch you put after the 3.3 voltage regulator: How long did you turn the power off when that "power cycle" error occurred? (How many seconds?) Thanks in advance :) – Omid1989 Mar 21 '14 at 16:39
  • 1
    Almost instant, maybe 500 msec. – abdullah kahraman Mar 22 '14 at 17:04
  • Thank you Abdullah for your comment. Did it work when that off/on time was longer than 500 msec? I mean to say, is it necessary to be that much short? – Omid1989 Mar 22 '14 at 19:41
  • 1
    Yes, it worked all the time. Basically, I cannot make the switch OFF and then ON in a short time, I am a human being, I'm a natural low pass filter.. – abdullah kahraman Mar 24 '14 at 07:10
  • 1
    Thanks again Abdullah for your answer. I do really appreciate it :) – Omid1989 Mar 25 '14 at 08:25
  • Does anyone else know how to solve this problem!? – Omid1989 Apr 02 '14 at 05:06

3 Answers3

1

Please check the pin package of target which you have configured in 10.5 code warrior IDE. I also had same error and able solved the problem.

1

Finally, I found my own answer:

Unfortunately, the IC had not been soldered properly !!!

There was no connection between the programmer and the IC. We soldered it again several times, and finally it worked !!!!

For others: Just make sure the IC has been mounted properly, before you go to other steps ;)

Omid1989
  • 275
  • 1
  • 3
  • 12
0

I too have same problem. a friend of mine just switch off once and on the power supply of 5 volt to the microcontroller and pressed ok and it works properly

user37000
  • 77
  • 1
  • 7