SPI bus for upgrading EEprom
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,
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.
|All times are GMT -5. The time now is 12:20 PM.|