change the project name at .project and .cproject if needed send "hello" message to arduino mega every second. As mega recieved the message, send "hi" to stm.