01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>IPC<strong>@CHIP</strong></strong> <strong>Documentation</strong> Index<br />

Introduction<br />

Programming notes - <strong>SC12</strong> <strong>@CHIP</strong>-<strong>RTOS</strong> <strong>V1.10</strong><br />

Here are some useful notes for programming applications for the <strong>IPC<strong>@CHIP</strong></strong>.<br />

These notes contains general rules for programming DOS applications for the <strong>IPC<strong>@CHIP</strong></strong> and important<br />

information about internals of the <strong>@CHIP</strong>-<strong>RTOS</strong> which can prevent the programmers from making fatal<br />

errors.<br />

❍ Common notes for building <strong>IPC<strong>@CHIP</strong></strong> user applications<br />

❍ Using <strong>RTOS</strong> API<br />

❍ Programming CGI functions<br />

❍ Configure the FTP server<br />

❍ Usage of the TCP/IP API<br />

❍ General notes for the usage of the DOS and <strong>@CHIP</strong>-<strong>RTOS</strong> int API calls<br />

❍ Using Hardware API<br />

❍ Using Fossil API<br />

❍ Working with Float Data Types<br />

❍ Configure PPP client or server<br />

Common notes for building <strong>IPC<strong>@CHIP</strong></strong> user applications<br />

1. Limited Flash Write Cycles (of <strong>IPC<strong>@CHIP</strong></strong>s internal Flash):<br />

To open files on the flash disk drive A: for reading or writing, you can use the standard C<br />

functions fopen or open. We recommend the use of the fopen/fread/fwrite calls instead of<br />

open/read/write to reduce the flash write cycles, because these cycles are limited.<br />

For further information see the FlashWriteCycles document.<br />

2. Compiler option settings:<br />

We recommend the usage of large memory model for user applications.<br />

The compiler must produce 186 processor instruction code.<br />

The data alignment must be set to 8 Bit (Byte alignment), not to 16-Bit (Word alignment)!<br />

3. No "exception handling" at Borland C 4.x or 5.x projects:<br />

Users of Borland C-Compilers (which provides "exception handling libraries" as it's default setting<br />

for 4.5 or 5.02) should choose for their program project "No exceptions" at the "Target Expert"<br />

window. This setting saves Flash and RAM memory space.<br />

4. Do not select "Test stack overflow" at Borland C 4.x or 5.x project compiler settings:<br />

If "Test stack overflow" is selected a stack check is done at every function call. If stack overflow<br />

is recognized the program halts.<br />

This mechanism is not usable in user applications which are using several tasks inside their<br />

Page 5 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!