Newbie questions...

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Newbie questions...

3,922 次查看
dala
Contributor I

I am a newbie when it comes to programming microcontrollers and I have a couple of questions that I hope somebody can answer.

To learn a little, and play to around a bit, I got myself a demoboard for the MC9S12NE64 (The board is the DEMO9S12NE64).

The board is shipped with a version of CodeWarrior. However, I am also interested in trying out using GNU-software for the development.

My first question is then: without using CodeWarrior, how can I load a program into the microcontroller, ie. how can I 'talk to' the SerialMonitor-program to flash my program into memory?

If I get a BDM-programmer, and just skip the SerialMonitor all together, I guess this is one way of doing it. But then I also have a question regarding BDM.

On my demoboard the BDM-connector has 6 pins. However, I have seen another demo-board for a ColdFire-processor where the BDM-connector has many more pins.

How come the two BDM-connectors have different number of pins?

If I buy myself a BDM-programmer (ie. the P&E BDM-multilink) how can I konow it will work with the 6-pin BDM-connector on my board?

Will it work with different BDM-connectors, ie. connectors with different pin-count?

Thanks in advance for any answers.

 

Dala

标签 (1)
0 项奖励
回复
5 回复数

1,611 次查看
mjbcswitzerland
Specialist V

Hi Dala

Please check out the following posting:
http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=897

You may like to consider the uTasker. It is free for non-commercial work, including email support.

It comes with Codewarrior, IAR and GNU projects which is ready to run on the MC9S12NE64DEMO. It also comes with a serial download program which is sometimes useful...

The BDM on the NE64 needs only 3 pins to operate (data and reset lines - plus GND). The uTasker has also a project which allows converting a MC9S12NE64DEMO into a BDM - there is board allowing Web based BDM at the following address: http://212.254.22.36:8083/0 It is simply a MC9S12NE64DEMO connected to a second MC9S12NE64DEMO...

The uTasker has a growing user base. It is powerful, stable and proven and new users are always welcome. So if you want to save a lot of time and have some real fun in the process, just fill out the simple application and join the community.

Regards

Mark Butcher
www.mjbc.ch

PS. The project runs also on the Coldfire M5223X and so NE64 projects can be moved to the Coldfire by setting one compiler switch. See the project online at http://212.254.22.36
and the following Coldfire forum posting:
http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&message.id=274

0 项奖励
回复

1,611 次查看
imajeff
Contributor III
As far as HC12 and 9S12 (alias HCS12) goes, the BDM debuggers work the same.

I noticed that some connectors have more (10) pins. They have used these extra pins for extra features like detecting clock speed of target or supplying external VFP, but those connectors will still work with only pins 1..6 as long as you can get it plugged in. I had to bend some other components to fit the 10-pin connector on my target that only takes 6-pin.

I mostly work with GCC and a D-Bug12 POD.
0 项奖励
回复

1,611 次查看
peg
Senior Contributor IV

Hi,

The P&E Multilink programmer works with HCS08, HC12 and HCS12 ONLY!

Coldfire and other bigger stuff requires a different adapter all together.

The 6-pin BDM port is standard for the devices mentioned above.

The multilink (Part No. USB-ML-12) will work with your board.

Regards David

 

0 项奖励
回复

1,611 次查看
dala
Contributor I
>The multilink (Part No. USB-ML-12) will work with your board.
 
 
Thanks for the information; I guess I will get myself one.
 
But I am still interested in information on how to program my demoboard through the "SerialMonitor" without using CodeWarrior. If somebody has some information on how to do this I would really appreciate it...
 
Regards Dala
0 项奖励
回复

1,611 次查看
Ilocano
Contributor I
See link
http://support.technologicalarts.ca/docs/GCC/

Might be useful for what you are looking for.
0 项奖励
回复