hello all,
do you know if there is a way to disable code optimization only on some part of code?
I use optimization level 1 in Keil (otherwise the code does not fit in the 32KB Keil limitation). Do Unfortunately I just saw that the following command is not compiled (unable to set a breakpoint on this line).
nrf_gpio_cfg_sense_input(15, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
I would like to keep the optimization level to 1 but disable optimisation on this specific line. Do you know if this is possible? Otherwise, do you know how I could force the compiler to include this code in binary?
Without this line, I can't use a pin to wakeup from system off state.
Thanks in advance for your answer.
nRF52 - S132 - SDK11 - Keil