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.

TMS320F28388S: USING TMS320F28388S

Part Number: TMS320F28388S
Other Parts Discussed in Thread: C2000WARE

Hi,

My customer need assistance.

Code works after programming with jtag
But after soft reset or power reset it doesn’t work,
When I reconnect it says
_system_post_cinit() 0x3FD2AE (an error occurred: failed to parse the previous frame FP)

Both of Boot pin is set to Flash/USB mode

Please help. Thanks.

  • It is an inquiry about unable to boot after reset with tms320f28388s.

  • Chong,

    This is usually caused by not changing the entry point to the flash boot vector.  Please have the customer look at the example in C2000 Ware here: C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f2838x\examples\c28x\boot

    Specifically the .cmd file in the CPU1 project that has BEGIN location defined as:

    BEGIN            : origin = 0x080000, length = 0x000002

    and  in the sections:

    codestart           : > BEGIN, ALIGN(8)

    This likely is not in the .cmd file they are using for their project.

    Best,

    Matthew

  • Hi Matthew,

    My customer replied:

    MEMORY
    {
    /* BEGIN is used for the "boot to Flash" bootloader mode */
    BEGIN : origin = 0x080000, length = 0x000002
    ---------------------

    SECTIONS
    {
    codestart : > BEGIN, ALIGN(8)


    -----

    i Believe i'm using example flash lnk files,

    what to do now ?.?

    Regards.

  • Customer needs to use the flash EMU Boot mode to simulate booting from flash and can debug the issue from there.  In CCS go to "Scripts" the EMU Boot mode->Boot to Flash.  Then under Run->Reset the device.  They should see this take them to a location in BROM.  They can load the symbols from the BROM in C2000Ware->libraries->ROM, etc if they want. 

    If they can get this to work then standalone should also work correctly.  If not we can debug where the code is failing/getting off course.

    Best,

    Matthew

  • Hi Matthew,

    My customer replied:

    3fd299: 00430032 LB 0x030032
    3fd29b: 0030 TRAP #16
    3fd29c: 0030 TRAP #16
    3fd29d: 0030 TRAP #16
    3fd29e: 002D TRAP #13
    3fd29f: 0042004F LB 0x02004f
    3fd2a1: 004F0054 LB 0x0f0054
    3fd2a3: 0000 ITRAP0
    3fd2a4: D206 MOVB XAR2, #0x6
    3fd2a5: 003F TRAP #31
    3fd2a6: D20A MOVB XAR2, #0xa
    3fd2a7: 003F TRAP #31
    3fd2a8: D212 MOVB XAR2, #0x12
    3fd2a9: 003F TRAP #31
    3fd2aa: D20E MOVB XAR2, #0xe
    3fd2ab: 003F TRAP #31
    3fd2ac: D216 MOVB XAR2, #0x16
    3fd2ad: 003F TRAP #31
    3fd2ae: 28AC0137 MOV @T, #0x0137
    3fd2b0: F7AC RPT @T
    3fd2b1: 7700 || NOP
    3fd2b2: 28AD0060 MOV @SP, #0x0060
    3fd2b4: 561F SETC OBJMODE

    3fd2b5: 5616 CLRC AMODE
    3fd2b6: 561A SETC M0M1MAP
    3fd2b7: 2940 CLRC PAGE0
    3fd2b8: 761F0000 MOVW DP, #0x0
    3fd2ba: 2902 CLRC OVM
    3fd2bb: FF69 SPM #0
    3fd2bc: 761F174E MOVW DP, #0x174e

    I was unable to see what happen

    debugs stops after boot falsh Emulation

    Break at address "0x3fd2ae" with no debug information available, or outside of program code.

    Regards.

  • it was _system_post_cinit() though i can't find any information about it

  • Chong,

    Sorry for the late reply, I need another day to look deeper into the above and the BROM of the device.  I'll post another reply before the weekend.

    Best,

    Matthew

  • Chong,

    Can customer look a the memory at address 0x80000/0x80001 and confirm the data at this location(after flash programming)?  Likely it will point to c_init symbol, but want to be sure this is programmed(not 0xFFFF).  I realize that .cmd earlier in the thread confirms it should have data, I just want to make sure this got programmed.

    Reason is that if it is erased, then device will switch to USB boot mode.

    Best,

    Matthew

  • Hi Matthew,

    My customer replied:

    for reasons i don't know, 0x080000 and 0x080001 only has 0xffff, i'm uploading my linker cmd files, could you kindly look at it?

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/171/7230.2838x_5F00_flash_5F00_lnk_5F00_cpu1.cmd

  • Chong,

    Please ask the customer to include the file f2838x_codestartbranch.asm in their project.  It is located in C2000Ware in this path  C:\ti\c2000\C2000Ware_4_00_00_00\device_support\f2838x\common\source (I've also attached it to the post).

    This file contains the section directive for codestart that matches the linker.

    Best,

    Matthewf2838x_codestartbranch.asm