Step 1. Type in the following program in a text editor like notepad and save
it as hello.c
.
#include <board.h>
#include <lcd.h>
int main()
{
board_init();
lcd_init();
lcd_puts("Hello World!\n");
return 0;
}
Step 2. Open a DOS box, switch to the folder containing the C file and compile it using the following command.
> zcc zkit-arm-1343 hello.c
Step 3. Fix the errors, if any and check the folder for executable file with
the extension bin
.
Step 4. Connect the development kit to the PC using the USB cable. Press the
PROG
button, to switch into Programming Mode.
Step 5. The board will be detected as a Mass Storage Device. Just like a USB pen drive, a drive letter will be assigned.
Step 6. Delete the file firmware.bin
, present in the drive. Copy the
hello.bin
file created in step 3, and paste it into the drive.
Step 6. Press the RESET
button, to execute the downloaded program.