Hi, I've had a question some time ago, because I thought the compiler generates wrong code. Your answers told me that my startup-configuration seems to be wrong. Here I want to say thank you for the help. I dicovered, that my system seems to have problems with user-stack-size. All functions are not working stable. I use this function-Header:
char putchar(char Handle}
#define putchar(c) ...
Hi Jacek, I would suggest running your code under debugger. If you don't have an in-circuit debugger set up, use the simulator, it supports serial I/O. You will be able to single-step through code, set breakpoints, check stack usage, etc. - all you need to find the root of the problem. Based on the information that you posted it's hard to tell what's wrong. Regards, - mike