Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
hai friends,
Iam new to this field.
I have some doubts regarding loading code into ADSP-21062 or any processor through RS-232
port.
1.assume some boot code is there in EEPROM.
2.that EEPROM has to be reloaded from RS-232, via ADSP.
which format (HEX,ascii,binary or other format) sholud i load code into EEPROM from
RS-232,and in ADSP, how should I read that code and convert it into useful format for writing
into EEPROM?. after writing how will it run from the point from reloaded code only?.
I want to load different types of programs through RS-232 to ADSP without removing EEPROM for
each program.
how should i do this?
presently Iam able to connect ADSP board through RS-232, sending some characters through
HYPERTERMINAL, and displaying, vis a vis. but for now for each program iam removing EEPROM and
loading HEX file by help of other deivce, and placing it into the card.
so i want to eliminate this removal of EEPROM for each program. I want to load directly
through RS-232. so help me in this regard.
if anyone had sample piece of code, please send, or explian me clearly how should i solve
this problem?
thanks in advance to all of you,
prakash
On Sat, 29 Sep 2007, prakash b wrote: > hai friends, > Iam new to this field. > I have some doubts regarding loading code into ADSP-21062 or any processor through RS-232 port. > > 1.assume some boot code is there in EEPROM. > 2.that EEPROM has to be reloaded from RS-232, via ADSP. > which format (HEX,ascii,binary or other format) sholud i load >code into EEPROM from RS-232,and in ADSP, how should I read that code and >convert it into useful format for writing into EEPROM?. after writing how >will it run from the point from reloaded code only?. There are lots of choices. You can dump an ELF in binary if you write your own transmitter. Or you can use Motorola or Intel Hex formats (widely used in all EPROM programmers). In any case - the code on the 21062 needs to know how to deal with the data. Pick any one you like and burn the EEPROM to deal with that format. > I want to load different types of programs through RS-232 to ADSP >without removing EEPROM for each program. > how should i do this? You need a command structure, just like an EZ-Kit comes with. When the 21062 wakes up, have it look for commands on the serial port. When it gets a "parse file" command, it can download the text, convert it to binary and store it in ram. When it gets a "go" command, it can jump to the place it just loaded code to (or you can specify an entry point in the go cammnd if you like. > presently Iam able to connect ADSP board through RS-232, sending some >characters through HYPERTERMINAL, and displaying, vis a vis. but for now >for each program iam removing EEPROM and loading HEX file by help of >other deivce, and placing it into the card. > so i want to eliminate this removal of EEPROM for each program. I >want to load directly through RS-232. so help me in this regard. > if anyone had sample piece of code, please send, or explian me >clearly how should i solve this problem? This is a very common attribute of all embedded systems. I/O gets complicated when you can change the program that runs. You can get very tricky and allow the EEPROM to be reprogrammed so that it will automaticly boot to the code previously loaded, but check for commands now and then so you can reprogram the system and reburn the EEPROM. Just make sure you leave in the code that allows you to change the code! Patience, persistence, truth, Dr. mike