beautypg.com

Returning to edit mode – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual

Page 36

background image

CHAPTER 3 • GETTING STARTED 35

ing loaded into flash. For example, the program on the preceding page requires a total of 45

K (45056) bytes. About 19 K of this memory allocation is required for the BIOS to set up

the processor and another 3 K to support the debugger.

Once the program has finished loading on the Click 500, it will try to display the first code

file used in the application. However, because this file is a core Click 500 library file and has

been encrypted, a warning message box will appear (see Figure 3.4). Click OK when this

message box appears and the program will being to execute.

Figure 3.4 – Encrypted File

With this Hello World example, the STDIO window will appear next and the text “Hello

World!” will be printed in the top left of the window (see Figure 3.5).

Figure 3.5 – Printing Hello World

Warning

Make sure the 6th switch of DIP switch 1 on the left-side panel is in the ON position,
otherwise you will not be able to program the device..

Returning to Edit Mode

When a program is running, it is in Debug mode. While in Debug mode, the code cannot

be modified. To make changes to the code, the Dynamic C IDE must be in Edit mode. To

enter Edit mode, click the Edit button (the button labeled “abI”) on the Dynamic C IDE

toolbar (see Figure 3.6).