cancel
Showing results for 
Search instead for 
Did you mean: 

problems with UART program

ksiva
Associate
Posted on March 18, 2005 at 12:12

problems with UART program

1 REPLY 1
ksiva
Associate
Posted on May 17, 2011 at 12:06

Hi,

I'm using the ED3k3 board with a uPSD3334V-40U6 MCU. I have purhcased an expanded code limit upto 32kb.

I'm running a simple message program that uses UART0 to transmit messages from a buffered queue.

My program compiles fine, however, when I use my RLINK-ST JTAG to flash it over, I get the following pop-up window:

''OPI 51

Step is not over yet? Go on?

YES or NO''

here's the disassembly code the program hangs at is:

01AB: 20 db 20h ; ' '

If I hit yes, the pop-up window comes back again, if I hit no, the program stops execution at some assembly instruction for code in the startup.a51:

01A3: 20D504 JB F0, 01AA

I am using the default startup.a51 that was provided with a slight modification to SCON, SCON = 0x52H.

I have checked to make sure all the environment variables are correct, I have already used the UART and the UART isr in a different project with same hardware and it works fine.

In debugging, I found some instances where initializing some global and local variables (int) to zero causes problems. In some cases, if I comment out the initialization and leave just the declaration, then the pop-up window doesnt show.

Is there an new errata sheet I should look into?

I am a novice, any help is appreciated.

thanks.