Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Logic PD support staff and engineers participate, Logic PD does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Logic PD engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Logic PD product download, please subscribe to the TDG Forum of interest.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 24 Jan 2006 11:15 AM by  Anonymous
How do I install the sample application ?
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages

dbouldin



New Member


Posts:
New Member


--
15 Jan 2006 01:38 PM
    How do I install the sample application and its software tree?

    I downloaded
    http://www.logicpd.com/downloads/44...cation.zip

    and manually copied the unzipped files into

    home/logic/sample_zoom_app/src

    When I type "make sample-LLH75401-10_FLASH",
    I get errors about not finding
    files and directories.

    Evidently, no subdirectories are created so I am not setup
    properly to compile source code to develop my own applications.

    I did not find a setup utilitiy in the ZIP file.

    Fortunately, I was able to use TeraTerm to download the precompiled
    "sample_LLH75401_10_FLASH" to my SDK board and observe
    "Hello World".

    Please advise.

    Anonymous





    Posts:


    --
    18 Jan 2006 12:42 PM
    Have you properly installed GNU Tools and Cygwin on your workstation? How are you trying to build the sample application?

    dbouldin



    New Member


    Posts:
    New Member


    --
    18 Jan 2006 01:46 PM
    >Have you properly installed GNU Tools and Cygwin
    >on your workstation?

    Yes.

    >How are you trying to build the sample application?

    I manually made a directory using Cygwin:

    /home/logic/sample_app/src

    and put the unzipped sample application files in it.

    I did not see an install script.

    Then I typed "make" but am given an error which I can
    tell the Makefile is looking in other subdirectories.

    For instance, the file looks for:

    archdir=arch/arm

    but I have not created that part of the software tree and
    do not know what to put there.


    I also get errors when I type:

    make sample-LLH75401-10_flash


    Do I have the correct Makefile?

    The one I am using is given below.

    WINZIP produces the files given below the Makefile.

    Thanks

    --------------

    #
    # © Copyright 2002, Logic Product Development, Inc. All Rights Reserved.
    #
    # NOTICE:
    # This file contains source code, ideas, techniques, and information
    # (the Information) which are Proprietary and Confidential Information
    # of Logic Product Development, Inc. This Information may not be used
    # by or disclosed to any third party except under written license, and
    # shall be subject to the limitations prescribed under license.
    #
    #

    default:
    @echo "You must make for a specific target:"
    @echo " make sample-LLH7a400-10_flash Sharp 7a400 Flash Version"
    @echo " make sample-LLH7a400-10_ram Sharp 7a400 RAM Version"
    @echo " make sample-LLH79520-10_flash Sharp 79520 Flash Version"
    @echo " make sample-LLH79520-10_ram Sharp 79520 RAM Version"
    @echo " make sample-LLH75401-10_flash Sharp 75401 Flash Version"
    @echo " make sample-LLH75401-10_ram Sharp 75401 RAM Version"
    @echo " make sample-LSH7727-20_flash Hitachi 7727 Flash Version"
    @echo " make sample-LSH7727-20_ram Hitachi 7727 RAM Version"
    @echo " make clean"
    @false

    export BOOTROOT=$(shell pwd)

    #
    # add targets here for each CardEngine/Motherboard pair
    #
    sample-LLH7a400-10_flash:
    export INFLASH=1; export LOGIC_CARDENGINE=LLH7a400_10; export LOGIC_BOARD=LCE; $(MAKE) sample

    sample-LLH7a400-10_ram:
    export INFLASH=0; export LOGIC_CARDENGINE=LLH7a400_10; export LOGIC_BOARD=LCE; $(MAKE) sample

    sample-LLH79520-10_flash:
    export INFLASH=1; export LOGIC_CARDENGINE=LLH79520_10; export LOGIC_BOARD=LCE; $(MAKE) sample

    sample-LLH79520-10_ram:
    export INFLASH=0; export LOGIC_CARDENGINE=LLH79520_10; export LOGIC_BOARD=LCE; $(MAKE) sample

    sample-LLH75401-10_flash:
    export INFLASH=1; export LOGIC_CARDENGINE=LLH75401_10; export LOGIC_BOARD=LCE; $(MAKE) sample

    sample-LLH75401-10_ram:
    export INFLASH=0; export LOGIC_CARDENGINE=LLH75401_10; export LOGIC_BOARD=LCE; $(MAKE) sample

    sample-LSH7727-20_flash:
    export INFLASH=1; export LOGIC_CARDENGINE=LSH7727_20; export LOGIC_BOARD=LCE; $(MAKE) sample

    sample-LSH7727-20_ram:
    export INFLASH=0; export LOGIC_CARDENGINE=LSH7727_20; export LOGIC_BOARD=LCE; $(MAKE) sample

    #
    # make the sample app for each architecture
    #
    test:
    $(MAKE) sample-LLH7a400-10_flash
    $(MAKE) sample-LLH7a400-10_ram
    $(MAKE) sample-LLH79520-10_flash
    $(MAKE) sample-LLH79520-10_ram
    $(MAKE) sample-LLH75401-10_flash
    $(MAKE) sample-LLH75401-10_ram
    $(MAKE) sample-LSH7727-20_flash
    $(MAKE) sample-LSH7727-20_ram

    #
    # canonical CPU values:
    #
    # 7727 7750 7400 79520 75401
    #
    # canonical ARCH values:
    #
    # sh3 sh4 arm7 arm9
    #
    ifeq ($(LOGIC_CARDENGINE),LSH7727_10)
    export ARCH=sh3
    export CPU=7727
    endif
    ifeq ($(LOGIC_CARDENGINE),LSH7727_20)
    export ARCH=sh3
    export CPU=7727
    endif
    ifeq ($(LOGIC_CARDENGINE),LLH7a400_10)
    export ARCH=arm9
    export CPU=7400
    endif
    ifeq ($(LOGIC_CARDENGINE),LLH79520_10)
    export ARCH=arm7
    export CPU=79520
    endif
    ifeq ($(LOGIC_CARDENGINE),LLH75401_10)
    export ARCH=arm7
    export CPU=75401
    endif

    #
    # variables that control which things get built for which targets
    #
    ifeq ($(ARCH),sh4)
    archdir=arch/sh
    endif
    ifeq ($(ARCH),sh3)
    archdir=arch/sh
    endif
    ifeq ($(ARCH),arm7)
    archdir=arch/arm
    endif
    ifeq ($(ARCH),arm9)
    archdir=arch/arm
    endif

    ifeq ($(INFLASH),0)
    FLASHFLAG=RAM
    else
    FLASHFLAG=FLASH
    endif

    #
    # sub-targets common to all cardengine+board combinations
    #
    sample: .sample_$(LOGIC_CARDENGINE)_$(FLASHFLAG) main.a arch.a
    cp $(archdir)/stripped $@_$(LOGIC_CARDENGINE)_$(FLASHFLAG)

    #
    # a flag file to make sure cleans are done between builds
    # for different targets. dont mess w/ this file.
    #
    .sample_$(LOGIC_CARDENGINE)_$(FLASHFLAG):
    make distclean
    touch .sample_$(LOGIC_CARDENGINE)_$(FLASHFLAG)

    #
    # project components
    #
    main.a:
    cd main ; $(MAKE)

    arch.a:
    cd $(archdir) ; $(MAKE)

    archclean:
    -rm liblolo.a
    -cd $(archdir) ; $(MAKE) clean

    archdistclean:
    -cd main ; $(MAKE) distclean
    -cd $(archdir) ; $(MAKE) distclean
    -rm .sample_$(LOGIC_CARDENGINE)_FLASH
    -rm .sample_$(LOGIC_CARDENGINE)_RAM

    clean:
    -cd main ; $(MAKE) clean
    export INFLASH=0 ; export ARCH=arm; export archdir=arch/arm; export LOGIC_CARDENGINE=LLH75401_10; $(MAKE) archclean
    export INFLASH=0 ; export ARCH=arm; export archdir=arch/arm; export LOGIC_CARDENGINE=LLH79520_10; $(MAKE) archclean
    export INFLASH=0 ; export ARCH=arm; export archdir=arch/arm; export LOGIC_CARDENGINE=LLH7a400_10; $(MAKE) archclean
    export INFLASH=0 ; export ARCH=sh; export archdir=arch/sh; export LOGIC_CARDENGINE=LSH7727_20; $(MAKE) archclean

    distclean:
    export INFLASH=0 ; export ARCH=arm; export archdir=arch/arm; export LOGIC_CARDENGINE=LLH75401_10; $(MAKE) archdistclean
    export INFLASH=0 ; export ARCH=arm; export archdir=arch/arm; export LOGIC_CARDENGINE=LLH79520_10; $(MAKE) archdistclean
    export INFLASH=0 ; export ARCH=arm; export archdir=arch/arm; export LOGIC_CARDENGINE=LLH7a400_10; $(MAKE) archdistclean
    export INFLASH=0 ; export ARCH=sh; export archdir=arch/sh; export LOGIC_CARDENGINE=LSH7727_20; $(MAKE) archdistclean

    depend:
    cd main ; $(MAKE) depend
    -export CPU=7727; export ARCH=sh3; cd arch/sh ; $(MAKE) depend
    -export CPU=7400; export ARCH=arm; cd arch/arm ; $(MAKE) depend
    -export CPU=79520; export ARCH=arm; cd arch/arm ; $(MAKE) depend
    -export CPU=75401; export ARCH=arm; cd arch/arm ; $(MAKE) depend

    -------------- WINZIP:

    total 395
    -rwx------+ 1 dbouldin None 1159 Jan 15 15:31 Makefile
    -rwx------+ 1 dbouldin None 2653 Jul 9 2003 Makefile.inc
    -rwx------+ 1 dbouldin None 2275 Jul 23 2003 README
    -rwx------+ 1 dbouldin None 107 Aug 18 2003 depend
    -rwx------+ 1 dbouldin None 1728 Jul 9 2003 init_7400.S
    -rwx------+ 1 dbouldin None 1381 Jul 8 2003 init_75401.S
    -rwx------+ 1 dbouldin None 2230 Jul 16 2003 init_7727.S
    -rwx------+ 1 dbouldin None 1076 Aug 18 2003 init_7727.o
    -rwx------+ 1 dbouldin None 1123 Jul 9 2003 init_79520.S
    -rwx------+ 1 dbouldin None 2850 Aug 18 2003 liblolo.a
    -rwx------+ 1 dbouldin None 2175 Jul 9 2003 main.c
    -rwx------+ 1 dbouldin None 2708 Aug 18 2003 main.o
    -rwx------+ 1 dbouldin None 34064 Dec 2 2003 sample_LLH75401_10_FLASH
    -rwx------+ 1 dbouldin None 33936 Dec 2 2003 sample_LLH79520_10_FLASH
    -rwx------+ 1 dbouldin None 33944 Dec 2 2003 sample_LLH7a400_10_FLASH
    -rwx------+ 1 dbouldin None 69755 Aug 18 2003 sample_LSH7727_20_FLASH
    -rwx------+ 1 dbouldin None 69755 Aug 18 2003 sample_app
    -rwx------+ 1 dbouldin None 907 Aug 18 2003 sample_app.lds
    -rwx------+ 1 dbouldin None 860 Jul 9 2003 sample_app.lds.S
    -rwx------+ 1 dbouldin None 872 Jul 9 2003 serial.h
    -rwx------+ 1 dbouldin None 2881 Jul 9 2003 serial_7400.c
    -rwx------+ 1 dbouldin None 4316 Jul 9 2003 serial_75401.c
    -rwx------+ 1 dbouldin None 4260 Jul 9 2003 serial_7727.c
    -rwx------+ 1 dbouldin None 3392 Aug 18 2003 serial_7727.o
    -rwx------+ 1 dbouldin None 3069 Jul 9 2003 serial_79520.c
    -rwx------+ 1 dbouldin None 69755 Aug 18 2003 stripped

    Anonymous





    Posts:


    --
    18 Jan 2006 01:53 PM
    Hello,

    I am able to build this sample application just fine for flash on my machine. I'm using the versions of Cygwin and GNU Tools that are posted to the downloads page.

    Just in case you might want to update your version of Cygwin just to be sure at their website.

    Thanks,

    kurtl@logicpd.com



    New Member


    Posts:
    New Member


    --
    18 Jan 2006 03:06 PM
    dbouldin,
    You said you "manually copied the unzipped files into home/logic/sample_zoom_app/src " -- thats a problem.

    The .zip file must be extracted such that all the path information is retained for all files so each sub directory gets properly populated.

    That will probably fix your problem.
    -K

    dbouldin



    New Member


    Posts:
    New Member


    --
    18 Jan 2006 03:19 PM
    I think that last clue was the fix I needed.

    I did an "Extract to" and the hierarchy of the LH*zip file was preserved.

    Looks like it compiled just fine.

    I'll try downloading it.

    Thanks for your patience in spotting a simple error like this.

    Anonymous





    Posts:


    --
    24 Jan 2006 11:15 AM
    Glad to hear that you got things working.
    You are not authorized to post a reply.