??? 08/14/06 10:34 Read: times |
#122187 - Switch/Case and code protection |
Hello,
I am developing a program that contains switch and case instructions to analyze which commands are received by the device. I use the Keil compiler (C51 v8.02) and the firmware is programmed in a P89LPC922 device. Everything works fine in an unprotected LPC device. If I enable the code protection the 'Switch/Case' instructions don't work anymore. I solved the problem by using 'if/else'. Everything works fine now. Just to let you know if you face the same problem. Kind regards, Mark |