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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog Add external SPI Flash Memory to Raspberry Pico - 1: hardware
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 19 Nov 2022 3:46 PM Date Created
  • Views 8907 views
  • Likes 9 likes
  • Comments 7 comments
Related
Recommended
  • raspberry
  • pico
  • pico_m25
  • pico_eurocard

Add external SPI Flash Memory to Raspberry Pico - 1: hardware

Jan Cumps
Jan Cumps
19 Nov 2022
Add external SPI Flash Memory to Raspberry Pico - 1: hardware

A projects to learn the SPI API of the RP2040 C SDK, and to use it to control an external Flash IC. In this post, the schematic. 

image

ST Micro M25P16-VMN6P NOR Flash 16MBit

That's the full name of the IC (datasheet). It's a common one - I used a similar one with VHDL during the Summer of FPGA. It talks SPI, with two additional lines for Write Protect and Hold functionality.

image

image

image source: data sheet

Pico pins

pin IC function PICO function GPIO PICO pin
1 S# SPI1 CSn IO9 12 has to be different than the one used by the SD Card, if sharing SPI1
2 DQ1 SPI1 RX IO12 16
3 W# GPIO IO14 19
4 VSS ground 38
5 DQ0 SPI1 TX IO11 15
6 C SPI1 SCK IO10 14
7 HOLD# GPIO IO15 20
8 VCC 3V3 (OUT) 36

I used the EuroCard dev board. The IC is soldered on the SOIC-8 proto area, and the wiring done at the underside. I tapped VSS and VCC from the rotary encoder pads, because they were conveniently nearby.

image

To make probing easy, I also soldered headers.

Next blog: software.

link to all posts in this series

  • Sign in to reply
  • Jan Cumps
    Jan Cumps over 2 years ago in reply to Jan Cumps

    A full conversation:

    image

    command: 9Fh
    manufacturer identification: 20h
    memory type: 20h
    memory size: 15h

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago

    I have troubles writing a blog, but the firmware works. Here's a capture of checking the IC's Read Identification (RDID):

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago in reply to colporteur

    sell your tanks. SPI is beginner material.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago

    No success yet. I'm trying to read the 8-bit manufacturer identification of the external SPI EEPROM. Good news is that the SPI traffic looks healthy.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • colporteur
    colporteur over 2 years ago

    JC you're so deep I need tanks. I think it is best I just snorkel on the surface for now. I am excited about your video link. Going to do the intro shortly.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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