Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Ads

Discussion Groups

Discussion Groups | Freescale DSPs | single stepping works, standalone fails

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

single stepping works, standalone fails - hc08jb8 - Feb 4 9:09:00 2005




Hello

I am trying out a simple SCI routine on the 56F8300 demo board. I
have set up a PE project with a SCI bean. I am sending just a few
chars using the generated code.

delay();
AS1_SendChar('A');
delay();
AS1_SendChar('\n');
delay();
AS1_SendChar('B');
delay();
AS1_SendChar('\n');
delay();

When I single step using the debugger, all the chars are transmitted
to the SCI, however when I run the program standlone, only the A and
the next \n is sent out. Nothing goes after that?

Any ideas what could be wrong? where should I start looking into
debugging?

Thanks
Jay




(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

RE: single stepping works, standalone fails - Corey, Rick - Feb 4 9:17:00 2005

Hi Jay

If you haven't already, check to make sure our tools didn't optimize your
delay away.

If this is an unbuffered "bean", you might want to read the SCISR.TDRE (SCI
Status Register Transmit Data register Empty Flag) before sending the next
char. That seems more secure than using a fixed delay that doesn't know
anything about baud rate or CTS.

After sending a char, wait until it is set (I think). Clear it by reading
SCISR, then writing the next char to SCIDR. That's my interpretation of
section 13.6.3.1 in the Peripheral Users Manual.

Rick Corey

-----Original Message-----
From: hc08jb8 [mailto:]
Sent: Friday, February 04, 2005 8:09 AM
To:
Subject: [motoroladsp] single stepping works, standalone fails

Hello

I am trying out a simple SCI routine on the 56F8300 demo board. I
have set up a PE project with a SCI bean. I am sending just a few
chars using the generated code.

delay();
AS1_SendChar('A');
delay();
AS1_SendChar('\n');
delay();
AS1_SendChar('B');
delay();
AS1_SendChar('\n');
delay();

When I single step using the debugger, all the chars are transmitted
to the SCI, however when I run the program standlone, only the A and
the next \n is sent out. Nothing goes after that?

Any ideas what could be wrong? where should I start looking into
debugging?

Thanks
Jay




(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )