problems with the SCI0/debugger

Started by Sebastian Schuster April 14, 2004
I'm working with the m68evb912dp256-motorola-ev-board. And my problem
with the debugger is still there. When I'm running
the program the debugger command-window is printing out: "Frequency
change detected, could not reconnect.".

(The line SCI0DRL=0x01; was senseless, I only forgot to erase it.)

#include <hidef.h>
#include <6812dp256b.h>

void WRITE_TO_SCI0(const char *text)
{
while (*text != '\0')
{
while (!(SCI0SR1 & 0x80));
SCI0DRL = *text++;
}
}

void main(void)
{

SCI0BDH=0x00;
SCI0BDL=0x32;//baudrate 9600

SCI0CR2=0x0C;

SCI0CR1_LOOPS=0;

for(;;)
{
WRITE_TO_SCI0("Hello\r\n\0");

}
}




Sebastian,

Do you have the 'set CLKSW bit in BMD control register'
box ticked under ICD-12, communication menu in the real
time debugger...

Darren Moore
> -----Original Message-----
> From: Sebastian Schuster [mailto:] > I'm working with the m68evb912dp256-motorola-ev-board. And my problem
> with the debugger is still there. When I'm running
> the program the debugger command-window is printing out: "Frequency
> change detected, could not reconnect.".
>
> (The line SCI0DRL=0x01; was senseless, I only forgot to erase it.)
>
> #include <hidef.h>
> #include <6812dp256b.h>
>
> void WRITE_TO_SCI0(const char *text)
> {
> while (*text != '\0')
> {
> while (!(SCI0SR1 & 0x80));
> SCI0DRL = *text++;
> }
> }
>
> void main(void)
> {
>
> SCI0BDH=0x00;
> SCI0BDL=0x32;//baudrate 9600
>
> SCI0CR2=0x0C;
>
> SCI0CR1_LOOPS=0;
>
> for(;;)
> {
> WRITE_TO_SCI0("Hello\r\n\0");
>
> }
> }




Hi Sebastian.

Your program seems to access somehow some CRG registers and change the chip
bus speed (via PLL). That's why you get this debugger report, as the debug
cable is not able to sync with the chip anymore.

Just in case:

some SCI in/out communication examples are available in
"(CodeWarrior_Examples)", for example,
"(CodeWarrior_Examples)\MC9S12\DP\DP256B"

Regards,

Gilles
At 07:48 AM 4/14/2004, you wrote:
>I'm working with the m68evb912dp256-motorola-ev-board. And my problem
>with the debugger is still there. When I'm running
>the program the debugger command-window is printing out: "Frequency
>change detected, could not reconnect.".
>
>(The line SCI0DRL=0x01; was senseless, I only forgot to erase it.)
>
>#include <hidef.h>
>#include <6812dp256b.h>
>
>void WRITE_TO_SCI0(const char *text)
>{
> while (*text != '\0')
> {
> while (!(SCI0SR1 & 0x80));
> SCI0DRL = *text++;
> }
>}
>
>void main(void)
>{
>
> SCI0BDH=0x00;
> SCI0BDL=0x32;//baudrate 9600
>
> SCI0CR2=0x0C;
>
> SCI0CR1_LOOPS=0;
>
> for(;;)
> {
> WRITE_TO_SCI0("Hello\r\n\0");
>
> }
>} >
>
>--------------------To learn more
>about Motorola Microcontrollers, please visit
>http://www.motorola.com/mcu
>o learn more about Motorola Microcontrollers, please visit
>http://www.motorola.com/mcu
>
>Yahoo! Groups Links >
>