Forums

flash TMS320F2812

Started by Yvo June 30, 2005
I want to program the flash memory from a program running into the DSP.  Is 
this possible and where can I find information about the way to do this?

It seems the internal bootloader can load a program from some ports but as I 
see is, the program is stored in RAM and not in flash as the JTAG does.  Am 
I right about this?

Tnx 


Yvo wrote:

> I want to program the flash memory from a program running into the DSP. Is > this possible and where can I find information about the way to do this? > > It seems the internal bootloader can load a program from some ports but as I > see is, the program is stored in RAM and not in flash as the JTAG does. Am > I right about this? > > Tnx > >
You must use code from TI to do this -- most flash memory products have the program & erase algorithms embedded in hardware; TI gives you code that you must compile into your application. Search around in their website & you should find it. The algorithm is stored in flash, but when it's actually run the critical functions are copied to RAM. -- ------------------------------------------- Tim Wescott Wescott Design Services http://www.wescottdesign.com
On Thu, 30 Jun 2005 08:13:44 -0700, Tim Wescott <tim@seemywebsite.com>
wrote in comp.dsp:

> Yvo wrote: > > > I want to program the flash memory from a program running into the DSP. Is > > this possible and where can I find information about the way to do this? > > > > It seems the internal bootloader can load a program from some ports but as I > > see is, the program is stored in RAM and not in flash as the JTAG does. Am > > I right about this? > > > > Tnx > > > > > You must use code from TI to do this -- most flash memory products have > the program & erase algorithms embedded in hardware; TI gives you code > that you must compile into your application. Search around in their > website & you should find it. > > The algorithm is stored in flash, but when it's actually run the > critical functions are copied to RAM.
In addition to what Tim said, you can get a stand-alone program for loading the flash with the JTAG debugger, without going through Code Composer Studio. Go to http://www.spectrumdigital.com and download it. -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
"Tim Wescott" <tim@seemywebsite.com> wrote in message 
news:11c8317i8umlc48@corp.supernews.com...
> Yvo wrote: > >> I want to program the flash memory from a program running into the DSP. >> Is this possible and where can I find information about the way to do >> this? >> >> It seems the internal bootloader can load a program from some ports but >> as I see is, the program is stored in RAM and not in flash as the JTAG >> does. Am I right about this? >> >> Tnx > You must use code from TI to do this -- most flash memory products have > the program & erase algorithms embedded in hardware; TI gives you code > that you must compile into your application. Search around in their > website & you should find it. >
I've been browsing for a couple of days. Broken links is the farest I can get.
> The algorithm is stored in flash, but when it's actually run the critical > functions are copied to RAM. >
This won't be to hard to do ;-)
> -- > ------------------------------------------- > Tim Wescott > Wescott Design Services > http://www.wescottdesign.com
"Jack Klein" <jackklein@spamcop.net> wrote in message 
news:6ga9c11sfqao50e2kh72nlogpckg6oc2fn@4ax.com...
> On Thu, 30 Jun 2005 08:13:44 -0700, Tim Wescott <tim@seemywebsite.com> > wrote in comp.dsp: > >> Yvo wrote: >> >> > I want to program the flash memory from a program running into the DSP. >> > Is >> > this possible and where can I find information about the way to do >> > this? >> > >> > It seems the internal bootloader can load a program from some ports but >> > as I >> > see is, the program is stored in RAM and not in flash as the JTAG does. >> > Am >> > I right about this? >> > >> > Tnx >> > >> > >> You must use code from TI to do this -- most flash memory products have >> the program & erase algorithms embedded in hardware; TI gives you code >> that you must compile into your application. Search around in their >> website & you should find it. >> >> The algorithm is stored in flash, but when it's actually run the >> critical functions are copied to RAM. > > In addition to what Tim said, you can get a stand-alone program for > loading the flash with the JTAG debugger, without going through Code > Composer Studio. Go to http://www.spectrumdigital.com and download > it. >
JTAG would be nice if the pins were available from outside which is not the case in the design. Due to design, the case cannot be opened after installation. The only option is through the serial port as it is used for input/ouput of data. I'd make the bootloader poll for a sequence of characters and start the 'real' program.
> -- > Jack Klein > Home: http://JK-Technology.Com > FAQs for > comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html > comp.lang.c++ http://www.parashift.com/c++-faq-lite/ > alt.comp.lang.learn.c-c++ > http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html