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.

TMS320F28377S: Can't boot F28377s board after changing DCSM GRABSECTR

Part Number: TMS320F28377S
Other Parts Discussed in Thread: TEST2

HI

I'm testing F28377s DCSM Function..

When I change Z1-LINKPOINTER1,2,3 AND Z1-CSMPSWD0,1,2,3.  the board's booting is No Problem..

but when I change z1-GRABSECT value Then the board can not boot and can not go into debug mode...

I'm using XDS100V3 and BH-USB-560V2.. BUT both device operation is same...

when I trying to debug(load a program) a board .. I can see below message..

C28xx_CPU1: Error during Flash verification (Flash algorithm returned error condition). Operation cancelled.
C28xx_CPU1: Flash verification returned error condition. Operation cancelled.
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: C:\__HIGEN DATA__\1.PROJECT\8.F28377_Platform\Firmware\Test_F28377s\Build\HGID7_F28377s.out: Load failed.
IcePick_C_0: Power Failure on Target CPU

Of course I already unlock the board..

Did I miss something?? if then.. plz let me know

thanks.

  • Hi,

    What value you programmed in Z1_GRABSECT location?

    Regards,

    Vivek Singh
  • Hi Vivek 

    I wrote 0xFFFF_FFFA in Z1_GRABSECT location( to allocate Flash Sector A and B to Zone1)

  • Thanks. If you are using the CCS flash plug-in to program the device then you need to provide the correct password values in CCS Flash plug-in.

    Click on Tools -> On-Chip Flash . Then in plug-in GUI enter the correct password in CSMPSWD section.

    This should work.

    Regards,
    Vivek Singh
  • Thanks for reply

    of course I enter the correct password..

    and now I'm test the other board but now I can't connect board after DCSM PASSWORD settings..

    below is my test procedure

    test1 :

    1) flash linkpointer value as 0xFFFFFFFE (z1-linkpointer = 0x30) via CCS flash plug-in

    2) flash the password(value 0x00000000, 0x00000000, 0x00000030) via CCS flash plug-in

    3) reconnect target

    4) unlock password and flash z1-GRABSECT as 0xFFFFFFFE

    5) reboot target and connect target and download f/w ... everything is ok

    6) check SECTER-A is in secure state by changing password register value.. -->  secure function works correctly..

    test2 :

    1) flash linkpointer value as 0xFFFFFFFC (z1-linkpointer = 0x40) via CCS flash plug-in

    2) flash the password(value 0x00000000, 0x00000000, 0x00000040) via CCS flash plug-in

    3) reconnect target

    4) unlock password and flash z1-GRABSECT as 0xFFFFFFFB

    5) reboot target and connect target and download f/w ... everything is ok

    6) check SECTER-B is in secure state by changing password register value.. -->  secure function works correctly..

    test3 :

    1) flash linkpointer value as 0xFFFFFFF8 (z1-linkpointer = 0x50) via CCS flash plug-in

    2) flash the password(value 0x00000000, 0x00000000, 0x00000050) via CCS flash plug-in

    3) reconnect target

    4) unlock password and flash z1-GRABSECT as 0xFFFFFFFA

    5) and now  Can't connect target and CCS shows below messages..

    C28xx_CPU1: Trouble Halting Target CPU: (Error -1156 @ 0x0) Device may be operating in low-power mode. Do you want to bring it out of this mode? Choose 'Yes' to force the device to wake up and retry the operation. Choose 'No' to retry the operation without waking the device. (Emulation package 6.0.579.0)

    C28xx_CPU1: Trouble Halting Target CPU: (Error -1135 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 6.0.579.0)

    C28xx_CPU1: Error: (Error -1135 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 6.0.579.0)

    C28xx_CPU1: Unable to determine target status after 20 attempts

    C28xx_CPU1: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

    C28xx_CPU1: GEL: Error while executing OnTargetConnect(): Could not write 0x0005F412@Data: target is not connected

    at *((int *) 0x5F412)=0x000F [f28377s.gel:79]

    at OnTargetConnect()

    I'll attach cmd file.. plz check my works...

    2837xS_Generic_FLASH_lnk.zip

  • This is strange. Did you try booting device with BOOTPIN settings as Wait Boot? If not then try that and see if you are able to connected to device.

    Vivek Singh
  • Thanks for your help. Vivek

    now I can reconnect target board after set BOOTPIN as Wait Boot.. then I can connect board via xds100s and I can reprogram Z1-LINKPOINTER1,2,3

    but I still don't know how to use DCSM functions..

    attached file is Blink_DCSM Example from TI. I need to change some value for DCSM Setting.. plz check my code (DCSM_Z1_ZoneSelectBlock.asm, 2837xS_dcsm_lnk_cpu1.cmd)


    Fisrt I run Blink_DCSM Example. and I can found DCSM-z1 setting value changed correctly.. but weired thing is .. after Download Blink_DCSM Example. the cursor doesn't positioned at main()..
    just run doing something..

    and then I reconnected target and download the other f/w..
    But error occurs when Flash verification.. which address is FLASH SECTOR A..
    So I Check Flash Sector A via Memory Browser.. Memory browser show me all data of Sector A is '0' .
    but when I change linkpointer and reconnect target(without erasing flash), then Memory browser show me correct data of Sector A 

    plz let me know what's going on..7522.blinky_with_DCSM.zip

    and I also found Sector A, B is in in-accessible state ... even if correct password is entered..