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.

DM6437

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I am new to DM6437, in fact new to development on TI platform. I have got DM6437, I am not able to build an example project that came with the board. When I try to build it is giving me error like could not open source file evmdm6437.h. Can anyone help me in solving this issue.

Waqas

  • The evmdm6437.h file is included as part of the Spectrum Digital Target Content package for the board which generates folders within your CCS install, the C:\CCStudio_v3.3\boards\evmdm6437_v2\include should contain the header file you are seeking.

    Note that the examples that utilize the content from the SD package utilize a Windows environment variable to set the proper path to the files. You can check and set this variable by right clicking on your My Computer icon and selecting properties, than selecting the Advanced tab and than the Environment Variables button. Here you either have and can modify or can create a new BSL_EVMDM6437_INSTALLDIR variable that points to C:\CCStudio_v3.3\boards\evmdm6437_v2 or wherever you have your SD target content package installed.

  • Thanks for your reply. Now when I try to open a demo project it gives me another error while loading the project i.e. Cannot find file: xdc/std.h . Is there any other environment variable that needs to be created? Also is there a stratup guide other then what i received with the board that can give me a good idea of how things are done on DM6437?

  • You can search for the file std.h, find the the path for it, and add it to the build options. To do that, right click on your project, select Build Options..., at the Compiler tab, select the Preprocessor Category and put the path in the field Include Search Path.

  • Mariana is correct, you can fix most any of there 'cannot find file ...' errors by searching for the file and than adding the path to it in your build options.

    Waqas Hassan said:
    Is there any other environment variable that needs to be created?

    This depends on the particular example or demo you are trying to build, I believe this is handled in the xdcpaths_evmDM6437.dat file as opposed to an environment variable however it has been a while since I built these. You could look at your particular project's build options to see where it is trying to find a path to the XDC package (C:\dvsdk_1_01_00_15\xdc_2_95_02\packages is what it needs) to see how it defines the link to the XDC version of std.h.

    Waqas Hassan said:
    Also is there a stratup guide other then what i received with the board that can give me a good idea of how things are done on DM6437?

    There should be a spruev6.pdf in the root directory of your DVSDK install that discusses setting up the software and rebuilding the demo applications.

  • Hi Guys,

    Thanks for helping me out in different issues. I am now trying to run the demo application and following the Startup guide that came DM6437. I am trying to run PC Host Application and first step in that process is to discover the board's IP address. When I run RUN.BAT file in hostapp folder it opens up a Host Application window with the discover button. But when I click the button it give me message; Could not locate any DM6437EVM demo-running targets on the network.

    I have connected my PC and the board with the same switch.

    Any ideas why it is not picking the board's IP?

  • If they are on the same switch with a DHCP server and the demo is running than the discovery process should work. If it does not work than my suggestion would be to load the demo from CCS to debug the situation, when you load from CCS and run the demo you can see the printf outputs from the demo that give you various information including the network stack information such as the IP address it gets. If it is not getting an IP address from DHCP than you may have to check out the status of your network, if it does get an IP address than you can take that IP address and put it into the PC host application to connect with the board regardless of the discovery.

  • I have loaded the demo from CSS by first building it and then loading .out file on to the board. When I run the demo code it gives me following output on the STdout window:


    ********************************************************
    *  Welcome: DM6437 Demo Application 1.30.00
    ********************************************************
    Performing System Initialization...
    Performing System Configuration...
    Settings: preview NTSC QD1
    Performing System Create...
    Starting up the Network...
    Using MAC Address: 00-0E-99-02-99-A7
    NDK - Service Status: DHCPC    : Enabled  :          : 000
    NDK - Service Status: HTTP     : Enabled  :          : 000
    NDK - Service Status: DHCPC    : Enabled  : Running  : 000
    Performing System Startup...
    000001 Control........... Play preview
    RPCS service is started
    System OK
    Link Status: 100Mb/s Full Duplex on PHY 0

    Now when I click the discover button for the IP address following lines are printed on the Stdout window:

    IP address discovery request
    Received text: RUADM6437EVMV2
    Reply text: YESIAMADM6437EVMV2 00-0E-99-02-99-A7

    By look of things it is giving me MAC address but not the IP Address. Also when I connected my PC with the switch it automatically got the IP address: 169.254.72.119, which by my understanding means that DHCP server is working ( I am not sure where DHCP server is hosted ).

    I am still not able to solve the problem. Can you plaese advice.

     

  • Please refer to my previous post this is the continuation of the previous post

    Now I got this line on the Stdout window:

    NDK - Service Status: DHCPC    : Enabled  :  Fault        : 002

  • This means that there is some issue with the board getting an IP address over DHCP, so either you have no DHCP server (if your host is configured for a static IP for example) or your network is setup such that it will only give IP addresses to certain MAC address or there is otherwise some compatibility issue between the board and your DHCP server. In this case you have a few options:

    1. You could check with your network administrator to see how the DHCP server is configured, and if they can help you to get the board a DHCP address.
    2. You could take the board and host PC off of the network and put them both on a local broadband router's network, an off the shelf router should give both the board and the host IP addresses quick and easy.
    3. You could modify the demo to use a static IP address (change 'dhcp' to 'static' in the configuration section of app_main.c), this is really not all that hard to do but does require rebuilding the demo, and may also require you to work with your network administrator to be sure you give it a proper IP address.

  • Thanks for your help, I am able to solve the problem by giving a static IP address.

    I am not trying to run different examples in that came with the board. I am able to run video_copy example and it is giving me right results but when I tried to run video_encdec_fio example, it gives me incorrect output. If only process 1st frame and encodes it into H.264 but after that it gives me this error:

    Decoder fram 0 processing FAILED, status = 0xffffffff, extended Error = 0x20c1

    It should process 10 frames but its stuck on the first one. Any idea why it is not running propertly as i have not changed any thing in the code.