Part Number: MSP430I2040
Other Parts Discussed in Thread: MSP430F5529, , MSP-ISO, EVM430-I2040S, MSP-FET
Hi,
I have connected the MSP430I2040S EVM to the Isolation board and that to the HID bridge(MSP430F5529).
I tried and was able to use the EMDC GUI to see the Voltage, Current values..
Then, I modified the code and added a small piece of code to write to the serial port:
void EMLibGUIApp_Engine(void)
{
/* Start Energy Measurement -- Main loop */
while(1)
{
Comm_writeBuffer("GOT_IT", 7);
// EM Lib Foreground process
EM_foregroundProc(&gemResultStatus);
HMI_stateMachine(gemResultStatus);
}
}
I have also modified the code to change the COM port protocol. (Just an FYI)
The Comm_writeBuffer is not working and I am not able to get any print on the Putty(Terminal) on my laptop. I have connected the putty on my Laptop to baudrate of 9600, N, 8, 1. I also tried with baudrate 115200, N, 8, 1. However I am not getting any prints on my laptop(putty).
I checked and I have done COM-setup:
void HMI_Init(void)
{
// Initializes command handler for communication with GUI
CommandHandler_setApplicationVersion(
COMMAND_HANDLER_DEVICE_TYPE_i2041,
COMMAND_HANDLER_FIRMWARE_ID_0001);
// Initialize communications
Comm_setup();
// CommandHandler_registerCmdListeners();
DC_User_Params = CommandHandler_getUserParamsPtr();
gHMI = HMI_STATE_IDLE;
#ifdef ENABLE_LCD
results_Reset(LPH);
#endif
}
I am using the COM port9 at my laptop end. I have also tried COM8 which is the Debug port but neither shows any prints.
Can you please tell me what is the mistake I am making.
thanks and regards,
Rajkumar