element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Forum TIDL example on Beagle-Bone AI
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join BeagleBoard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 8 replies
  • Subscribers 103 subscribers
  • Views 1476 views
  • Users 0 members are here
  • bbai
  • tidl
Related

TIDL example on Beagle-Bone AI

prathamesh12
prathamesh12 over 5 years ago

Hello,

I was trying to run TIDL segmentation example provided in debian@beaglebone:/usr/share/ti/examples/tidl/segmentation  using ./segmentation. but it is raising following error:

 

 

debian@beaglebone:/usr/share/ti/examples/tidl/segmentation$ ./segmentation

CMEM Error: init: major version mismatch between interface and driver.

CMEM Error:     needs driver version 0x4150002, got 0x4160000

TIOCL FATAL: The cmemk kernel module is not installed. Consult the OpenCL UserGuide at http://software-dl.ti.com/mctools/esd/docs/opencl/index.html

 

My kernel version is:

4.19.94-ti-r36

 

I have updated kernel from 4.14. Is that causing problem?

How can I recompile the codes which use TIDL library?

If I try gcc main.cpp in same segmentation folder it raises

 

 

debian@beaglebone:/usr/share/ti/examples/tidl/segmentation$ gcc main.cpp

main.cpp:44:22: fatal error: executor.h: No such file or directory

#include "executor.h"

                      ^

compilation terminated.

 

Also can we use TIDL in python?

 

Thanks.

  • Sign in to reply
  • Cancel
  • bender3467
    0 bender3467 over 5 years ago

    As far as I know it's still necessary to use 4.14 kernel.  Instructions to downgrade are here

    BeagleBone AI Survival Guide V3.18: PWM, I2C, Analog/Digital Read/Write, Vision AI, Video Text Overlays, Audio, & Hardware

     

    Next month (Apr 2020) a new image for the BBAI is supposed to come out and the kernel restriction may change.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • prathamesh12
    0 prathamesh12 over 5 years ago in reply to bender3467

    Thanks Bernard.Hope they change restrictions soon.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 5 years ago

    You might want to post this on the BeagelBoard Google forum.

     

    However, you may what to have a look see at the following:

    https://github.com/beagleboard/cloud9-examples/issues/16

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • prathamesh12
    0 prathamesh12 over 5 years ago in reply to jomoenginer

    Hi

    Issue they are mainly discussing here is with cloud9-examples. There are other examples present in /var/share/ti/examples.

    I can not compile the codes they have provided.

    After degrading kernel, I am able to run pre-compiled files. But still I can't modify existing code or use tidl api in new code and compile it with gcc.

     

    debian@beaglebone:/usr/share/ti/examples/tidl/segmentation$ gcc main.cpp -I/usr/share/ti/tidl/tidl_api/inc/

    In file included from main.cpp:44:0:

    /usr/share/ti/tidl/tidl_api/inc/executor.h:41:20: fatal error: custom.h: No such file or directory

    #include "custom.h"

                        ^

    compilation terminated.

     

    Where can I find this custom.h

     

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Sean_Miller
    0 Sean_Miller over 5 years ago in reply to prathamesh12

    In the cloud9 environment, you need to set the runner to the beagle make file.

    see ya

    sean

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • prathamesh12
    0 prathamesh12 over 5 years ago in reply to Sean_Miller

    Hi sean,

    Cloud9 classification example is running absolutely fine.

    I am trying to compile other examples provided in /usr/share/ti/examples/tidl directory.

    Thanks.

    Prathamesh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • marisol
    0 marisol over 5 years ago

    Hi,

     

    The switching of the Kernel is the problem.

    Get the latest 4.14 and you should be OK. Make sure all the components are the latest as well via 'sudo apt update; sudo apt upgrade -y'.

     

    Hope that helps! image

    Marisol

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 5 years ago in reply to marisol

    Yeah, there is more to the upgrade than just doing the standard apt-get stuff:

     

    See:

    https://beagleboard.org/upgrade

     

    However, this process, as well as the latest release of 4.14, have issues:

    See:

    https://mail.google.com/mail/u/0/?tab=rm&ogbl#search/tidl/FMfcgxwHMZGdmCsHNZJdHgvlmfqVZjNv

    https://github.com/beagleboard/cloud9-examples/issues/28

     

    For the Spring 2020 release, see:

    https://github.com/beagleboard/Latest-Images/issues/22

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube