9 years, 10 months ago.

Time not incrementing

Nice program and well documented. I can set the clock, but time doesn't change. The green and red LEDs are cycling but the seconds are static.

Any clue as to what I am doing wrong? Thanks for doing this.

Question relating to:

FRDM-KL46Z clock based on Paul Staron's FRDM-KL46Z-LCD-rtc-demo. Uses the on-board touch slider to set hours, minutes and seconds. FRDM-KL46Z

1 Answer

9 years, 10 months ago.

Try pressing SW3 again to cycle to the next "function mode".

If that doesn't work, follow the instructions at http://mbed.org/handbook/SerialPC to connect a serial terminal window to the board, and then sprinkle pc.printf("Hello from line 999\r\n"); statements all over main.cpp and see if you can follow the progress of the program logic.

Good luck.

Accepted Answer

Thank you. That was it. Still refreshing C knowledge.

posted by Joseph LoSurdo 13 Jun 2014