LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   SPI bus for upgrading EEprom (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/spi-bus-for-upgrading-eeprom-4175436070/)

ravi_chobey 11-07-2012 08:25 AM

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

theNbomr 11-08-2012 07:59 PM

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 04:47 PM.