-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 19/08/2010 18:51, Carl Denk wrote: > The doesn't work, meant, it compiled and ran, but, the display got=20 > filled with garbage. What I should have done is tried to debug that, and= =20 > running in MPLAB-SIM, I get the error: > CORE-E0001: Stack over flow error occurred from instruction at 0x000c10 >=20 > with this line: (one at a time) >=20 > printf ((rom unsigned char*) "%2d %2d", month, day); >=20 > or: >=20 > printf ( "%2d %2d", month, day); >=20 > and as suggested: (less the 2 single quotes), it ran, but the entire LCD= =20 > line was garbage. >=20 > printf ((const rom far char'') "%2d %2d", month, day); >=20 >=20 Have you tried to increase the amount of RAM allocated to the stack? I don't remember the specifics but I had to do so for another piece of code. There's an option somewhere in the build configuration for the project IIRC. - --=20 Brendan Gillatt | GPG Key: 0xBF6A0D94 brendan {a} brendangillatt (dot) co (dot) uk http://www.brendangillatt.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (MingW32) iEYEARECAAYFAkxtgmQACgkQHEhZ5Ws5poFYHgCaA5Yn5AQ71Kp5WQmy5jS5MdKp LA8AnAvR4oUDdE7QqO08k+/B9uDvUw7f =3D05Ru -----END PGP SIGNATURE----- --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .