I am using Keil version 7.07 and Microcontroller C8051F340. My whole code is in C-language and only the serial receiving function is in assembly language. I was using only UART1 and till then it was working fine, but now I changed the code for UART1 and UART0 both and want to receive different data from both. Now the error coming is "IMPROPER FIXUP" in both serialISR0 and serialISR1 functions. Even the compiler is not giving error, the linker is generating this error. All the variables are properly defined.
Please Help!
Regards M. Maaz Qazi
Using goto for an infinite loop???
#include <stdio.h> /*printf*/ #include <8051.h> /* TI*/ int main() { loop_again: printf( "code is here' ); /*printf*/ goto loop_again; }
instead of:
void main(void) { for (;;) { printf("code is here\n"); } }
or
void main(void) { while (1) { printf("code is here\n"); } }
By the way 1: Why hijack someone elses thread? The problems aren't even related.
Why the way 2: Why add a comment informing that the printf() call is a printf() call?
By the way 3: You shout that malloc() returns NULL - which malloc()?