EmbeddedRelated.com
Forums

newbie Dragon12 board softwar-hardware question

Started by catsalsa April 6, 2010
Hi,

I'm taking an embedded course and my prof dug out an old Dragon12 board without the software CD. I did not get a BDM either.
I am trying to understand if there is any option to program the board in C without supplementary hardware.
I need to program it using C with which I'm familiar and by reading the various documentation and downloading different software it seems a clear question is never answered.
It seems there are 2 main IDEs COdeWarrior and EmbeddedeGNU.

It seems that CodeWarrior needs a serial monitor software.

Question1. Do I need a BDM board to switch the Dragon12 board to the serial monitor software? This is not clear in the manual. Where I can find some configuration instructions?

Frescale post is confusing if not contradictory:

"Code Warrior IDE does not work with D-Bug12, but it works with serial monitor. Before Freescale created the serial monitor a BDM is needed as an interface between the PC and HCS12. Freescale created the serial monitor for working with Code Warrior to eliminate the cost of a BDM."
Question 2:
Does EmbeddedeGNU need a serial monitor software. If not where would be a good place to find instructions for hardware configuration for executing a Hello World program?
Thank you in advance.

Adrian

A1. If MCU on your board doesn't have serial monitor programmed into MCU
flash memory, then you need BDM to program serial monitor to MCU flash.

Freescale post is about purpose of serial monitor. BDM is the best for
debugging. If BDM tool is too expensive, then you may try to borrow it
somewhere to flash your MCU with serial monitor. Serial monitor allows
debugging, but serial monitor uses one of SCI channels to communicate with
debugger. This used SCI channel is not available for you, or usage is
restricted.
A2 Not familiar with EmbeddedGNU, but I guess it also is able to work with
different debugging interfaces. I hope most popular P&E Multilink
(USB-ML-12) and serial monitor are supported, but I'm not sure.

Edward
----- Original Message -----
From: "catsalsa"
To: <6...>
Sent: Tuesday, April 06, 2010 19:55
Subject: [68HC12] newbie Dragon12 board softwar-hardware question
> Hi,
>
> I'm taking an embedded course and my prof dug out an old Dragon12 board
> without the software CD. I did not get a BDM either.
> I am trying to understand if there is any option to program the board in C
> without supplementary hardware.
> I need to program it using C with which I'm familiar and by reading the
> various documentation and downloading different software it seems a clear
> question is never answered.
> It seems there are 2 main IDEs COdeWarrior and EmbeddedeGNU.
>
> It seems that CodeWarrior needs a serial monitor software.
>
> Question1. Do I need a BDM board to switch the Dragon12 board to the
> serial monitor software? This is not clear in the manual. Where I can find
> some configuration instructions?
>
> Frescale post is confusing if not contradictory:
>
> "Code Warrior IDE does not work with D-Bug12, but it works with serial
> monitor. Before Freescale created the serial monitor a BDM is needed as an
> interface between the PC and HCS12. Freescale created the serial monitor
> for working with Code Warrior to eliminate the cost of a BDM."
> Question 2:
> Does EmbeddedeGNU need a serial monitor software. If not where would be a
> good place to find instructions for hardware configuration for executing a
> Hello World program?
> Thank you in advance.
>
> Adrian
>
> A1. If MCU on your board doesn't have serial monitor programmed into MCU
> flash memory, then you need BDM to program serial monitor to MCU flash.
>
> Freescale post is about purpose of serial monitor. BDM is the best for
> debugging. If BDM tool is too expensive, then you may try to borrow it
> somewhere to flash your MCU with serial monitor. Serial monitor allows
> debugging, but serial monitor uses one of SCI channels to communicate with
> debugger. This used SCI channel is not available for you, or usage is
> restricted.

When using a serial monitor, isn't debugging also restricted to RAM? Meaning
that you must develop your software in RAM on the target CPU.

In any case, you should really use at least a BDM to develop and debug on the
HCS12/9S12.

/Ruben

