This may seem an obvious question. PLease indulge me. When you compile a c file, are functions placed in memory in the order that they are written in the source file? I had working code. I modified it and ended up adding a lot of functions between two functions in the source. the two functions in question are a receive and transmit function that are timing critical. Now my rx and tx is spotty whereas before it was very solid. i.e. a message was transmitted and response received with no misses. Because I didn't change these functions I'm wondering if it is possible that the message is transmitted and the response is missed because of the separation (in memory) of the recieve function and the xmit function.
If this is possible can it be fixed by simply moving the position of the functions in the source.
Using PCH 4.033 on a PIC 18F4685
Out of Ideas. Any help would be greatly appreciated.
Guest
Posted: Mon May 14, 2007 9:46 am
corrupted project. I didn't get any errors when compiling. But when I created a new project with the same source files it compiled about 3000 bytes less. Anyway it all works now.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum