sfranchi
Joined: 29 May 2006 Posts: 1 Location: Buenos Aires - Argentina
|
3.249 odd behaviour with 18F6720 ??? |
Posted: Thu Jun 01, 2006 9:18 am |
|
|
Hi there,
We bought this version some weeks ago and honestly I'm surprised of its "random" compilations...
Our project is pretty simple, just communications with a couple of serial devices (GSM module and a GPS receiver) and have not interrupts nor anything special, just reading the devices answers and sending AT commands to the GSM module.
With every single compilation (and minor changes, but not relevants to the whole program structure nor logic) the behaviour of the uploaded hex file is absolutelly random... i.e. at startup we send several AT commands to the GSM module (via fprintf and a stream defined with #use rs232) and we parse the response (obtained byte to byte or with fgets), but sometimes 3 of seven commands are sent and then hungs, sometimes everything works, some time just hungs at startup, and not to mention if we change the #opt level...
This is not related to hardware because it happens with several boards we have, and some other "test" programs we wrote works perfectly and the problem is not related to a specific part of code or function, it does appears to be a kind of "size" problem or something like that because the odd behaviour appears not only communicating with the GSM module, some times when it "appears to work" is internally clearing (or overwriting?) some program variables, making the resulting hex an useless chunk of bytes...
Well, if someone has any clue for us in order to start using this product without this kind of crazy problems, will be welcome!
Thanks in advance,
Sandro. |
|