=============================Ruben Jsson
AB Liros Electronic
Box 9124, 200 39 Malm Sweden
TEL INT +46 40142078
FAX INT +46 40947388
r...@pp.sbbs.se
=============================
--- In 6..., "Ruben Jsson" wrote:
>
> > A1. If MCU on your board doesn't have serial monitor programmed into MCU
> > flash memory, then you need BDM to program serial monitor to MCU flash.
> >
> > Freescale post is about purpose of serial monitor. BDM is the best for
> > debugging. If BDM tool is too expensive, then you may try to borrow it
> > somewhere to flash your MCU with serial monitor. Serial monitor allows
> > debugging, but serial monitor uses one of SCI channels to communicate with
> > debugger. This used SCI channel is not available for you, or usage is
> > restricted.
>
> When using a serial monitor, isn't debugging also restricted to RAM? Meaning
> that you must develop your software in RAM on the target CPU.
>
> In any case, you should really use at least a BDM to develop and debug on the
> HCS12/9S12.
>
> /Ruben
>
>
It is up to you to program in C or in Assembler. You still have to choose
debugging interface, maybe BDM, maybe serial monitor, maybe something else.

Freescale demo and evaluation boards usually come with BDM on the board or
some bootloader (or serial monitor). Check documentation of your board.
Google gives this
http://www.evbplus.com/dragon12_hc12_68hc12_9s12_hcs12.html.

Edward
----- Original Message -----
From: "catsalsa"
To: <6...>
Sent: Wednesday, April 07, 2010 10:37 PM
Subject: [68HC12] Re: newbie Dragon12 board softwar-hardware question
Hi Guys,
I'm very thankful for your answers.
There have been some new developments in my project and my professor swapped
the Dragon 12 board for the same processor MC9S12DP256 board. It seems to be
quite similar but of course the same questions remain.
This is a term project I need to finalize this month so I don't think I'll
invest in a BDM.
It does not seem to make sense for Freescale to send the boards with ASM
support but not with C support as I have to assume that C is more popular.
The Question 2 for still remains:
Question 2:
Does EmbeddedeGNU need a serial monitor software for C programming . If not
where would be a goodplace to find instructions for hardware configuration
for executing a Hello World program?

If I can not find anyway to execute C without buying a BDM I guess I have to
go back in time and do assembly. Considering I have only about 20 days for
doing all this I can conclude that "it sucks to be me" LOL. That of course
is valid only for this month :)

Freescale should provide boards with serial monitor installed by default and
that would alleviate major pain for their clients. That would also boost the
sales of CodeWarrior software :)

Cheers and thanks again for your comments

Hi Edward,

The adaptS12DP256 board has not BDM sot it means I'm limited only to assembler programming unless I buy another board. It seems to me that it makes very little sense to get a board just get another board. Even the Dragon12 does not come with a BDM unless there is some kind of promotion and anyway I don't have that board.
So the possibilities are limited...
Cheers,
Adrian

--- In 6..., "Edward Karpicz" wrote:
>
> It is up to you to program in C or in Assembler. You still have to choose
> debugging interface, maybe BDM, maybe serial monitor, maybe something else.
>
> Freescale demo and evaluation boards usually come with BDM on the board or
> some bootloader (or serial monitor). Check documentation of your board.
> Google gives this
> http://www.evbplus.com/dragon12_hc12_68hc12_9s12_hcs12.html.
>
> Edward
> ----- Original Message -----
> From: "catsalsa"
> To: <6...>
> Sent: Wednesday, April 07, 2010 10:37 PM
> Subject: [68HC12] Re: newbie Dragon12 board softwar-hardware question
> Hi Guys,
> I'm very thankful for your answers.
> There have been some new developments in my project and my professor swapped
> the Dragon 12 board for the same processor MC9S12DP256 board. It seems to be
> quite similar but of course the same questions remain.
> This is a term project I need to finalize this month so I don't think I'll
> invest in a BDM.
> It does not seem to make sense for Freescale to send the boards with ASM
> support but not with C support as I have to assume that C is more popular.
> The Question 2 for still remains:
> Question 2:
> Does EmbeddedeGNU need a serial monitor software for C programming . If not
> where would be a goodplace to find instructions for hardware configuration
> for executing a Hello World program?
>
> If I can not find anyway to execute C without buying a BDM I guess I have to
> go back in time and do assembly. Considering I have only about 20 days for
> doing all this I can conclude that "it sucks to be me" LOL. That of course
> is valid only for this month :)
>
> Freescale should provide boards with serial monitor installed by default and
> that would alleviate major pain for their clients. That would also boost the
> sales of CodeWarrior software :)
>
> Cheers and thanks again for your comments
>
>
No BDM doesn't mean no C.

Edward

----- Original Message -----
From: "catsalsa"
To: <6...>
Sent: Wednesday, April 07, 2010 11:50 PM
Subject: [68HC12] Re: newbie Dragon12 board softwar-hardware question
> Hi Edward,
>
> The adaptS12DP256 board has not BDM sot it means I'm limited only to
> assembler programming unless I buy another board. It seems to me that it
> makes very little sense to get a board just get another board. Even the
> Dragon12 does not come with a BDM unless there is some kind of promotion
> and anyway I don't have that board.
> So the possibilities are limited...
> Cheers,
> Adrian
>
> --- In 6..., "Edward Karpicz" wrote:
>>
>> It is up to you to program in C or in Assembler. You still have to choose
>> debugging interface, maybe BDM, maybe serial monitor, maybe something
>> else.
>>
>> Freescale demo and evaluation boards usually come with BDM on the board
>> or
>> some bootloader (or serial monitor). Check documentation of your board.
>> Google gives this
>> http://www.evbplus.com/dragon12_hc12_68hc12_9s12_hcs12.html.
>>
>> Edward
>> ----- Original Message -----
>> From: "catsalsa"
>> To: <6...>
>> Sent: Wednesday, April 07, 2010 10:37 PM
>> Subject: [68HC12] Re: newbie Dragon12 board softwar-hardware question
>> Hi Guys,
>> I'm very thankful for your answers.
>> There have been some new developments in my project and my professor
>> swapped
>> the Dragon 12 board for the same processor MC9S12DP256 board. It seems to
>> be
>> quite similar but of course the same questions remain.
>> This is a term project I need to finalize this month so I don't think
>> I'll
>> invest in a BDM.
>> It does not seem to make sense for Freescale to send the boards with ASM
>> support but not with C support as I have to assume that C is more
>> popular.
>> The Question 2 for still remains:
>> Question 2:
>> Does EmbeddedeGNU need a serial monitor software for C programming . If
>> not
>> where would be a goodplace to find instructions for hardware
>> configuration
>> for executing a Hello World program?
>>
>> If I can not find anyway to execute C without buying a BDM I guess I have
>> to
>> go back in time and do assembly. Considering I have only about 20 days
>> for
>> doing all this I can conclude that "it sucks to be me" LOL. That of
>> course
>> is valid only for this month :)
>>
>> Freescale should provide boards with serial monitor installed by default
>> and
>> that would alleviate major pain for their clients. That would also boost
>> the
>> sales of CodeWarrior software :)
>>
>> Cheers and thanks again for your comments
>>
>>
Hi,
Take a look at http://www.evbplus.com/ - they have some informations
about Dragon board,
including a special page for EmbeddedGNU and an example tutorial.
One word of caution: check the mask set of S12DP256 - since this micro
had some
problems with sci interface, if you need to use that.
Even with EmbeddedGNU you still program in C. Also, if for your homework
you need
some algorithm to develop and this don't make use the peripherals of
your micro, you
can develop/check them on a separate C program developed on PC with
whatever you
know - MingW, Borland, Visual C++ (this has a very good debugger) and
then just cast
your program into the micro (to speed up your project).
Ioan

catsalsa wrote:
>
> Hi Edward,
>
> The adaptS12DP256 board has not BDM sot it means I'm limited only to
> assembler programming unless I buy another board. It seems to me that
> it makes very little sense to get a board just get another board. Even
> the Dragon12 does not come with a BDM unless there is some kind of
> promotion and anyway I don't have that board.
> So the possibilities are limited...
>
> Cheers,
> Adrian
>
> --- In 6...



















