[quote:ef7b93c279="Vincent"]here the complet code of the project.[/quote:ef7b93c279]
Hmm, that's not what I did ask for.
The trick for a successful error-search is to reduce the code step by step to a minimalistic form, otherwise you miss the forest for the trees.
If the problem is found then within the reduced code, on can apply this knowledge to the big code.
A reduced form may consist of a few lines, initialization, ADC read, and power down, and the wakeup ISR, nothing else.
If that shows still the problem, it's a good starting point to have a thorough look into the machinery,.
That's the idea behind debugging, and imho you should reduce the code, as you've the circuit sitting in front of you.
↧