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/LAUNCHXL-F280049C: F280049C Flash Programming Problem...

Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE, UNIFLASH

Tool/software: Code Composer Studio

Dear Ti support,

I am having problem with programming my LAUNCHXL-F280049C with 28004x_generic_flash_link.cmd file. It is working with RAM cmd file but with flash this is the error I get.

C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...


C28xx_CPU1: Error during Flash programming (Flash algorithm returned error code). Operation cancelled.
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: D:\Pulse\GDrive\WS\AmanW\sci_ex2_interrupts\Debug\sci_ex2_interrupts.out: Load failed.
C28xx_CPU1: Error during Flash programming (Flash algorithm returned error code). Operation cancelled.
C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.
C28xx_CPU1: Error during Flash programming (Flash algorithm returned error code). Operation cancelled.
C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.

 

can Anyone help me regarding this??

Thanks & Regards,

Aman

  • Hi Aman,

    Is this an example code?

    Regards,
    Gautam
  • Yes It is in C2000 Ware driverlib example.

    Regards,
    Aman
  • Have you referred the User guide for the launchpad: www.ti.com/.../spruii7.pdf
    Jumper settings are all good?
    I was able to write to RAM as well as flash. Didn't face any issues. If you're already following the userguide, try examples out of here:
    C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f28004x\examples

    Regards,
    Gautam
  • Dear Gautam,

    Yes I have been through the userGuide.
    I tried this examples from C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f28004x\examples here too.
    Here is what I did.
    1) Import the project in CCS
    2) Include the device_support header include and common include.
    2) Instead of 28004x_generic_ram_lnk.cmd I used 28004x_generic_flash_lnk.cmd. And get this error.

    C28xx_CPU1: GEL Output:
    Memory Map Initialization Complete
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: Error during Flash programming (Flash algorithm returned error code). Operation cancelled.
    C28xx_CPU1: File Loader: Memory write failed: Unknown error
    C28xx_CPU1: GEL: File: D:\Pulse\GDrive\WS\AmanW\gpio_ex1_setup\Debug\gpio_ex1_setup.out: Load failed.
    C28xx_CPU1: Error during Flash programming (Flash algorithm returned error code). Operation cancelled.
    C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.
    C28xx_CPU1: Error during Flash programming (Flash algorithm returned error code). Operation cancelled.
    C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.

    It is working with 28004x_generic_ram_lnk.cmd.
    Please tell me if there is any jumper specially needs to set for flash file?

    Regards
    Aman
  • Hi Aman,

    After importing the project, simply Right Click on the project -> Build Configurations -> Set Active -> Flash

    Don't add any files.

    Regards,
    Gautam
  • There is no Flash in this(Build Configurations -> Set Active -> Flash) Only Debug or Release

    I am using CCS 6.1.3 and in mine project -> Build Configurations -> Set Active -> Debug(Their is no FLAsH)

    Regards,
    Aman
  • Aman,

    Did you get any warnings when you compiled your project?
    How are the boot mode pins configured on your board?

    Thanks and regards,
    Vamsi
  • Aman,

    Also, checkout this sticky post: e2e.ti.com/.../571106
    Please note that you need at least CCS v6.2.0.00050 for it to realize Flash build config.
    We strongly recommend to move to CCSv7 to get all the latest updates.

    Thanks and regards,
    Vamsi
  • Aman,

    Any update? Try using Wait Boot Mode when programming Flash.

    Thanks and regards,
    Vamsi
  • Aman,

    I am closing this thread since I did not hear from you in the last two weeks.
    Hope you resolved the issue using the debug tips.
    You can open a new post as needed.

    Thanks and regards,
    Vamsi
  • Dear Vamsi,

    Yes the issue is resolved. updated my CCC to V8, After programming once via UNIFlash V4.4 Flash code can be programmed via CCS to.

    Thanks & Regards,

    Aman