rtel wrote on Friday, September 22, 2006:
Hi - I’m working on the same thing! Well PIC24 anyhow.
The ‘standard’ demo tasks are designed to provide code coverage to test the port behaviour. They actually provide a very good test.
In addition I generally:
+ Create some tasks that (written in assembler) set each register to known values then check they maintain the expected value as a context switch occurs. I let these run in the background during all other tests.
+ Step through various aspects to ensure correct behaviour - for example switching a task in an ISR, then back to the task from task level and visa versa, etc.
+ Perform tests on context switching within critical regions to ensure status registers and interrupt levels remain at their correct value.
+ Etc…Etc…Etc. It actually takes quite a lot of time and in depth understanding of the source code to know where the potential pitfalls are.
I would be interested in seeing your dsPIC code. I hope to have the PIC24 code released in a couple of weeks. I don’t think there is much difference between the dsPIC and PIC24?