The problem is before the array is defined, if you look at the assembler output you can see that the 2 SETM instructions are at the start of "main" the very fir ...
I was starting to think the same it was probably a bug in PCD.
I tried generating a project with the standard fuse setting using the 24 bit wizard did the same thing.
I was using proteus to simulate ...
HI asmallri
I tried that but it is still generating the two SETM 32C and SETM 32A instructions. Its the second instruction that causes the reset.
I have tried changing all the fuses but still the sa ...