Hi,
when executing the following code in my application. if face chip reset time to time. I've investigated code to find the bug origin and then notice that i ve a difference in my hardware design. I use a pullup resistor of 10k on the Reset chip. After removed it, the chip dont seem to reset anymore. Please someone can explain me what is wrong ? I can't find more information about how is pulled or not internnaly this pin.
Tank you.
RTC2CON = 0x00;
COMPCON = 0x01; //Enable 25% of VDD (2.7v) soit 0.675v for wakeup voltage
hal_ancmp_set_ref_voltage_scale(HAL_ANCMP_REF_SCALE_25);//25%
CLKCTRL = CLKCTRL & 0xcf | 128; // Allow synthesis of 35khz clock
PWRDWN = 0x04;