I2C AN2318 code to MC9S12DP256 w/ D-Bug12 wont connect

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

I2C AN2318 code to MC9S12DP256 w/ D-Bug12 wont connect

6,667 Views
rdelljh
Contributor I
I'd like to use codewarrior and download the code from freescale an2318sw (I2C) to my MC9S12DP256.
My connection to the board is with a RS232. The board has D-Bug12 v4.
Codewarrior will not connect to the board, using the HC12 Serial Monitor option.
Should I just get a P&E cable?

I also have a hunch that even if I could connect, the freescale flat ram prm file would not be compatible w/ dbug12 v4. Am I right? How can I get around this? Should I just get a P&E cable?

I am downloading code on rs232 and my program is using rs485, do I need to change the jumper (J23)?
Labels (1)
0 Kudos
Reply
7 Replies

1,223 Views
englere
Contributor I
Are you confusing the AN2548 Serial Monitor with d-bug12? They're both serial monitors, but Freescale typically doesn't call d-bug12 a "Serial Monitor" by name.

You can either interact with d-bug12 using a terminal emulator (or a terminal window in code warrior), or you can get the P&E cable if you want real BDM functionality.

If you don't have a lot of money, you could also load the AN2548 Serial Monitor on your board, to replace d-bug12. This is not as good as a real BDM, but it's better than d-bug12.
0 Kudos
Reply

1,223 Views
imajeff
Contributor III

englere wrote:
If you don't have a lot of money, you could also load the AN2548 Serial Monitor on your board, to replace d-bug12. This is not as good as a real BDM, but it's better than d-bug12.




engler, are you confusing d-bug12 with something else? I'd like to know why you said that. D-Bug12 can be a complete BDM debugger. The AN2548 definitely not. So D-Bug12 wins, no contest. AN2548 is only useful if you insist on not having any POD, which normally just complicates things unless you are planning to be only a student and nothing more even in the future.
0 Kudos
Reply

1,223 Views
englere
Contributor I
>engler, are you confusing d-bug12 with something else?
>I'd like to know why you said that. D-Bug12 can be a complete BDM debugger.

I said it because it's true. Nothing I said is wrong. D-bug12 is NOT a BDM capable debugger unless you buy extra hardware, which was what the guy was asking about.

Codewarrior has the ability to use the AN2548 serial monitor for debugging without the need to buy extra hardware. It can view the contents of memory and registers while a program is actively running, and it supports all of the essential debugging features. Of course, it's not as good as a real BDM monitor (as I said), but the price is right.

Eric
0 Kudos
Reply

1,223 Views
imajeff
Contributor III

englere wrote:
I said it because it's true. Nothing I said is wrong. D-bug12 is NOT a BDM capable debugger unless you buy extra hardware

Okay well, I see what you mean. The serial monitor mentioned can be better if one insists on having only one device (the target). This is what I've also said before.

You did not mean what I thought you meant, but the statement you are making is still incorrect, although does not matter in this thread. So I feel the urge to reenforce this: D-Bug12 is a capable BDM debugger without buying more hardware. The board that rdelljh has is the BDM debugger hardware and software when set to POD mode. This is of course a problem only because it cannot also be the target simultaneously. Another board would be needed for a target.

What I am suggesting probably goes against your recent development on your IDE features... FWIW I appologize, but I'm saying that it is not worth getting the resident serial monitor working. I say if you don't have a few bucks for another simple board, then work a few hours flipping burgers and I think that would cost less than the trouble of switching between serial monitor and real world. Mind you, I'm still talking about practical use, not for the "student-only" types who don't plan to ever do anything but get a grade (what the heck for?).

It would be great of course to have another board laying around, and rdelljh did not even give the impression that there was not. However if not, I don't think it hard to find other low-cost (less than $99) boards that would work for at least a target.

What I want is to find or design a generic blank PCB, and I could make D-Bug12 BDM pods or development targets for much cheaper. Anybody seen or want to see more options like that?

It might still be worth while to get the DragonBDM from Wytec, but now the price went up to $89 for hobby. The advantages: Smaller than the technologicalarts BDM Pod, easy to handle cables, ASCII interface, and is D-Bug12 (worth being familiar with).

I'm still interrested in TBDML which is my kind of do-it-yourself project, but some developers need to get together and make it work better using the faster version of HC08. I think it won't be real practical for a while.


The bottom line is that when you want to start a new or debug a real-world project, it is important and now less expensive to use a BDM pod. New parts ordered (or samples) do not already have the serial monitor preloaded--Freescale dropped that idea.
0 Kudos
Reply

1,223 Views
rdelljh
Contributor I
Once again thank you for your input.
I have only one Dragon 12 board.
At this particular moment it is inconvenient to buy the BDM pod.
I am currently trying to use the I2C in EVB mode.
I started a new thread with the code.
0 Kudos
Reply

1,223 Views
imajeff
Contributor III

I think one point to emphasize is the difference between the "D-Bug12 in EVB mode", and using a separate "D-Bug12 POD".

I think CW debugger will not support dbug12 in evb, because that cannot be active while your program is executing.

The dbug12 POD mode is run on a separate board which is comparable to the P&E BDM device. In other words, you either need a D-Bug12 BDM POD (can get from www.evbplus.com), or need a P&E BDM POD.

0 Kudos
Reply

1,223 Views
J2MEJediMaster
Specialist I
First things first. Can you confirm that you're communicating serially with the board? I'm not familiar with this particular processor, but most EV boards, when first powered up, they blast a "Greetings, debug monitor xxxxx" or similar message out the serial port if it's configured for serial debugging. Have you tried using Hyperterminal to connect to the serial port, then powered up the board? Did you see a greetings message? If not, it's time to adjust the PC's serial port settings with Hypeterminal until you do.

Do you know that the serial cable is good?

---Tom
0 Kudos
Reply