Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 11-07-2012, 08:25 AM   #1
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Rep: Reputation: 30
Smile SPI bus for upgrading EEprom

Hi All,

I want to load a . hex file from my ARM RFS on to external eeprom, which is controlled by 8051 based controller.

The condition is like, there is a pin called reset_n which i need to toggle to make that device in programmable mode and after that i have to write it onto EEprom(externally connected to 8051 modules using SPI bus).

Please let me know, how can we load that .hex file from ARM RFS to EEprom.

Thanks a lot,

Old 11-08-2012, 07:59 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
What do you mean by 'external' EEPROM? External to the ho51 chip? External to the board? Socketed on the 8051 board? If the 8051 board exposes the SPI bus to which the EEPROM is connected, it may be possible to drive the SPI interface from the ARM processor. Do both boards use the same voltage logic levels (3.3V logic doesn't play at all well with 5V logic). What is the make/model of the EEPROM? What make/model ARM board?

You will need to have some code to interpret the hex file. Do you know what format the file is in? The most common are Intel Hex record format, and Motorola S record format. Post a fragment here, and I can tell you if you don't know. I can explain how to decode those two formats, as well, or they are well documented in the Interweb land.

You will need to use the SPI interface. I think there is a common driver with API for that, but I'm not sure.

--- rod.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dbus System bus and Session bus mainloops deimus Linux - Distributions 0 08-20-2010 07:49 AM
Can an EEPROM Be Flaky? Super TWiT Linux - Hardware 9 06-02-2010 04:32 PM
How to send an initialization code for AMOLED over SPI Bus? sunr2007 Linux - Embedded & Single-board computer 0 05-05-2009 07:13 AM
TV card, no sound, eeprom invalid, no eeprom present (err=-121) cncman Linux - Hardware 1 08-05-2006 08:24 AM
LTSP - Need EEPROM? Can't use BIOS? lazlow69 Linux - Hardware 5 02-27-2003 04:52 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration