Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • RF and Microwave
    • Video
    • Power Management
    • Precision ADCs
    • FPGA Reference Designs
    • Linux Software Drivers

    Product Forums

    • Amplifiers
    • Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • A2B
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Reference Designs
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Upcoming Webinar - Design High Performance Power Systems with Ultralow Noise Technology

    This webinar will feature ADI’s latest Silent Switcher® 3 regulators and Ultralow-noise LDOs, perfect for applications with stringent noise requirements...

    Places

    • ADI Education Home
    • ADI Webinars
    • GMSL U
    • StudentZone (Analog Dialogue)
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Upcoming Webinar: Simplify High-Accuracy Instrumentation Design with Latest Precision Data Converters
    • Upcoming Webinar - Design High Performance Power Systems with Ultralow Noise Technology
    • Upcoming Webinar: µModule Solution for Intelligent Motion Control
    • Accelerating Embedded System Development with CodeFusion Studio™︎
    • Power Industrial PC Solutions for Robust Intelligent Edge Computing
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ285 about analog voltmeter expertise

      1. Quote of the week: " If you think nobody cares if you're alive, try missing a few loan payments " - unknown Source: Wikimedia 2. New quiz...

    View All

    What's Brewing

      Read the Safety in Layers: Why a Hybrid Approach Works Blog and Test Your Knowledge

      Think you understand ISO 26262 Compliance ? Test your knowledge with our quick quiz , based on the blog " Safety in Layers: Why a Hybrid Approach Works...

    View All

    Places

    • Community Help
    • Logic Lounge
    • Super User Program

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    How to Generate a Custom Profile for Optimal System Performance

    In the world of software-defined radio (SDR) and high-performance RF systems, properly configuring transceivers is essential for achieving optimal system...

     

    Can AI Unlock the Future for Condition-Based Monitoring at the Edge?

    In an era when equipment and energy costs are rising, industries are under increasing pressure to optimize their operations and reduce expenses. One effective...

    Latest Blogs

    • What Makes Field Bus Communication Unique
    • An Interesting Power Supply Monitoring Example from a Functional Safety Standard
    • Breaking the Barriers – Why Buildings Need DAS for Cellular Connectivity: Part 1
    • Safety in Layers: Why a Hybrid Approach Works
    • What Are the 3 Essential RF Modulation Techniques You Need to Know?
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Internet of Things (IoT)
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Security Solutions
    • Sensor Interfaces
    • SmartMesh
  • Partners

    Partner Forums

    • Boston Engineering
    • PalmSens
    • Richardson RFPD
    • Tri-Star Design, Inc.

    Partner Libraries

    • Calian, Advanced Technologies Library
    • Clockworks Signal Processing Library
    • Colorado Engineering Inc. (DBA CAES AT&E) Library
    • Epiq Solutions Library
    • Fidus Library
    • VadaTech Library
    • Vanteon Library
    • X-Microwave Library
EngineerZone
EngineerZone
Linux Distribution for Blackfin
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
Linux Distribution for Blackfin
  • Processors and DSP
  • Software and Development Tools
  • Linux Distribution for Blackfin
  • Cancel
Linux Distribution for Blackfin
Documents 2007-04-03 05:21:47     SPI eeprom write read
  • Forums
  • Docs/FAQs
  • Members
  • Tags
  • More
  • Cancel
  • +Documents
  • +2013R1 Linux release for Blackfin: FAQ
  • +2013R1: FAQ
  • +AD5700: FAQ
  • +ADI test script: FAQ
  • +bf537 SPI Bus: FAQ
  • +BF609: FAQ
  • +BF70x processor: FAQ
  • +bfin-elf-libstdc++-4.3: FAQ
  • +bfin-elf: FAQ
  • +bfin-uclinux-libstdc++-4.3: FAQ
  • +Blackfin Linux Projects: FAQ
  • +Blackinfin Linux: FAQ
  • +build toolchain: FAQ
  • +CPLB fault or SIGABRT: FAQ
  • +DAS U-BOOT FOR BLACKFIN: FAQ
  • +Default ADI release: FAQ
  • +Flash the uImage into Flash: FAQ
  • +gas test: FAQ
  • +gcc-4.3 ICEs: FAQ
  • +gcc.c-torture/execute/memset-2.c: FAQ
  • +gcc.dg/trampoline-1.c test: FAQ
  • +gcc/g++ test: FAQ
  • +gcc/g++ testcase: FAQ
  • +GDB commands: FAQ
  • +gdb.base/sigall.exp: FAQ
  • +gdb.cp/userdef.exp: FAQ
  • +gdb.gdbtk/c_variable.exp: FAQ
  • +GDB: FAQ
  • +gdb: symbol: FAQ
  • +gdbproxy: FAQ
  • +GNU TOOLCHAIN: FAQ
  • +How to load Linux: FAQ
  • +ldr-utils: FAQ
  • +libstdc++-4.3 21_strings/basic_string/capacity/char/18654.cc test: FAQ
  • +LOOP: FAQ
  • +mcpu: FAQ
  • +Parent Document for U-Boot Bug Archive: FAQ
  • +Parent Document for U-Boot Bug Forum Archive: FAQ
  • +Parent for all content moved from GNU Archive: FAQ
  • +prepare_target_solibs: FAQ
  • +SDP-B: FAQ
  • +signal 11: FAQ
  • +sim binutils: FAQ
  • -SPI eeprom: FAQ
    • 2007-04-03 05:21:47     SPI eeprom write read
  • +svn head u-boot build: FAQ
  • +test libmudflap: FAQ
  • +toolchain-regtest -r: FAQ
  • +toolchain-regtest: FAQ
  • +trunk head gdbproxy: FAQ
  • +trunk toolchain: FAQ
  • +u-boot with UART: FAQ
  • +u-boot: FAQ
  • +uClinux kernel: FAQ
  • +uClinux: FAQ
  • +Upgrade from 3801 to 3852: FAQ
  • +VDSP: FAQ

2007-04-03 05:21:47     SPI eeprom write read

2007-04-03 05:21:47     SPI eeprom write read

Richard Aldrich (UNITED KINGDOM)

Message: 23979    I'm using the latest SVN versions of uboot, toolchain and uclinux (updated and compiled yesterday).

I followed the document http://docs.blackfin.uclinux.org/doku.php?id=accessing_serial_nor_flash_with_u-boot

to attempt to write to SPI flash (ST M25P64). I call the eeprom write command, and it appears to works, then I read it back to another memory location.

However, when I do the memory compare, it says that 0 bytes are the same (output is something like:

cmp.b 0x1000000 0x2000000 $(filesize)

byte at 0x01000000 (0x40) != byte at 0x02000000 (0x00)

Total of 0 bytes were the same)

where 0x2000000 is the location I have read the eeprom to.

Does anyone have any ideas on what I should investigate next?

QuoteReplyEditDelete

2007-04-04 00:37:59     Re: SPI eeprom write read

Mike Frysinger (UNITED STATES)

Message: 24009    this is a custom board right ?  i would first verify memory is sane by using the u-boot "mtest" command ... then try writing out all like 0x00 and 0xFF to the flash and then read it back out and use md.b to verify the location you read back out matches

QuoteReplyEditDelete

2007-04-04 09:01:50     Re: SPI eeprom write read

Richard Aldrich (UNITED KINGDOM)

Message: 24039    Ok, I am now able to write to and read from the SPI memory (its on a BF 537-stamp board). My problem came down to the wire length / type that had been used to connect the memory to a header.

I am able to load the uImage and read it back, and boot it and this process works well. All the bytes are identical.

However, I now want to investigate booting the u-boot from SPI. What I understand is that I compile u-boot with the

#define BFIN_BOOT_MODE        BF537_SPI_MASTER_BOOT

in the file found at: u-boot/include/configs/bf537-stamp.h

I do this, and then I have written the u-boot.ldr image to the eeprom, at offset 0x0.

I then switch SW16 to 3, and power up. ...nothing happens, I don't get anything back in minicom.

Am I missing a stage along the way? Btw, the board is Rev 0.2

QuoteReplyEditDelete

2007-04-04 14:52:21     Re: SPI eeprom write read

Mike Frysinger (UNITED STATES)

Message: 24062    nope, the steps you've listed are correct ...

in order to take one step out of the equation though, you should try using one of our tested releases:

http://blackfin.uclinux.org/gf/project/u-boot/frs

we have a SPI LDR for u-boot there for the BF537-STAMP ... that should eliminate question of whether it's a software (compiling u-boot) or hardware (using correct settings)

QuoteReplyEditDelete

2008-04-01 10:20:03     Re: SPI eeprom write read

Hadi Boulfelfel (FRANCE)

Message: 53456    I think it's :  #define BFIN_BOOT_MODE        BF537_BOOT_SPI_MASTER     not     BF537_SPI_MASTER_BOOT

TranslateQuoteReplyEditDelete

2008-04-11 10:26:53     Re: SPI eeprom write read

Pafone Lee (CHINA)

Message: 54093    There is also a difference between the docs and the u-boot source code

in http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:release-notes:2007r1

<pre class="code">// ADSP-BF533

#define BF533_BYPASS_BOOT 0x0001

#define BF533_PARA_BOOT 0x0002

#define BF533_SPI_BOOT 0x0004 but in u-boot2008-R1-1.1.6  source code /include/configs/bf533-ezkit.h

#define BFIN_BOOT_MODE       BFIN_BOOT_BYPASS

I don't know whether it is a mistake.

TranslateQuoteReplyEditDelete

2008-04-11 11:58:54     Re: SPI eeprom write read

Mike Frysinger (UNITED STATES)

Message: 54096    there is no difference nor error with the documentation

you're comparing old release notes against a newer release.  that'll never work.

QuoteReplyEditDelete

  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue

Get the Latest News

Stay up to date with our latest news and articles about Analog Devices' products, design tools, trainings, and events.

Sign Up Now
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings
沪ICP备09046653号-1

©2024 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue

Get the Latest News

Stay up to date with our latest news and articles about Analog Devices' products, design tools, trainings, and events.

Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings
沪ICP备09046653号-1

©2024 Analog Devices, Inc. All Rights Reserved