This is just a general question on error trapping. Using various high level languages on the PC there are mechanisms for error trapping eg try{} catch{} etc.
What is considered to be the best method for error trapping on the PIC?
For example if there is an error writing to EEPROM or not getting the correct memory allocation using MALLOC. I know these are specific examples but I'm looking for any general comments.
Regards Sandyw
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Aug 20, 2007 1:19 pm
The only thing they have is the assert() function.
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
Posted: Mon Aug 20, 2007 1:34 pm
Also there is a restart_cause() function that indicate the last conditon after reset.
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