This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F243 Flash programming problems

Other Parts Discussed in Thread: FTLF240X

Dear All,

I need a detailed explanation why I cannot use SDFlash nor prg2xxx (an old DOS program) to reprogram TMS320F243. First of all I want to explain all of the things I've made.


AIM: We have a little old TMS320F243 board that should be reprogrammed.


ENVIRONMENT IS


CCS: CCS 3.1 

Emulator: XDS510 USB PLUS

Algorithm files: The only algorithms spectrumdigital is released ==> (http://emulators.spectrumdigital.com/utilities/sdflash/c2000/sdf241_f243_v1.zip)

Used Flashing utility: SDFlash and sometimes prg2xx


Please not that : ALL OF THE BELOW WORKS ARE WASTE OF TIME BECAUSE NONE OF TI NOR SPECTRUMDIGITAL DOCUMENTS ARE STABLE AND METHODICAL for this issue. I just want to flash a little old F243 DSP but From 1 week work I cannot do that with a tool and I came to that step. I will program the flash within the code. 

 

DONE WORKS BUT NOT SUCCEEDED 


1. First of all I downloaded flash algorithm files from spectrumdigital. 


2. I worked on algorithm files, examples, bat files and help files to understand them. However the released algorithm files, readme files for F240-f243 are very very complicated. Readme files in this released point a kind of old DOS program named prg2xxx and also the bat files in this released are based on this program. So I thought that this is an old DSP and I should work with prg2xxx not with SDFlash but I was wrong. 


3. I found the latest prg2xxx from spectrumdigital http://emulators.spectrumdigital.com/utilities/sdflash/c2000/SetupPRG2xx_v332.zip


4. When I install this program My XDS510 was not worked. I investigated the situation and I see that the installation of prg2xxx installs an older version of drivers and sdconfig program that are not supported by XDS510 and also deleted XDS510 USB driver. It was very strange for me.


5. So I thought again that prg2xx is not for XDS510 USB. It is for older emulators. And I quit this way and return to SDFlash


6. In algorithm files there is an SDFlash workspace file for XDS510USB named “f243_dsk_xds510usb.sdp". So I was sure that I can use SDFlash with F243 chip with XDS510. Up to this time I'm not sure that this item can use XDS510 USB or can be used for F243 


7. But where is the algorithm for programming. Erase, Clear&erase, test and verify have their own folders but not for programming. 


8. So I decided to understand all of the procedures over internet for one week. And I'm now an expert about the sub programs. 

Used algorithms in SDFlash: 

To erase the CHIP: C2XX_BCX.OUT

To verify the chip: c2xx_ver.out

To program the chip : Source\C2XX_BPX.OUT (also I select my own  out file to program)

Board file: (If not selected I can not reset the chip via SDFlash) : ccBrd024x.dat


Result : 

Erase is OK. When I erase a filled chip I looked in CCS3.1 and all of the bytes within 0x0000-0x1FFFF (Flash region) were 0xFFFF

Programming and also verifying is not OK:

It says programming failed at address 0x00000000

And also gives an warningmessage about CSM place. Security password MAY not in expected state. I shoul look at the latest readme files for this issue

(Please do not hang on this CSM warning I' m nearly sure that this is a GENERAL warning  SDFlash gives when It couldn't programme or verify the chip.

And plus erasing flash was OK. If there is a CSM problem erase would be a problem too. )

 

MY QUESTIONS

1. Can I use XDS510 USB Plus with SDFlash to flash an F243 DSP or should I find an older emulator and use with prg2xxx


2. If I can erase F243, I should program the chip but why I couldn't. Should I have to change and compile the programming algorithm files (Source\C2XX_BPX.OUT) with F243 flash addresses? or just missing something ? 


3. Are programming algorithms and verifying algorithms general; not dependent on flash types (Source\C2XX_BPX.OUT). I'm asking these because I thought that these files are for TMS320F240 and flash addresses  and flash size which may defined in algorithm codes should be changed and recompile for F243 


4. Why is the SDFlash giving a warning about CSM feature. I know c28 series have this CSM but I'm not sure F243 has the CSM feature. There is no article about the CSM in TMS320F243 document.  Actually this gives me a clue. If there is no CSM feature in F243 and SDFlash gives this error,  I think the version of SDFlash I used must be older one too. My SDFlash is a new one that doesn't support F243 it supports for C28 series. "IS THIS COMMENT IS RIGHT" 

 

5. TI Suggestet  C2808 instead of F243. May be I can use the flashing tools for C2808 with F243 also. Can I do that or in general Do you know any other free program for F243 flashing

 

The article was too long but I should make everything clear. I hope my comments don't mix you.

 

Waiting for your urgent replies

Thanks for your helps

 

 

 

  • Please be patient with the F243 documentation, it's a very old device and its documentation and tools cannot be aligned with the F2800 standards.

    You can refer to the product page for the documentation, the datasheet is the best starting point for questions like the one on CSM:
    http://focus.ti.com/docs/prod/folders/print/tms320f243.html

    It didn't have any password protection in flash.

    The F24 flash programming tools are on: http://focus.ti.com/docs/toolsw/folders/print/ftlf240x.html

    You're going to have a hard time with an XDS510USB Plus.  That emulator didn't exist at the "F243 times", it's probably not supported by most of the old programming tools like sdflash by Spectrum Digital.

    There is no "flash plugin" for F243, so you cannot use CCS directly to program the flash.

    The F243 didn't have a rom bootloader, so you cannot use a serial port programmer, unless you installed a bootloader on the dsp in advance.

    I might be wrong, I worked with the F243 many years ago, I might have forgotten something, but I don't remember any alternative to an XDS510PP emulator + Win95 + SDFLASH. This emulator is still available from SDI.

    Hope this helps a bit

    Best regards
    Massimo

     

  • The problem was solved.

    Thanks for your assistance Massimo, It was a satisfying answer.

    I missed an important point for that device and It was VCCP Flash programming voltage pin :) F243 has a flash programming voltage pin that should be drived by a 5V. When I connected this pin to 5V everything worked fine. (Clear, erase, program and verify routines) So I can say that XDS 510 USB PLUS can be used to flash this old chips.

    Sometimes XDS510USB PLUS hangs and can not program or erase the device but  when you encountered such a situation, just do an erase procedure, reset F243 and then reprogram will work.

    Here are the items that I used When I do this old procedure. I hope thes helps other people

    1. Emulator : XDS510 USB PLUS

    2. CCS Version : 3.1

    2. SDFlash Version: 1.64 

    3. Driver: Do not use C2000 latest driver from spectrumdigital if you use XDS510USB PLUS. Because The latest driver for C2000 doesn't support PLUS. It supports XDS510USB. You should use general latest driver for your CCS

    3. Algorithms : 

         You can use below links. Two of them have the same algorithms. In my opinion second one is more useful than the first one. But the algorithms are same.

    http://emulators.spectrumdigital.com/utilities/sdflash/c2000/sdf241_f243_v1.zip 

    http://emulators.spectrumdigital.com/utilities/sdflash/c2000/SetupSDFlash_v012.zip

    4. A good explanation about flash programming of F240 (So can be used for F243) is in spectrumdigital SDFLASH Freqently asked questions. However; Do not use SDFLash FAQ in spectrumdigital step by step. Because steps in this page should be different order. 

    5. You can not use prg2xx with XDS510 USB PLUS or XDS510 USB. You will see too many BAT files, readme files that are written based on prg2xx when you download algorithms but again these are for older programming systems like Massimo says above (XDS510PP emulator + Win95 + SDFLASH)


    6. Don't forget to apply a 5V to VCCP flash programming voltage pin. If you don't you can only erase the flash content. Programming will not work.

     

     

     

     

     

  • Hello everyone. I have the same problem with the micro dsp320f241. It is the same micro that dsp320f243.
    I tried to get the SDflash1.64 but on the website of spectrum Driver Release 3.01.03 [31-May-2005] only appears with version 1.63.
    Can you please explain the steps for programming? I try with Windows XP SP3.
    Thank you