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.

CCS4 & TMS320F280x

Other Parts Discussed in Thread: TMS320F28027

I am using CCS Version: 4.0.0.16001.

I have two systems one for development and one target system they are:

1)      A C2000 docking station fitted with a F2808 DIMM module all off the shelf.

2)      A custom target system fitted with a F2801 processor.

The objective is to run both systems from Flash memory.

 

The story to date is...

a)      I can configure a target configuration based on an F2808 with an F2808 gel file with an F2808 cmd file, which programs and runs from flash fine.

b)      I can change the cmd file to F2801, still fine.

c)       I can changethe gel file to F2801, still fine.

d)      I change the target configuration to a new one based on an F2801 with an F2801 cmd file and an F2801 gel file and I can’t program the flash memory with errors...

C28xx: Target did not halt properly during a Flash operation.

C28xx: Flash Programmer: Error on writing to flash memory.

C28xx: Target did not halt properly during a Flash operation.

C28xx: Flash Programmer: Error on writing to flash memory.

C28xx: File Loader: Data verification failed at address 0x003F4000 Please verify target memory and memory map.

Error found during data verification. Ensure the linker command file matches the memory map.

e)      The flash erase works fine.

f)       The ‘program password’ works fine.

 

The only thing I can’t get to work is the load program on the F2801 target board.

I can run the code from RAM fine but flash just won’t program.

 

Any help would be appreciated. [:S]

  • Following my first post I configured a separate PC with CCS3.3 and the same target board.

    Using CCS3.3 and an F2081, I can erase, program and verify flash with no problem but on CCS4 I still can’t.

    I suspect that the flash API is the problem, can anyone confirm that they can program the flash of an F2801.

  • Follow on:

     

    1.       Is anyone from TI or on the forum even looking at this problem?

    2.       After further digging the problem is only with CCS4 and it’s that I can only program one section of the flash.  If I move the sections around I get a different section into, flash but still only one.  It seems as if after one section is transferred to flash, it locks any other sections out. Possibly API, XML, or JS somewhere!!

     

    Any help please.

     

     

     

  • Hi Bob,

    Sorry for the late reply.

    I just wanted to inform you that I will be looking into this issue today; and I will be getting back to you with updated information on this issue as soon as possible.

    Let me know if you have any questions or comments for me.

    Thank you very much.

    Ricky

  • I'm a beginner and surely I'm doing something wrong, but maybe it's the same problem.

    I'm having the same problem with CCS  4.0.2.01003, Piccolo controlstick and sample applications, can debug from RAM but can't debug from flash.

     

  • I'm a seeing the same problems flashing.  

    I installed ccs version 4.02 on Windows Vista last week and I was able to flash and debug.  I upgraded the PC to Windows 7, reinstalled ccs 4.02 and I am unable to flash now.

    A coworker received a ccs 4.02 automatic update this morning to a windows XP pc that was working fine and is also having the same problem now.

     

  • @Bob,

    Sorry for the late reply. I realized that we didn't have the F2801 part in the office; I needed the place an order for it last week. I received the parts today and will be able to continue to look into the issue you are seeing.

    @Ford,

    Do you have the exact error you got? Was it a data verification error?

    @Al,

    I can't be sure at this point, but based on your description, it sounds to me like a permission issue after updating Windows. Can you provide a little more information? for example, the error message you got, the type of board you are using, the type of program you are loading, does other Flash-based operations like erasing work, etc.

     

    I will provide updates as soon as I find more information concerning the issues you are all seeing. Sorry for the inconvenience this is causing.

    Regards,

    Ricky

  • Hello Ricky Lau.

    Yes, it is a data verification error:

    Device Calibration not complete, check if device is unlocked and recalibrate.

    C28xx: File Loader: Data verification failed at address 0x00008000 Please verify target memory and memory map.
    Error found during data verification. Ensure the linker command file matches the memory map.

    Maybe my Piccolo Control Stick (TMS320F28027) is locked?, I modified some example projects to debug from flash, and I did not include the file "DSP2802x_CSMPasswords.asm" (I'm new to Piccolo and I didn't know a device could be locked forerver, even erasing). Maybe some program bytes were recorded in the password addresses and the device got locked?.

    Thank you

  • Here is the error from the console on the Window 7 system:

    C28xx: Target did not halt properly during a Flash operation.
    C28xx: Target did not halt properly during a Flash operation.
    C28xx: Target did not halt properly during a Flash operation.
    C28xx: Flash Programmer: Error encountered when writing to flash memory
    C28xx: Trouble Writing Memory Block at 0x3f2000 on Page 0 of Length 0x59a 
    Cannot write to target
    The erase operation goes very slowly, like it isn't working.
    If I continue launching, I get a disassembly window with real code and I am able to single step.
    I don't have all the details on the PC with XP having a similar problem.  What I was told was that during the first attempt at flashing, CCS crashed and after that flashing fails reporting that the flash is locked.  He tried a second board and got the "C28xx: Target did not halt properly during a Flash operation." errors  I listed above including the long erase time.  He reinstalled version 4.01 and is now able to program the second board just fine.  The first board seems to be broken.
    Al Z.

  • I'm experiencing the same problem with CCS 4.0.2 and a F2808 chip. 

    I get the error message

    C28xx: Target did not halt properly during a Flash operation

    C28xx: Target did not halt properly during a Flash operation

    C28xx: Target did not halt properly during a Flash operation

    This started after I had to reinstall CCS4 due to a disk failure. It worked just fine before that. 

    It works fine to program the chip using CCS v3.3. If I try to flash program the chip in CCS 4 immidiately after programming with 3.3, it works. 

  • All,

    While looking at the various reported issues, we were able to identify 2 core issues concerning Flash Programming on F28x devices, which I will detail below. I like to let you know that both of these issues have been resolved, and we are working on rolling out a patch for CCS4 as soon as possible to address these issues.

    Issue 1:

    On all CCS4 versions, there was an error in the Flash algorithm that prevents programming data larger than 0x400 words to Flash memory on a select set of devices (F2801, F2802, F28015, F28016).

    Issue 2:

    On only CCS4.0.2, an issue with performing Flash operations on F28x devices was introduced in the CCS4.0.2 build that does not exist in 4.0.1 or 4.0RTM builds. This issue prevents correct system frequency calculations and therefore affects all Flash operations requiring proper system frequency to function correctly.

    Both of these issues has been resolved. When the upcoming patch is applied, it should resolve many of the reported issues on F28x devices.

     

    Note that since 'Issue 2' only affects CCS4.0.2 builds, users can work around the issue before the patch comes out by installing the older CCS4.0RTM or CCS4.0.1 builds.

     

    I apologize for any inconvenience this has caused; and thank you for the information you have submitted in the forums and your patience as we prepare to roll out the patch.

    Let me know if you have any questions for me.

     

    Thank you very much.

    Ricky

  • Ricky,

    When do you anticipate a patch being available?

     

    Can you provide a link to the patch.

     

    I will verify the correct operation of the patch and let you know when everything is ok, until then thanks for your help so far.

     

    Bob

  • Bob,

    I do not have the exact date on the release on the patch; it is currently in the testing phase and once it passes testing, it should be available using the CCS Update Manager.

    Regards,

    Ricky

  • All,

    I just wanted to inform everyone that Code Composer Studio (4.0.2) C28 Flash update patch 4.0.3 is available. This patch is mainly aimed at users who were having problems with Flash Programming on F28x devices.

    Here are the instructions for installing the patch.

    1. This patch can only be apply to CCS build 4.0.2.01003; please check your version first before starting.

     a) If you do not have build 4.0.2.01003, please update by starting CCS and go to 'Help -> Software Updates -> Find and Install...' in the menu.

     b) In the dialog, choose 'Search for updates of the currently installed features'; this should be selected by default. Click Finish.

     c) Service Release 4.0.2.01003 should be available in the search results. Select it and follow the steps to update your CCS. (Note: this will require downloading the update and restarting your workspace)

    2. Once you have CCS build 4.0.2.01003, you can now apply patch 4.0.3 by starting CCS.

     a) Go to 'Help -> Software Updates -> Find and Install...' in the menu.

     b) In the dialog, choose 'Search for new features to install', and click Next.

     c) Select 'Code Composer Studio Updates' in the next dialog an click Finish.

     d) 'Code Composer Studio for 4.0.2 C28 Flash update 4.0.3' should be available in the search results. Select it and follow the steps to apply the patch. (Note: this will require downloading the update and restarting your workspace)

     

    Please let me know if you have any problem with installing the patch. Also, please provide your feedback on the patch, and let me know if it fixes the problems you were experiencing.

     

    Let me know if you have any other questions for me.

    Thank you very much.

    Ricky.

  • This fixed the flashing issue on both my XP and Windows 7 PCs.

  • I can confirm on my system using an F2802 based target board and the patch installed, it seems to work fine.

    Thanks for your help Ricky.

    Bob Walton [:D]

  • Ricky,

    I have a C2000 customer who tried the patch and has a question:

    http://e2e.ti.com/forums/t/13299.aspx

    -Lori

  • The patch initially worked fine on my Windows 7 machine.  However, due do an unrelated issue I had to reinstall Windows 7.

    After installing CCS4 1.02 and the patch on a clean Windows 7 install, I was unable to flash.  I tried this several times with the same result.  I uninstalled CCS4 1.02, and installed CCS4 1.01 and I am now able to flash.  I then installed CCS4 1.02, installed the patch again, and I am able to flash now using CCS4 1.02.

    It appears that the flash patch only works if CCS4 1.01 was installed before installing CCS4 1.02.