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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-07-2012, 07:25 AM
|
#1
|
Member
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180
Rep:
|
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
|
|
|
11-08-2012, 06:59 PM
|
#2
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
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.
|
|
|
All times are GMT -5. The time now is 11:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|