Hi All,
target CPU - simulated STMicro uPSD3354DV
I am trying to get my PC to interface (via serial) with my app running in the simulator. I have read the other postings and the manual on this topic but I am having only limited success.
So what do I have. I have my desktop with COM1 connected to COM2. I can run hyperteminal on both com ports and they 'talk' to one another no problems so my cabling and settings are OK there.
My embedded app is using UART1 at 57.6K to communicate with the outside world. I use hyperterminal on com2 which is connected to com1 which I now need to interface with the simulator and hence my app. So, I start the debugger (simulator, not target) with a breakpoint on main and I configure the debugger as follows:
mode com1 57600,0,8,1 assign com1 <s1in >s1out
The debugger complete this with no error conditions reported.
So I would now expect that my application can read/write data from/to SBUF1 and this will go via S1IN/S1OUT from/to COM1 on the PC and ultimately COM2 (Hyperterminal) at the desktop - all OK so far? I am also expecting serial interrupts to work just as they do on the device (from a triggering/clearing and running an ISR point of view)
In reality what I see is some very sporadic serial comms and not all the settings in the debugger/simulator mirror what the code is doing. For example, when I enable my UART1 interrupt (IEA |= ES1) I would expect to see the relevant interrupt bit in the interrupt peripherals window get updated according (likewise in the serial 1 peripheral window). Also I see no UART1 rx interrupt activity when sending data from the desktop.
This application runs great on target, but I want to make some performance measurements so I need this simulated serial IO to work. Someone must have done exactly this in the past. Hopefully it is finger trouble my end.
Any info greatly appreciated as always.
Cheers
Andy