is causing the problem because you are testing for a string in switch which the C Compiler doesn't allow. Use strstr() or strcmp() to compare the received strings with strings stored in ROM. Search for CopyConst2Ram() function in mikroe forum and also use it with strstr() and strcmp().