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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
RoadTest Forum Comments for using RPi with SPI memory
  • Blogs
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Sub-Groups
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 22 replies
  • Answers 2 answers
  • Subscribers 2729 subscribers
  • Views 4512 views
  • Users 0 members are here
  • ram
  • raspberry
  • microchip
  • pi
  • spi
  • sram
Related

Comments for using RPi with SPI memory

clem57
clem57 over 11 years ago

image

Here are my notes so far. Any comments or issues please let me know. I think I am on the right track.

  • Sign in to reply
  • Cancel
Parents
  • clem57
    0 clem57 over 11 years ago

    Ok!

     

    I have learned that I should use pins 24/26 as CE0/CE1 instead of pin15(GPIO 22) because this alleviates me writing extra code. I plan on using Python SPIDEV from GitHub...

     

    Thanks for Elektor Academy - Hardware Hacking the RPi pointing this out. Excellent if you want the details image

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

    Question: What to do with HOLD pin? I need it to stayhHigh. Also how to make the CS pin be high but go low when transmitting?

     

    Thanks,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bbolo1
    0 bbolo1 over 11 years ago in reply to clem57

    Hi Clem,

     

    Use a pull-up resistor (10K should be just fine) with the HOLD pin.

    The CS handling is done by the driver.

    I found an example here involving MCP3008. This chip uses an active low chip select as well as the 23K256. Good luck!

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

    Sure I will sum this up experiences and all. Thanks @Michael Kellett for kind words of encouragement image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 11 years ago in reply to clem57

    I'm glad it's working - how fast are you running the spi clock and how long are the wires ?

     

    Any chance of a picture ?

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 11 years ago in reply to michaelkellett

    Well guess what...

    I decided to pull everything and remount changing colored wires and new positions and the thing is working! image So cannot tell what is wrong!?! I have a few bit flips, but that may be timing or something. But progress is being made. Thanks for the help. Next is a code rewrite/cleanup because so much extra stuff

     

    Clem

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

    Well post the code here and I'll see if I can pick my way though it.

     

    If you are bit banging the SPI you can add logging features to the code to trace each pin state as it runs.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 11 years ago in reply to bbolo1

    HI @bbolo1

         No scope (Yet), but have voltmeter and was thinking to use over SO/MISO and ground. It is also a current meter as well. Will do some I2C next after this works.

     

    Thanks,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 11 years ago in reply to clem57

    You've now reached the stage where I would connect the 4 channel scope or a logic analyser !

     

    Do you have either ?

     

    If not you can try posting your code and we'll see if we can pick our way through it.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • michaelkellett
    0 michaelkellett over 11 years ago in reply to clem57

    You've now reached the stage where I would connect the 4 channel scope or a logic analyser !

     

    Do you have either ?

     

    If not you can try posting your code and we'll see if we can pick our way through it.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube