Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] [IAR EW-ARM] Internal Error???

2005-12-02 by Joel Winarske

If you implement calls that use stdin/stdout in debug, and you have linker
option set, all stdin/stdout happens in terminal I/O window.

If you implement putchar and or getchar you effectively change your
stdin/stdout endpoints.  So for debug and or release you might want to use
the serial port for stdout, just implement putchar to send character to your
desired serial port.  You can make stdout your I2C port if you like.

You get no Terminal I/O in C-Spy regardless of linker setting if you
implement putchar/getchar.  So perhaps conditionally compile putchar and or
getchar based on your needs.

Using the Terminal I/O consumes one hardware breakpoint.  If you're not
using Terminal I/O disable the linker setting.


int putchar(int c);		// implementation only needed for printf()
int getchar(void);


Joel

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.