LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-07-2012, 07:25 AM   #1
ravi_chobey
Member
 
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,

Regards,
Ravi
 
Old 11-08-2012, 06:59 PM   #2
theNbomr
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.
 
  


Reply


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 06:49 AM
Can an EEPROM Be Flaky? Super TWiT Linux - Hardware 9 06-02-2010 03:32 PM
How to send an initialization code for AMOLED over SPI Bus? sunr2007 Linux - Embedded & Single-board computer 0 05-05-2009 06:13 AM
TV card, no sound, eeprom invalid, no eeprom present (err=-121) cncman Linux - Hardware 1 08-05-2006 07:24 AM
LTSP - Need EEPROM? Can't use BIOS? lazlow69 Linux - Hardware 5 02-27-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:03 PM.

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