Hi Jonas,

Note that when enabling code coverage you will at least need to add 20K to your current user stack size, because some fairly large structures are being pushed onto it, when building the histogram. If it's size does not accomodate for that, the stack will corrupt whatever else precedes it in your memory map. Most of it will not be alive anymore (the histogram is built when during the exit of your program) so sometimes you may just get lucky. I however, was one of the unlucky ones (or lucky depending the way you look at it) that had a batch that broke. As a side-effect the file handles for my .gcda didn't close. While my hint about MConfig is definitely not wasted information, it will probably not have solved your case. Adjusting the user stack size, should.

Best regards,

Henk-Piet Glas
Principal Technical Specialist