Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).
|
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 |
|
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 |