Recent Changes - Search:

Main

Robotics I Fall 2007

Robotics II Spring 2007

Robotics I Fall 2006

Vision Servoing Laboratories

FPGA-Based Vision

VDSP

LabVIEW Embedded

Code

Site Admin

edit SideBar

YourFirstProgram

VDSP.YourFirstProgram History

Hide minor edits - Show changes to output

Changed line 27 from:
## Right click on Source, choose Add File to project, and navigate to the HelloWorld.c.
to:
## Right click on Source, choose Add File to Folder, and navigate to the HelloWorld.c.
June 19, 2007, at 02:01 PM by Fred Martin -
Changed lines 17-18 from:
## Select the file @@BF_Handy_Board_Library.dlb@@  (The .dlb suffix stands for DSP LiBrary.)
to:
## Select the file @@BF_Handy_Board_Library.dlb@@  (The .dlb suffix stands for DSP LiBrary).
Deleted line 23:
June 17, 2007, at 12:12 AM by Fred Martin -
Changed line 55 from:
* Here are some tutorial documents to get started with:
to:
* Here are some tutorial documents to continue with:
June 17, 2007, at 12:11 AM by Fred Martin -
Added lines 54-58:

* Here are some tutorial documents to get started with:
## http://www.analog.com/UploadedFiles/Associated_Docs/496121646Getting_Started_with_ADSP_BF537_EZ_KIT_Lite.pdf
## http://www.analog.com/UploadedFiles/Associated_Docs/593555244616414545245_getstarted_man.pdf

June 16, 2007, at 12:25 PM by Fred Martin -
Changed lines 17-18 from:
## Select the file "BF_Handy_Board_Library.dlb"  (The .dbl suffix stands for DSP LiBrary.)
to:
## Select the file @@BF_Handy_Board_Library.dlb@@  (The .dlb suffix stands for DSP LiBrary.)
Changed line 27 from:
## 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\ .
to:
## 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\ .
June 16, 2007, at 12:24 PM by Fred Martin -
Changed lines 43-44 from:
->->and save the file.
to:
->and save the file.
June 16, 2007, at 12:24 PM by Fred Martin -
Changed lines 43-44 from:
->and save the file.
to:
->->and save the file.
June 16, 2007, at 12:23 PM by Fred Martin -
Changed lines 43-44 from:
and save the file.
to:
->and save the file.
June 15, 2007, at 09:23 PM by Fred Martin -
Changed line 53 from:
## If you run the code again, even though it's a toggle command, the call to HB_HandyBoard_Init() will reset the board (that's the beep that you hear) so the LED will turn on again.
to:
## If you run the code again, even though it's a toggle command, the call to HB_HandyBoard_Init() will reset the board (that's the beep that you hear) so the LED will turn off and then on again.
June 15, 2007, at 08:44 PM by Fred Martin -
Changed lines 43-53 from:
and save the file.
to:
and save the file.

* Build the project.
## Go into Project and choose Build Project.
## VDSP should compile, link, and download the code.  The executable code is saved in a file with a ".dxe" suffix (this stands for DSP eXEcutable).

* Run your code!
## VDSP will have positioned the PC (program counter) at the first runnable line of your code (at HB_HandyBoard_Init()).
## Choose Debug:Run.  You may get a "project is out of date" dialog -- allow it to rebuild.
## Now LED1 should turn on!
## If you run the code again, even though it's a toggle command, the call to HB_HandyBoard_Init() will reset the board (that's the beep that you hear) so the LED will turn on again
.
June 15, 2007, at 08:40 PM by Fred Martin -
Added line 30:
----
Changed lines 42-43 from:
## Save the file.
to:
----
and save
the file.
June 15, 2007, at 08:39 PM by Fred Martin -
Added lines 19-24:
* 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.

Deleted line 29:
June 15, 2007, at 08:36 PM by Fred Martin -
Added lines 33-36:
   HB_Leds_Toggle(1);
}
@]
## Save the file.
June 15, 2007, at 08:35 PM by Fred Martin -
Changed lines 28-33 from:
to:
int main(int argc, char* argv) {
    // Initialize Handy Board
    HB_HandyBoard_Init();

    // turn on an LED
   
June 15, 2007, at 08:34 PM by Fred Martin -
Changed line 3 from:
# Create a new project.
to:
* Create a new project.
Added line 10:
Changed lines 12-13 from:
# Add the Handy Board library.
to:

* Add the Handy Board library.
Changed lines 17-18 from:
## Select the file "BF_Handy_Board_Library.dlb"  [The .dbl suffix stands for Dsp LiBrary.]
#
Add a source file to the project.
to:
## Select the file "BF_Handy_Board_Library.dlb"  (The .dbl suffix stands for DSP LiBrary.)

*
Add a source file to the project.
Changed lines 22-28 from:
to:
## Right click on Source, choose Add File to project, and navigate to the HelloWorld.c.
## Now type the following:

[@
#include <BF_Handy_Board.h>

June 15, 2007, at 08:32 PM by Fred Martin -
Added lines 16-20:
# 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\ .

 
June 15, 2007, at 08:29 PM by Fred Martin -
Added lines 1-15:
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 .dbl suffix stands for Dsp LiBrary.]
Edit - History - Print - Recent Changes - Search
Page last modified on June 19, 2007, at 06:13 PM