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.

CCS/TMS320F28027: TMS320F28027

Part Number: TMS320F28027
Other Parts Discussed in Thread: UNIFLASH, CONTROLSUITE

Tool/software: Code Composer Studio

Hi, I am getting the error when programming the piccolo:

C28xx: Flash Programmer: Error encountered when writing to flash memory
C28xx: File Loader: Memory write failed: Unknown error
C28xx: GEL: File: C:\Users\M\workspace_v7\Audio_ProjectNew\Debug\Audio_ProjectNew.out: Load failed.

I then used UniFlash to delete the flash and tried to verify the image from there and I get:

C28xx: File Loader: Verification failed: Values at address 0x3D7800@Program do not match Please verify target memory and memory map.

Below is my memory map:

  • Hi Kevin,

    This is for the first time you tried to program the chip or was this chip programmed multiple times before?

    Regards,
    Gautam
  • Hi Gautam,

    What I am trying to do is to implement FFT into the F28027. As the F28027 only takes fixed point values, I can only do fixed point FFT. I wish to send my ADC readings to the FFT (seems like a difficult task that I thought it would be.. just because I have to change the memory map)

    I've implemented the FixedPointLib from ControlSuite.

    To answer your question, I did get another F28027 and was able to reprogram it. However, when I send my ADC values to the FTT function, it would throw the exact same error.

    C28xx: Flash Programmer: Error encountered when writing to flash memory

    C28xx: File Loader: Memory write failed: Unknown error

    C28xx: GEL: File: C:\Users\M\workspace_v7\Audio_ProjectNew\Debug\Audio_ProjectNew.out: Load failed.

    Would it be possible if I could send you my files?

  • Hi Kevin,

    Could you please attach your project? I will check on my board.

    Thanks,

    Katta

  • Here it is. Let me know if you have any problems.

  • Hi,

    When you mention ->"However, when I send my ADC values to the FTT function, it would throw the exact same error."
    Do you get this error while running the code? Or while loading the code to the board.

    If it is while running the code, when do you see this error? Is it while calling "RFFT32_brev"?

    Was there a reason why the computational buffer is not aligned to 2N words boundary?

    Thanks,
    Katta
  • Hi Kevin,

    While going through your project I found that in memory map file -> .reset is allocated to 0x3D78000 which is OTP location.
    This allocation happened as you missed adding .reset in the linker command file.

    -------------------------------------------------------------------------------------------------------------
    SECTION ALLOCATION MAP

    output attributes/
    section page origin length input sections
    -------- ---- ---------- ---------- ----------------
    .reset 0 003d7800 00000002
    003d7800 00000002 rts2800_ml.lib : boot28.obj (.reset)

    FFTtf 0 003f0000 00001800
    003f0000 00001800 c28x_fixedpoint_dsp_library.lib : FFT32_init.obj (FFTtf)
    -------------------------------------------------------------------------------------------------------------

    Is it done intentionally?

    If not, add this line in the linker command file.
    .reset : > RESET, PAGE = 0, TYPE = DSECT

    With the memory map will become

    -------------------------------------------------------------------------------------------------------------
    SECTION ALLOCATION MAP

    output attributes/
    section page origin length input sections
    -------- ---- ---------- ---------- ----------------
    FFTtf 0 003f0000 00001800
    003f0000 00001800 c28x_fixedpoint_dsp_library.lib : FFT32_init.obj (FFTtf)
    -------------------------------------------------------------------------------------------------------------

    Could you please make this change and program again?

    Thanks,
    Katta