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.

SDFlash Erase/Prog fails with F28027

Hello I am currently using a F28027 on a product PCB.

I am able to erase/program flash with the CCSv4 when entering debug mode, but I am not able to erase/program flash with the SDFlash utility. I always get the following message ERR: Erase flash failed WARNING: THE CONTENTS OF THE SECURITY PASSWORD LOCATIONS IN THE FLASH MAY NOT BE IN THE EXPECTED STATE. FOR..... However it does not seem to be the case since I still can program it with the CCSv4.

I am using:

- XDS510LC emulator

- SDFlash Version 1.65.00.   Driver: sdgo28xusb.dvr version 3.68.00.   Board file: ..\specdig\sdflash\myprojects\tif2802x_v1_0\ccBrd028x.dat

- Erase tab is Timeout: 3000 and User Options 1: 000F

I have tried few Erase.out algo files like ..\specdig\sdflash\myprojects\tif2802x_v1_0\f2802x\flash28\config2\Debug\SDFlashConfig2_Erase.out and few others, with same failing results In first version of this product, we were using the F2809 dsp and I was able to do the erase/program with the SDFlash with success.

Since the CCSv4 is able to erase/program the dsp, I am still believing that there is something wrong in my use of the board file or drive, or algo, but can't find it. Do you have any suggestions / ideas ?

* As additionnal information the SDFlash documentation says that the algorithm files located in ..specdigsdflashmyprojectstif2802x_v1_0f2802xflash28config2 are made for 60MHz. I am confused since when I open the ..specdigsdflashmyprojectstif2802x_v1_0f2802xflash28config2includeFlash2802x_API_Config.h I see the selection of 40MHz. Could this be the issue ? (both files, from config1 and config2 are the same, what surprises me).  I tried to recompile the Erase project with the right 16.667 constant for 60MHz operation and it does not change the behaviour when using the new Erase.out in the SDFlash utility.*

Thanks

Pat

  • Hi guys.

    Since I am still stuck with this problem, here is updated information

    I have tried the SDFlash application with the USB docking station and a F28027 piccolo ControlCard on it, and it works perfectly.  So the problem is only with our testbench (used to test pcb and program dsp).  I am trying to compare hardware connections between the two setups, and maybe investigating deeper the clock properties to find any issue with that.

    Summary

    old PCB with F2809 and TestBench vA and CCSv4:  OK

    old PCB with F2809 and TestBench vA and SDFlash:  OK

    new PCB with F28027 and TestBench vB and CCSv4:  OK

    new PCB with F28027 and TestBench vB and SDFlash:   ERASE FAIL

    USB Docking Station with F28027 Piccolo Control Card and CCSv4: OK

    USB Docking Station with F28027 Piccolo Control Card and SDFlasher: OK

     

    Still investigating...

    Pat

  • Pat,

    Is the device already locked when you trying to program using SDFlash? Did you make sure whether you are able to reset the DSP with SDFlash?

    The following link should also be very useful for your debug SDFlash FAQ (http://emulators.spectrumdigital.com/utilities/sdflash/sdflash_faq.html)

    The 40Mhz config file is for devices like F28021, F28020, F280200 devices. So, use config2 which is configured for 60Mhz instead of 40Mhz.

    Regards,

    Manoj

  • Hello

    Device is not locked, I can reset it but not erase it.

    I have read all these FAQ...  and much more.  Thanks
    As I said, I have tried with config2 project witch was configured at 40MHz.  I changed it for 60MHz.
    Pat

  • Hi,

    I have exactly the same problem.
    The whole process succeds with CCS, but with SDFlash I get that error message.
    If I choose only verify, the verify runs with succes.
    I think the problems are related to the provided out-files (erase.out etc.).

    Does anyone got a solution for that problem by now?

    @ Pat: Did you found a solution?

     Thanks, Tobi