Hello, I start with 32 bit MCF51QE128 and find any debuge...

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

Hello, I start with 32 bit MCF51QE128 and find any debuge...

3,854 Views
admin
Specialist II
Hello, I start with 32 bit MCF51QE128 and find any debuger - programer for use in user board.
Labels (1)
0 Kudos
30 Replies

839 Views
Sanahuja
Contributor I
Hello,
I have the same problem when using the bdm connector of the demoqe board. Bdm is working with the mc9s08qe128 daughter card, but not with the mcf51qe128 daughter card.
When I click connect in the Cw for coldfire v6.1, it says it can't connect.
Did someone managed to use bdm with the mcf51qe128?
Thanks.
0 Kudos

839 Views
JimDon
Senior Contributor III
I have used the DEMO128 with MCF51QE chip using CW 6.1 with no problem.
I just built loaded, and ran one of the sample projects.

Are 100% sure you plugged in the daughter card right? It is very easy to plug it in wrong.

I have not tried it on an external board with the MCF51 yet, but on the mother board it works fine.


0 Kudos

839 Views
Sanahuja
Contributor I
Ok, after doing some tests, it seems that if I plug pin 45 (ptd3/kbi2p/3/ss2) from the demoqe board to my board it works!
That's very strange and I don't understand why....
0 Kudos

839 Views
JimDon
Senior Contributor III
What made you try that?
Will connecting other pins also make it work?

Are you using Vdd and Vss from the BDM connector to power the board?
Perhaps there is some odd grounding problem.
I just would like to know in case this comes up again.
Can you post the schematic?

0 Kudos

839 Views
Sanahuja
Contributor I
I tried this because I didn't understood why it was not working. So I tried to add more pins between the demoqe board and my board. It works with the pin 45, but for exemple it doesn't work with pin 46. I don't know and I haven't tried if it will work with another pin.
I am not an expert in electronic, maybe this could be a ground problem... For the moment, I'm using the power supply from the demoqe board (Vss and Vdd), as it comes with bdm connector. I will put a separate power supply on my board and try it. I will post the results.

I don't have the schematic, but as I said my board is linked to the demoqe board with bdm connector (pins 1,2,4 and 6 of the connector; that is to say Vdd, Vss, reset and bkgd) and with the pin 47 of the 64pin header.
0 Kudos

839 Views
JimDon
Senior Contributor III
Just as a thought, did you connect all the Vdd and Vss pins up on the chip?
Also you are supposed to have a cap on the Vdd, Vss pins close to the chip.
0 Kudos

839 Views
Sanahuja
Contributor I
yes I've connected the 2 Vss and the 2 Vdd of the chip. I haven't put a capacitor, since I thought the one from demoqe was enough. As I said I am not an electronic expert... I will try to put one close to the chip; do you know wich value I should use?
I've tried to put an external power supply, (and thus I don't use the Vdd from demoqe) but I have the same results. In this case I didn't put capacitors too. But I'm using a switching power supply and the datasheet says capacitors are not needed.
0 Kudos

839 Views
JimDon
Senior Contributor III
If you were going to add a cap, a 10uf tantalum would be fine. The thing is that wires act like inductors, so if the cap is not near the pins, then it is not as effective.
I doubt that is the problem, but you should have this cap.

One thing you never mentioned is, you connected pin 45, but to what did you connect it?
What is on the other end of the wire?
 
0 Kudos

839 Views
Sanahuja
Contributor I
Ok, I've discovered new things we the help of a friend.
Pin 45 (ptd3) of the daughter card slot on demoqe board is not directly linked to pin 31 (ptd3) of the mcu port! I don't know what there is between the two pins. This is not written on the Demoqe Base Board Schematic, where it is showed that pins are linked (as all other ones).
To answer to your question Jim, to program the 32 bit daughter card outside demoqe, I link pin 45 of the daughter card slot (on demoqe board) to pin 45 of the mcf51qe128 on my card. So I watched what was happening on this pin with an osciloscope. When doing the connection, the signal falls to 0v for 2ms; otherwise it is +Vdd. Then, after connection, nothings happens on the pin and I can remove it for debugging. I think this signal is used by the demoqe board to detect the daughter card... But this only happens with the 32 bits daughter card, not with the 8 bits.
I haven't read all the datasheet, but I think this is not explained.

0 Kudos

839 Views
Sanahuja
Contributor I


Sanahuja wrote:
Ok, I've discovered new things we the help of a friend.
Pin 45 (ptd3) of the daughter card slot on demoqe board is not directly linked to pin 31 (ptd3) of the mcu port! I don't know what there is between the two pins. This is not written on the Demoqe Base Board Schematic, where it is showed that pins are linked (as all other ones).



0 Kudos

839 Views
Kaare
Contributor III
I have the exact same problem, but with the MC9S08QE128 device. If i plug it into the Daughter Card connector then i can connect. If i take it out and connect the vdd pins to the vdd pin on the bdm connector, vss pins to the vss pin on bdm connector, bkgd to pin 64 and reset pin 63 to reset in the bdm connector then it wont connect! The cable i use is 15 cm long and works perfectly with my QG8 dev. board.
0 Kudos

839 Views
Sanahuja
Contributor I
Cable length is not a problem, mine is 50cm long.
Are you using demoqe board? In my case I have no problem with MC9S08QE128 device. Only the mfc51qe128 has problems...
I asked about this to freescale support, but they didn't want to answer me correctly. The answer I get is:
"We have discussed your findings that you cannot use the DEMOQE board to program devices on other boards, with P&E. They told us that it was corrrect. The DEMOQE board were never meant to be able to control other boards with it."
Which is false, as I'm using it to program my own board, using the pin I described...
0 Kudos

839 Views
JimDon
Senior Contributor III

Sanahuja wrote:
Cable length is not a problem, mine is 50cm long.
Are you using demoqe board? In my case I have no problem with MC9S08QE128 device. Only the mfc51qe128 has problems...
I asked about this to freescale support, but they didn't want to answer me correctly. The answer I get is:
"We have discussed your findings that you cannot use the DEMOQE board to program devices on other boards, with P&E. They told us that it was corrrect. The DEMOQE board were never meant to be able to control other boards with it."
Which is false, as I'm using it to program my own board, using the pin I described...




"works" and "supported" are two very,very different things.
What they are saying is 100% correct - that is not support, and if it does not work it is your problem not theirs.
0 Kudos

839 Views
Kaare
Contributor III
Thanks for the quick response.

Yes i use the demoqe board. I am at a loss whats wrong. It simply always says "Cannot enter background debug mode" and tells me that i should try and power cycle VDD.

But as soon as i plug the daughter board in the daughter card connector it works perfectly!

What i have done for testing is simply to connect a male BDM connector directly on the little daugther board on VDD, VSS, RESET and BKGD and then shorted all the other VDD and VSS pins for proper operation, but it wont work.
0 Kudos

839 Views
Sanahuja
Contributor I
Did you try plugging also VDDAD,VSSAD,VREFH,VREFL?

I didn't try this.
0 Kudos

839 Views
Kaare
Contributor III
Yes i did, but now i tried plugging pin 45 as you did and this solved the problem! This is on the HCS08 device!

This is very odd and not mentioned anywhere?
0 Kudos

839 Views
Sanahuja
Contributor I
Yes, this is very strange.In my case pin 45 is only necessary for the mcf51.

For the moment, I haven't seen anything in the documentation.

Did you check with an osciloscope the pin 45 while programming?


Message Edited by Sanahuja on 2008-09-12 02:24 PM
0 Kudos

839 Views
JimDon
Senior Contributor III
Sorry to ask again, but let me ask you this:

pin 45 on the CPU module (J1/MCU_PORT) is PTF4.
On the 64 pin header (J2) pin 45 is PTD3.
So are you saying that you connected PTD3 from the header to PTF4 on the cpu module to make this work?
0 Kudos

839 Views
Sanahuja
Contributor I
No, I connected pin 45 of the 64 pin cpu header of demoqe to pin 45 of the cpu in my own board.
Both are ptd3.
0 Kudos

839 Views
JimDon
Senior Contributor III
Are you using the daughter card or did you just solder a chip to a carrier?

Because the pin outs of the daughter are is not the same as the pins of the chip, at least according to the schematic.
For example, pins 1&3 of the daughter card are shown as VDD and VSS, but on the chip they are 6,11 and 40,41 on the chip.

So if you used the spec sheet for the chip to hook up the daughter card, all sort of things could be wrong.
0 Kudos