Hi Rad
The simulator settings seem to be correct.
However, also make sure that UART0 is really being opened by the project. Also, check that serial interface is being used a debug output.
To check these, look in application.c:
#if defined SERIAL_INTERFACE && defined DEMO_UART // this serial interface is used for debug output and menu based control
if (!fnSetNewSerialMode(FOR_I_O)) { // open serial port for I/O
return; // if the serial port could not be opened we quit
}
DebugHandle = SerialPortID; // assign our serial interface as debug port
fnDebugMsg(WELCOME_MESSAGE_UART);
#endif
Put a break point here and see that the expected port is being opened and that the debug handle is then set to the serial handle.
If this all looks OK, you can check the opening of the real COM port. If you are using UART 0 the code that is responsible for opening it is in WinSimMain.cpp:
case OPEN_PC_COM0:
{
unsigned long ulSpeed = fnGetValue(doPtr + 1, sizeof(ulSpeed));
UART_MODE_CONFIG Mode = (unsigned short)fnGetValue(doPtr + 1 + sizeof(ulSpeed), sizeof(Mode)); // {26}
if (sm_hComm0 != INVALID_HANDLE_VALUE) {
CloseHandle(sm_hComm0); // if we have an open port we want to reconfigure it - so close it
}
sm_hComm0 = fnConfigureSerialInterface(SERIAL_PORT_0, ulSpeed, Mode); // try to open com since the embedded system wants to use it
}
break;
If this is executed, check that it opens the expected COM port and that it also doesn't fail for some reason.
Regards
Mark