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.

Problems adding an NDK instance to a project

Other Parts Discussed in Thread: EK-TM4C1294XL, SYSBIOS

Board: EK-TM4C1294XL (probably not relevant)

Started in CCS with TI-RTOS UART Echo example (worked)

Attempted adding a telnet server (NDK) instance (with console.c to test) using the UI and ran into several issues:

  1. In the config panel there was an alert (appearing again on build attempt)
        ti.sysbios.knl.Task.Instance#1 priority: priority 5 must be less than Task.numPriorities (4)
    Solved: Updated config to up the total number of priorities

  2. Got an error about missing ti_ndk_config_Global_HostName
    Solved: Added "var Global = xdc.useModule('ti.ndk.config.Global');"

  3. Now the compiler is not able to find netmain.h (included by console.c)
    Manually I can find this file in
      tirtos_tivac_2_12_01_33/products/ndk_2_24_02_31/packages/ti/ndk/inc
    But that path is not among the (two) passed to the compiler with "-I" flags

I suppose I can go and manually add that path to the project but if I went through all the eclipse GUI to add the instance - shouldn't that have taken care of ALL of these issues?

I'm obviously doing something wrong - what

Thanks

  • Hello Nevo

    Moving it to the TI-RTOS Forum

    Regards
    Amit
  • Amit

    How long does one typically have to wait for responses on the TI-RTOS forum?

  • Hello Nevo,

    Sometimes the post goes through the barrage of posts on a forum. I have notified the TI-RTOS Forum

    Regards
    Amit
  • Hi Nevo,

    Sorry for the delay. Sometime the forums can get pretty active and posts fall through.

    TI-RTOS examples only include the paths/libraries required for the example. We assume that if a user wants to start networking, they will import the tcpEcho example (which does have the NDK paths you mention above, as well as the *.cfg settings) and modify it from that point forward. Or maybe even test 2 or more examples and then merge them together. Since you are adding Networking to a UART example, yes you need to add the path manually. You are not doing anything wrong :).

    We have also considered adding all paths (required or not) to the examples, but this can lead to other problems. For example, the EK-TM4C1294XL supports both Ethernet and WiFi; if a user does #include "sockets.h", it may pick up the WiFi sockets.h even though he is interested in Ethernet. If the signatures are the same, the application can build fine but fail at runtime.

    Hope this helps,

    -- Emmanuel
  • But why aren't the paths properly driven by the configs?

    If I go and add  TI-RTOS->Products->NDK->ApplicationLayer-Telnet (Module, & Instance), doesn't that mean that all that is needed should be added? (libs, incs)

    As a text oriented developer I find the whole IDE difficult to navigate, but am supposed to find solace that at least I am lead through configuration and should be able to get started faster, but when simple 1+1 don't work I get really frustrated - is there an alternative?   Is there a blessed/documented way to manually configure TI-RTOS components?

    Thanks

  • Hi Nevo,

    Unfortunately, the graphical pages only allow you to configure the kernel and related products (like NDK or UIA) it is not able to automatically add compiler paths. Have you had the opportunity to review the product docs? These can be found in the docs directory for each individual product (ex: <tirtos install dir>/products/ndk..../docs or <tirtos install dir>/products/bios..../docs). These docs provide details on how to configure and use the code (also mentions which paths need to be added to the compiler path).

    Hope this helps,
    -- Emmanuel