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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MiniZed Hardware Design i2csensor app source code
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Subscribers 313 subscribers
  • Views 1513 views
  • Users 0 members are here
Related

i2csensor app source code

100bikerglen
100bikerglen over 7 years ago

I'm looking for the source code for the i2csensor app that comes preinstalled in the flash on the minized board. I want to use the ST accelerometer in my own app and the i2csensor source code would be a great a starting point. Can someone point me to the source code? Thanks.

  • Sign in to reply
  • Cancel
  • stefanrousseau
    0 stefanrousseau over 7 years ago

    Are you using Linux or do you need the code for a standalone project?  If you are using PetaLinux and have imported the BSP "minized.bsp" that is posted on the Reference Designs page, you can browse to

    <your project>project-spec/meta-user/recipes-apps/i2csensor/i2csensor/i2csensor.cpp

    It is part of the project that gets built by default.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 7 years ago

    Hello Bikerglen,

    You can find the standalone application source code here.

    https://avnet.egnyte.com/dl/F2GChNQeH4

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • 100bikerglen
    0 100bikerglen over 7 years ago

    Running standalone. The Avnet code on Egnyte is exactly what I need. Thanks!

    Last night I had the whoami register working then ported Adafruit's grains of sand demo to the board this morning: https://twitter.com/bikerglen/status/954425467796307968

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rsiva
    0 rsiva over 6 years ago in reply to 100bikerglen

    Hello Josh

                          I am also interested in using the i2csensor as a base for both standalone and as a Linux app and need the source files (or vivado). I can get the minized.bsp from the reference/tutorial section but

    For the standalone, unfortunately the link given above is broken:

     

    https://avnet.egnyte.com/dl/F2GChNQeH4

    // does not work

     

    Can you pl make it available.

     

    Thanks

     

    Siva R

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 6 years ago in reply to rsiva

    Hi,

     

    i think this is what your looking for.

     

    https://avtinc.sharepoint.com/:u:/t/ET-Downloads/EYZ8xKO661dEng7239eOEqYBsDzLI21GT3jCm2R-YX0NGA

     

    -Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rsiva
    0 rsiva over 6 years ago in reply to jafoste4

    Hello Josh

                      Got it.  the new link works and I downloaded the file.

     

    Thanks much

     

    Siva R

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stefanrousseau
    0 stefanrousseau over 6 years ago in reply to rsiva

    Hello Siva,

     

    If you are interested in both Standalone and Linux source for an I2C sensor, you can use this link:

    https://avtinc.sharepoint.com/:f:/t/ET-Downloads/EjfDz08HMXtLj2gHK9xID1oBwCRIYxh1pONFPETD1zhwYg

    We will soon (probably next week) publish a new design note on using SPI and I2C devices on MiniZed.  Under PetaLinux, this document will cover the use of the spidev and i2cdev drivers, with examples.

     

    Regards,

    Stefan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rsiva
    0 rsiva over 6 years ago in reply to stefanrousseau

    Hello Stefan

                         I downloaded the i2c files for the standalone and Linux from the link. The new tutorial will be fantastic that focusses on the SPI, I2C interfaces on the minized components and will be a starting point for doing more complex things. Pl let know when the reference is officially posted.

     

    Thanks much for your prompt support

     

    Regards

     

    Siva R

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stefanrousseau
    0 stefanrousseau over 6 years ago in reply to rsiva

    An update on the tutorial/reference designs mentioned above: At MiniZed you can now download "Using SPI and I2C on MiniZed for Standalone and Linux".  This covers the use of conventional SPI and I2C interface usage in Standalone mode, as well as the use of the spidev and i2cdev drivers under Linux.  The MiniZed on-board devices (the ST motion&temperature sensor and the Dialog power supply) are used for I2C, while for SPI a VHDL SPI component in the PL is used to control an LED.

     

    Regards,

    Stefan

    • 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