Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | loading code through RS-232 to ADS-21062

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

loading code through RS-232 to ADS-21062 - prakash b - Sep 30 9:34:55 2007



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



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: loading code through RS-232 to ADS-21062 - Mike Rosing - Oct 1 8:22:22 2007

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



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )