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.

Flash on a TMS320F28031

Other Parts Discussed in Thread: TMS320F28031

I am using a custom board with a TMS320F28031 on it. I am using an XDS100v2 emulator to program it and am able to program the ram successfully, but whenever I try to execute a Flash operation it fails. I am running Windows 7 64 bit.

I am using CCSV4.2.0.10018 and from the On-Chip Flash view in the debug Perspective I am able to unlock the device. When I try to erase the Flash however, it fails and I get the following message, note that the strange unicode string following is actually part of the response:

 

C28xx: Erasing Flash memory...

C28xx: Flash Programmer: Error erasing flash memory. ìï6ÑÕu

 

And when I try to run the frequency test I get the following message:

 

C28xx: Starting Frequency Test, please wait...

C28xx: Flash Programmer: Error starting frequency test. |ï6ÑÕu

 

 

When I try to debug a program using the a linker file that places the program in Flash i get the following message:

 

C28xx: Flash Programmer: Error erasing flash memory. \öÚ!ÑÕu

C28xx: Flash Programmer: Error erasing Flash memory.

C28xx: Flash Programmer: Error encountered when writing to flash memory. ôÄ#ôóÚ!Y?}"ÿÿÿÿ

C28xx: Trouble Writing Memory Block at 0x3f7b96 on Page 0 of Length 0x16 

Cannot write to target

 

 

I have tried this with 2 different boards and 2 different microcontrollers with this same result.

 

Any insight into this problem would be greatly appreciated.

 

Thank you,

Daniel Jones

  • Daniel,

    I am not sure what the strange characters mean, but the erase process should not fail, unless the flash is somehow depleted. Did you try the Depletion Recovery? Check question 4.8.5 of the FAQ below:

    http://processors.wiki.ti.com/index.php/C2000_Flash_Common_Issues/FAQs

    Another detail is to check if the values for the frequencies are correct for your board. Right-click on your project and select Debug Properties --> tab Target --> option F28031 Flash Settings.

    I don't see this issue in my system (Win7/64, XDS100 connected to a F28035 device).

    Hope this helps,

    Rafael

     

     

  • Daniel, Rafael,

    This issue is actually related to another Flash issue that was identified for affecting F280200 devices. You can find more information in the following thread:

    http://e2e.ti.com/support/development_tools/code_composer_studio/int-code_composer_studio/f/90/p/73893/274627.aspx

    This issue has be resolved for the upcoming CCS4.2.2 build. In the mean time, I am testing to see if the posted fix in the above thread works for the F28031 device as well. If not, I will provide an updated fix for you as well.

    I will update this thread as soon as I have more information.

    Thanks.

    Ricky

  • Daniel,

    My testing shows that the posted fix also works for F28031 devices. Please follow the information posted below to apply the fix:

    http://e2e.ti.com/support/development_tools/code_composer_studio/int-code_composer_studio/f/90/p/73893/274655.aspx#274655

    Please let me know if this fixes the problem you are experiencing.

    Thanks.

    Ricky

  • I am getting a "Group Not Found" when I try to follow either of the links that you posted. Do I not have access to that section of the forum?

    Thanks,

    Daniel Jones

  • Daniel,

    I have reposted the file/information here. NOTE: Please note that this fix has not been through the testing we perform on full CCS releases, and is only meant to be use as a temporary solution. This fix will be included in CCS4.2.2.

     

    I have attached a fix for this issue (Flash28xx.txt); Please follow these instructions on applying the fix:

    - download and rename to Flash28xx.dll (version of the DLL should be 4.2.100.1)

    - copy and replace with the one available at <installDir>/ccsv4/DebugServer/bin/win32/ (Please back up the original version)

     

    Let me know if you have any questions.

    Thanks.

    Ricky

  • Thank you very much, that seems to have solved it.

    -Daniel Jones

  • Riky,

    I have the same problem (can't program F28031).

    I apply the fix you posted and now the CCS error is

    C28xx: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.

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

    Error found during data verification.

    Ensure the linker command file matches the memory map.

    I verify the command file and it is correct.

    Do you have any suggestion? Thank you

  • Andrea,

    There are a few things I can think of that you can check:

    1. Which version of CCS are you using? The fix will work for all versions of 4.2.0.x and 4.2.1.x, so make sure you are using one of those versions

    2. Can you make sure that the fix was applied to your CCS build? You can do this by going to <installDir>/ccsv4/DebugServer/bin/win32/ and making sure that Flash28xx.DLL is there. Right click on the file, and choose Properties. In the opened dialog, go to the 'Details' tap and check the File Version to make sure it is 4.2.100.1.

    3. Make sure the your target configuration (CCXML file) is correct by checking that the device selected matches your device (F28031).

    Please let me know your results from checking these items.

    Thanks,

    Ricky

  • Riky,

    Following your instruction I solve the problem.

    My CCS version is 4.2.1.0004.

    My OS is Win 7 and when I saved the fix the OS put it not in the "<installDir>/ccsv4/DebugServer/bin/win32/" folder but inside the "File compatibility" folder.

    By moving the fix in the  "<installDir>/ccsv4/DebugServer/bin/win32/" folder I solve my problem

    Thanks