<







'





'
'



































Hi Ioan,

Thanks for your tips about doing the debugging with no board. I should have changed the title of this message to make it very clear that the professor switched the board on me and I don;t have a Dragon but adaptS12DP256 board based on the same microprocessor.

Of course I went to http://www.evbplus.com/
That takes me to a DUMP of obsolete documents and broken links, a testimony of the unprofessional behavior of this company.
The most important links for info and downloads refer to Eric Engler who died years ago but nobody bothered to even check.

So at this point I have no answer if the adaptS12DP256 board also needs a BDM to use C code. It appears to be so but it's not clear.

Cheers,
Adrian

--- In 6..., Petrescu wrote:
>
> Hi,
> Take a look at http://www.evbplus.com/ - they have some informations
> about Dragon board,
> including a special page for EmbeddedGNU and an example tutorial.
> One word of caution: check the mask set of S12DP256 - since this micro
> had some
> problems with sci interface, if you need to use that.
> Even with EmbeddedGNU you still program in C. Also, if for your homework
> you need
> some algorithm to develop and this don't make use the peripherals of
> your micro, you
> can develop/check them on a separate C program developed on PC with
> whatever you
> know - MingW, Borland, Visual C++ (this has a very good debugger) and
> then just cast
> your program into the micro (to speed up your project).
> Ioan
>
> catsalsa wrote:
> >
> > Hi Edward,
> >
> > The adaptS12DP256 board has not BDM sot it means I'm limited only to
> > assembler programming unless I buy another board. It seems to me that
> > it makes very little sense to get a board just get another board. Even
> > the Dragon12 does not come with a BDM unless there is some kind of
> > promotion and anyway I don't have that board.
> > So the possibilities are limited...
> >
> > Cheers,
> > Adrian
> >
> > --- In 6...



















<







'





'
'



































BDM doesn't push you to use C. You can use BDM and assembler for example.

Edward

----- Original Message -----
From: "catsalsa"
To: <6...>
Sent: Wednesday, April 14, 2010 8:27 PM
Subject: [68HC12] Re: newbie Dragon12 board softwar-hardware question
>
> Hi Ioan,
>
> Thanks for your tips about doing the debugging with no board. I should
> have changed the title of this message to make it very clear that the
> professor switched the board on me and I don;t have a Dragon but
> adaptS12DP256 board based on the same microprocessor.
>
> Of course I went to http://www.evbplus.com/
> That takes me to a DUMP of obsolete documents and broken links, a
> testimony of the unprofessional behavior of this company.
> The most important links for info and downloads refer to Eric Engler who
> died years ago but nobody bothered to even check.
>
> So at this point I have no answer if the adaptS12DP256 board also needs a
> BDM to use C code. It appears to be so but it's not clear.
>
> Cheers,
> Adrian
>
> --- In 6..., Petrescu wrote:
>>
>> Hi,
>> Take a look at http://www.evbplus.com/ - they have some informations
>> about Dragon board,
>> including a special page for EmbeddedGNU and an example tutorial.
>> One word of caution: check the mask set of S12DP256 - since this micro
>> had some
>> problems with sci interface, if you need to use that.
>> Even with EmbeddedGNU you still program in C. Also, if for your homework
>> you need
>> some algorithm to develop and this don't make use the peripherals of
>> your micro, you
>> can develop/check them on a separate C program developed on PC with
>> whatever you
>> know - MingW, Borland, Visual C++ (this has a very good debugger) and
>> then just cast
>> your program into the micro (to speed up your project).
>> Ioan
>>
>> catsalsa wrote:
>> >
>> > Hi Edward,
>> >
>> > The adaptS12DP256 board has not BDM sot it means I'm limited only to
>> > assembler programming unless I buy another board. It seems to me that
>> > it makes very little sense to get a board just get another board. Even
>> > the Dragon12 does not come with a BDM unless there is some kind of
>> > promotion and anyway I don't have that board.
>> > So the possibilities are limited...
>> >
>> > Cheers,
>> > Adrian
>> >
>> > --- In 6...




















<







'





'
'