This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SLOG not working in debug user function

I use the serial logging feature (SLOG) in the debugger of uVision (V5.24.2.0).

I want to switch on and off the serial logging, controlled by the running code. My intention was to use a user function each like:

FUNC void SLOGON (void) { SLOG > file.log }
FUNC void SLOGOFF (void) { SLOG OFF }

And to trigger it with breakpoints like:

BS main.c\123, 1, "SLOGON()"
BS main.c\234, 1, "SLOGOFF()"

The trigger stuff works fine, but defining such a function aborts with syntax error:

FUNC void SLOGON (void) { SLOG > file.log }
__________________________^
*** error 10, line 1: Syntax error

What do I wrong or is it not pssible at all?

Thanks for help