This page explains how to do a "Hello World" on the Handy Board.
- Create a new project.
- Go into File:New:Project.
- Name the project "HelloWorld". Project type is Standard application. Click Next.
- It will say the folder doesn't exist. Create it.
- Choose processor ADSP-BF537. Click Next.
- On the Startup code screen, choose "Don't add an LDF or startup code." Click Next.
- Click Finish.
You should now have a project named HelloWorld in your project group.
- Add the Handy Board library.
- Right-click on Linker Files, and choose Add File(s) to Folder.
- In the file dialog, go to the bottom and in "Files of type," select "Archive Files (.dlb)".
- From the archive "BF_Handy_Board-BSP," navigate to the folder "BF_Handy_Board_Library".
- Select the file
BF_Handy_Board_Library.dlb (The .dlb suffix stands for DSP LiBrary).
- Add the directory of the .dlb file to the project include paths.
- Right-click on the Hello World project and choose Project Options.
- Click on Project->Compile->Preprocessor.
- In field Additional include directories, click on the (...) icon and navigate to the folder that contains the Handy Board library .dlb file.
- Add a source file to the project.
- Go into File:New.
- Save the empty file as
HelloWorld.c. You want to put it in the right place. VDSP probably made a project group for you in Documents and Settings\You\My Documents\VisualDSP Projects\HelloWorld\ .
- Right click on Source, choose Add File to Folder, and navigate to the HelloWorld.c.
- Now type the following:
#include <BF_Handy_Board.h>
int main(int argc, char* argv) {
// Initialize Handy Board
HB_HandyBoard_Init();
// turn on an LED
HB_Leds_Toggle(1);
}
and save the file.