element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Dev Tools
  • Products
  • More
Dev Tools
Forum PiFace Shim RTC not recognised on a RPi B+
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Dev Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 27 replies
  • Answers 5 answers
  • Subscribers 82 subscribers
  • Views 5145 views
  • Users 0 members are here
  • clock
  • shim-rtc
  • rtc
  • timestamp
  • rtcc
  • realtime
  • calendar
Related

PiFace Shim RTC not recognised on a RPi B+

Former Member
Former Member over 10 years ago

PiFace Shim RTC not recognised on a RPi B+

 

New stock Raspberry Pi B+, new stock PiFace Shim RTC, fresh battery, all updates applied

 

Here's the error messages

 

pi@raspberrypi ~ $ hwclock

hwclock: Cannot access the Hardware Clock via any known method.

hwclock: Use the --debug option to see the details of our search for an access method.

 

pi@raspberrypi ~ $ sudo hwclock

hwclock: Cannot access the Hardware Clock via any known method.

hwclock: Use the --debug option to see the details of our search for an access method.

 

pi@raspberrypi ~ $ sudo hwclock -s

hwclock: Cannot access the Hardware Clock via any known method.

hwclock: Use the --debug option to see the details of our search for an access method.

pi@raspberrypi ~ $ sudo hwclock --debug

hwclock from util-linux 2.20.1

hwclock: Open of /dev/rtc failed: No such file or directory

No usable clock interface found.

hwclock: Cannot access the Hardware Clock via any known method.

 

Cheers

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 10 years ago in reply to Former Member +1
    Hi, seems to work now: sudo hwclock -r su 15. helmikuuta 2015 23.54.22 -0.035001 seconds In my case Raspberry's i2c did not work properly and there seems to be some problem in installation script, too…
  • Former Member
    Former Member over 10 years ago in reply to Former Member +1
    Jukka, I want to thank you very much for this splendid piece of work which taught me a lot. Prof. of Physics, CERN collaborator for over 50 years, I have seen very few such things. Jacques Goldberg
  • mconners
    mconners over 9 years ago in reply to mconners +1
    As promised here is my experience setting up a RTC device via I2C on a Ras Pi 2 Enabling RTC on the Raspberry Pi 2 Mike
  • mconners
    0 mconners over 9 years ago in reply to piknot

    Well, take a look at the blog post I made and make sure you have everything in place.

     

    A couple of things to check:

     

    lsmod | grep i2c

     

    that should return

     

    i2c_bcm2708            

    i2c_dev 

     

    type

    grep i2c /boot/config.txt

     

    that should return

     

    dtparam=i2c_arm=on

     

    make sure it doesn't have a # in front of it

     

    after doing

    sudo modprobe i2c:mcp7941x

     

    lsmod | grep i2c

     

    should return

    i2c:mcp7941x

     

    and the previous 2 entries

     

    If any of those do not return the proper results, then there is an issue

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • piknot
    0 piknot over 9 years ago in reply to piknot

    This is where I'm at, it appears that the clock is recognized i2cdetect  shows 6f  at lines  60 and f.  Still trying  to figure  out if software  is configured  correctly.

     

    BTW thanks for your  help

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mconners
    0 mconners over 9 years ago in reply to piknot

    ok, I was just trying to get a baseline

     

    when you do the modprobe

    then do i2cdetect

     

    does it ever show UU in the 6f spot?

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mconners
    0 mconners over 9 years ago in reply to mconners

    also, after the modprobe, when you have determined that the module has loaded

     

    do

     

    ls /dev/rtc*

     

    to make sure it created the device nodes

     

    that should return

    /dev/rtc  /dev/rtc0

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • mconners
    0 mconners over 9 years ago in reply to mconners

    actually, I take that back, it's actually the line

     

     

    echo mcp7941x 0x6f > /sys/class/i2c-adapter/i2c-1/new_device

     

    that creates the device.

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • piknot
    0 piknot over 9 years ago in reply to mconners

    Mike ...

     

    Not sure what I did correctly or in-correctly but I am now getting UU in line 6f (I think I may of had keyboard problems with VNC).  Now the next test for me is to get the correct time set (always fun being a NOOB).

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago

    Please note: must solder shim to RPi! This may not be obvious to some folks,image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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