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.

TMS320F28386D: MCU programming via SCI

Part Number: TMS320F28386D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi,

we are testing our board which is based on TMS320F28386D.

Is it there any step-by-step guide for programming the MCU through the SCI-A interface (instead of the JTAG)? We didn't find it.

Thank you in advance

  • Hi Clem,

    Would the following application note help for your situation:

    Serial Flash Programming of C2000 Microcontrollers

    Thanks,

    Charles

  • Thank you Charles. This helped us.

    But we are still having some problems. For example, first things, we need to know:

    1. Where can we find the  file flash_kernel_c28x_dual.txt ?
      Or can we use that file from the project example in C2000Ware_x_x_xx_xx \ driverlib \ f2838x \ examples \ c28x_dual \ flash_kernel \ cpu01 ?
    2. How can we transform our application (main) in a .txt file ?

    Thank you in advance!

  • We managed to create those .txt file.

    And now we can download kernel into RAM correctly.

    But when we chose the DFU_cpu1 command, we get the NACK error.

    Can you help us understand what is the problem please?

    Thanks

  • Well, somehow (we are not pretty sure how..) we managed to execute the DFU_CPU1 command to program the core1 into flash, but we now get the same kind of error both in the Serial Flash Programming prompt tool and in the C2Prog tool (see the following images).

    Serial Flash Programming

    C2Prog

    It seems like there is an error in the .cmd file, at the address 0x011000 (RAMGS4, see the following image).

    .cmd file

    The dclfuncs for that RAM area are the only aligned by 2 bytes, instead of the "align(8)" that are present for the other areas:

    align(2)

    But also changing that value, the error remains.

    So what can be the cause of that error?

    Can you help us please?

    Thanks

  • Hi Clem,

    For the kernel that gets downloaded, are you using the USE_20MHZ_XTAL symbol for the project? This can be found in the header file for device.h:

    And needs to be added as a predefined symbol for the kernel generation in the project properties:

    Let me know how the DFU_CPU1 download goes with these changes.

    Thanks and regards,

    Charles

  • Thank you Charles.

    But in our board we use a 25 MHz external oscillator, not a 20 MHz external crystal.

    Thus, what should we do?

  • Hi Clem,

    In that case you can use the USE_25MHZ_XTAL symbol with the project (it should also be mentioned in the device.h file. 

    Thanks,

    Charles