Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__setSystemMaxData

In this section:
Syntax
__setSystemMaxData(size)
Parameters
size

The maximum number of bytes to collect.

Return value

The most recent value set by this macro, or 65535 (the default value) if the macro has not been called before.

For use with

All C-SPY drivers.

Description

Use this macro to set the maximum number of bytes that can be collected from an external application started with the __system2 or __system3 macro. By default, a maximum of 65,535 bytes can be collected.

Example
__var exitCode;
__var out;
__var oldSize;

oldSize = __setSystemMaxData(100000); // Increasing the maximum data size

exitCode = __system2("dir /S", &out);

__message "Previous data limit:";
__message oldSize

__message "Output from the dir command:";
__message out;
See also

__setSystemTimeout, __system2, and __system3.