We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys,
I've been stucked for hours. It is a project for CORTEX-MX, the compiler I am using is KEIL in PRO mode.
Here is a segment of C code:
================================================================== case COMMAND_STATE_WAIT_WAVELENGTH: Request.wavelength = val; datacount++; if (Request.wavelength>128) { *cmderr = COMMAND_ERROR_DATALENGTH; command_state = COMMAND_STATE_ABORT; } else if (Request.wavelength ==0) { command_state = COMMAND_STATE_WAIT_CHECKSUM; } else { command_state = COMMAND_STATE_WAIT_DATA; }
break; ==========================================================
After compile,it turns into something else and it doesnt work.
I I changed "Request.wavelength>128" to "Request.wavelength+1>128+1", and it worked a bit better. >_<!
Please HELP. what a miracle~~
I think you'll find that pretty much every other forum has a similar behaviour...
hey. have you tried compiling it again? i got a strange problem last week. getting loads of errors and it didnt work properly. but it got better at the finish.
Self-modifying code??!!