This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to start developping software

i have just received my EVM, my aim is to use the touch screen. First i installed all packages CodeSourcery, EZSDK. but i don't know what to do after ?

I see examples like signal analysers, SysLink, ... (from EZ software developers guide). Unfortunately, some are not working !

Now i tried doing a linux application with using the open source linux librairies from the board-support folder, but there is no help file or a listing of all librairies inside !?

 

I feel a little lost, I think i missed a doc or something...

 

My main obective is to develop a software using usb driver (to receive touch screen information), to use a 3D library to draw images on the touch screen and using the graphical component. so where do i begin ?

 

thank you for your help.

  • To develop code in Linux on the ARM, first of all you will need a makefile.  I started my development using the makefile from lab05 of the embedded linux workshop, search for it on the wiki site.  Then include the Rules.make file, which gives the paths to where everything is located in EZSDK:

    # ------ includes -------
    # -----------------------
    EZSDK := /home/lholeva/ti-ezsdk_dm816x-evm_5_02_01_59
    include $(EZSDK)/Rules.make

    Setup the paths to the include files and libraries:

    CFLAGS := -g -I$(CS_INSTALL_PATH)/libc/usr/include -I$(LLIB_INSTALL_DIR)/include
    LINKER_FLAGS := -lpthread -lusb-1.0 -L$(LLIB_INSTALL_DIR)/lib -lstdc++

    To do anything with usb you will want to use usblib which is included with EZSDK.  Google for it to get the documentation on the API.  To do 3D graphics I suspect that you will want to use openGL, again google for the documentation.

    Lee

     

  • Thank you Lee,

    I tried what you said, but i have linking problems. I'll be back when they are solved.

    Baptiste

  • Lee,

     

    I still have linking problems, maybe you could help me solving this problem:

    Here is an extract of my makefile which is more basic than the one you give me

    CFLAGS=-I${EZSDK}/linux-devkit/arm-none-linux-gnueabi/usr/include
    LDFLAGS=-lusb -L/home/banc_dt_078/targetfs/usr/lib

    I checked that libsusb.so is really present in the directory: /home/banc_dt_078/targetfs/usr/lib/

    Note: I use the libusb from the target.

     

    Here is the linking error from the compilation:

    /home/banc_dt_078/Desktop/CodeSourceryLite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lusb

    Like if ld is not using the directory specified in the makefile !?

    Do you know what is wrong in my makefile ?

     

    Thank you,

     

    Bat

  • MALAUD Baptiste said:

    CFLAGS=-I${EZSDK}/linux-devkit/arm-none-linux-gnueabi/usr/include
    LDFLAGS=-lusb -L/home/banc_dt_078/targetfs/usr/lib

    This is different from what I'm using:

    CFLAGS := -g -I$(CS_INSTALL_PATH)/libc/usr/include -I$(LLIB_INSTALL_DIR)/include

    LINKER_FLAGS := -lusb-1.0 -L$(LLIB_INSTALL_DIR)/lib -lstdc++

    <executable> : <source files>

                           $(CC) $(CFLAGS) $(LINKER_FLAGS) $^  -o $@

    $(CS_INSTALL_PATH) shows where Codesoucery is installed

    $(LLIB_INSTALL_DIR) shows where the linux_devkit is installed in the EZSDK, not the target

    Get these from Rules.make

    Lee

     

     

  • Lee,

     

    Thank you it works but not entirely ! i can't link to  libusb.h.

    here is the location of the file: /home/banc_dt_078/ti-ezsdk_dm816x-evm_5_02_02_60/linux-devkit/arm-none-linux-gnueabi/usr/include/libusb-1.0/libusb.h

    I tried in the CFLAGS: -I$(LLIB_INSTALL_DIR)/include/libusb-1.0 -I$(LLIB_INSTALL_DIR)/include

    I tried #include <libusb-1.0/libush.h>  #include <libush.h>

    but i still have toto.h:3:20: error: libusb.h: No such file or directory

     

    i google it, and it seems i have the same problem that is described in this link.

    Do you have any ideas ?

     

    Bat

  • Lee,

     

    It works perfectly, thank you again.

     

    It is not needed to add libusb.h. i tried calling function usb_init() or it was libusb_init();

     

    let's try this usb library.

     

    bye,

     

    Bat