How to send data to UART ?
Do not try to send data directly to UART using HPLUART. Nesct does not handle byte level communication. NesCT intercepts the simulation logic at the packet level boundaries. For this reason, i modified the original UARTNoCRCPacketM.nc from TinyOS to forward incoming messages to OMNeT++ instead. You do not need to include HPLUART in your configuration. GenericComm directs the messages to UART if it is going for the destination address of TOS_UART_ADDRESS. Just include GenericComm and instead of sending it to the neighbors or broadcast (TOS_BCAST_ADDR) address in msg->addr, set it to TOS_UART_ADDRESS.