Tool/software: Code Composer Studio
Dear All,
I am working on to design a supply. After loading the program to UCD3138, there are no problems until it operates at half load. When it reaches to half load, UCD3138 resets and when I analyze the cause of reset, I saw it is illegal address reset. I suspected that when the current increases, some calculations involving current, overflows and then it resets. However, I swept all the variables of that calculation from zero to max value including division by zero, I have seen no reset. Now, I have no idea what may be the reason for the illegal address reset. I checked the whole software to find an instruction which uses address of any variable, but there is nothing but the software interrupt, especially case 12 "zero_out_integrity_word" function which ends "SysRegs.SYSECR.bit.RESET = 2; //reset device" instruction.
By the way, I also checked for a possible reset caused by noise. I disabled all interrupts. Only pmbus_handler() function was enabled and I started to run the system as open loop. When I reached to the case mentioned before, no reset occured.
What may be the causes for that, what else should I check? I would appreciate it if someone helps me.
Best regards,
Merih