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 Programming Issue on F28377D

Other Parts Discussed in Thread: CONTROLSUITE

I've been running into an issue where the flash programmer in CCS is failing.  I have a secure zone setup, but this issue occurs when my secure zone is unlocked as well.  The flash programmer fails trying to erase sector A, my secure zone is sector B and the debug configuration is setup to not erase that sector.  It seems like it cannot set a break point.  Here is my console output:

C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: Error: Failed unlocking device (zone 2) during Flash Operation.
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc15f: (Error -1066 @ 0xC15F) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 5.1.507.0)
C28xx_CPU1: Note: The missing clock status flag was detected as set, and needed to be cleared to lock the PLL.
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc591: (Error -1066 @ 0xC591) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 5.1.507.0)
C28xx_CPU1: Flash Programmer: Error erasing Sector A. Operation Cancelled.
C28xx_CPU1: GEL: File: D:\Work\TIv5_CLA\F2837x_Simulations\Position_CPU_UTIL\cpu01\ccs\CPU1_FLASH\position_cpu_util.out: Load failed.

I've attached the CCS debug server logs as well.  3146.140929_f377d_flash_programming_error.zip

This error only occurs if I launch the debugger in the CCS Edit perspective.  I can get it to successfully program if I start the debugger via the target configuration file, connect to CPU1, run the BootROM, then load in my code via the Run->Load->Load Program dialog.

I have already tried changing the bootmode pins on the controlcard without success.

  • Hi Adam,

    As discussed, please try the bootmode pin setting other than "Boot To Flash (1/1)" and see if that solves the issue all the times.

    Regards,

    Vivek Singh

  • hi,
    I have same problem to program controller successfully.
    I also tried your above mentioned way. But it is not working it continuously throw errors.
    Could you please provide me another solution?
  • Gajendra,

    Are you working with CCS v6?

    If I recall correctly I didn't face this issue with the updated tools.

  • Adam,
    Yes, I am working with CCS6.
    My compiler version is TI6.2.5.
    I did unistallation and fresh installation of CCS6 and also did updates, still issue exist and i cant program my controller.
  • Sounds like it may be a different issue.  My advice would be for you to start a new post where you describe your problem in detail.  This should help get the attention of the TIers who are better positioned to help you.  Providing detail is important otherwise it will be difficult for them to understand your issue and will end up taking longer as they ask questions about your setup and your methodology.

  • Thannk you Adam.
    I will create a new ticket for this issue and will explain in detail.
  • Gajendra,

    Please make sure to reset the core and run the bootrom (hit resume button in CCS) before loading code to Flash.

    Also post the error messages.

    Thanks and regards,
    Vamsi

  • Vamsi,
    Thanks for your suggetion, I already applied the same.
    Only controller goes into debug and runs present code inside the flash.
    I did make connection of debugger to controller and tried to download new *.out file into controller. It throws error which are mentioned below.

    C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc15f: (Error -1066 @ 0xC15F) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 5.1.641.0)
    C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
    C28xx_CPU1: Note: The missing clock status flag was detected as set, and needed to be cleared to lock the PLL.
    C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc591: (Error -1066 @ 0xC591) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 5.1.641.0)
    C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
    C28xx_CPU1: Flash Programmer: Error erasing Sector A. Operation Cancelled.
    C28xx_CPU1: GEL: File: C:\Gajendra\Delfino\CODES\Can_loopback\CPU1_FLASH\Can_loopback.out: Load failed.
    C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc15f: (Error -1066 @ 0xC15F) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 5.1.641.0)
    C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
    C28xx_CPU1: Note: The missing clock status flag was detected as set, and needed to be cleared to lock the PLL.
    C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc591: (Error -1066 @ 0xC591) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 5.1.641.0)
    C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
    C28xx_CPU1: Flash Programmer: Error erasing Sector A. Operation Cancelled.
    C28xx_CPU1: GEL: File: C:\ti\controlSUITE\device_support\F2837xD\v140\F2837xD_examples_Cpu1\watchdog\cpu01\ccs\CPU1_FLASH\watchdog_cpu01.out: Load failed.

    Thanks and Regards,
    Gajendra Ghate
  • Gajendra,

    1) Did you program any password in the OTP? If yes, did you unlock before loading the code to Flash?

    2) What is the boot mode configured using boot mode pins?

    3) Did you launch the target configuration file, then connect to cores, reset the cores, run the bootROM and then load the code? OR did you use the debug button in CCS Edit perspective to load the code? Please try the former method.

    Thanks and regards,
    Vamsi
  • Vamsi,

    I am not shure about Password in OTP.

    boot from Flash i have set.

    I tried your solution, now controller get programmed.

    But previously means when controller get programmed correctly at that time debug was possible with .C file, curretly dubug can be done only with disassembly file.

    Thanks and Regards,

    Gajendra Ghate

  • Gajendra,

    Good that programming is working fine.

    Still, I would suggest you to try a boot mode other than boot to Flash so that device would not execute illegal instructions from erased flash at power up causing a reset.

    On the C file, you might have to locate the C file manually in the CCS debug perspective.  

    Thanks and regards,

    Vamsi