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.

TMS320F28377D: Issue with SCI Bootloading using serial_flash_programmer.exe

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

I tried SCI Boot loading in TMS320F28377D microcontroller development board.

Initially I changed the SW1 switch positions for SCI Boot mode in development board.

I created the .txt files which are required for bootloading through serial flash programmer using hex2000 utility

In serial flash programmer I gave the command for bootloading.

serial_flash_programmer.exe  -d f2837xD -k F2837xD_sci_flash_kernels_cpu01.txt -a blinky_cpu01.txt -p COM7 -b 9600.

after this command it has to show the options for FLASH erasing and loading ,but it is showing that flash kernel is downloading and it is stucking there only.

The image about the issue is attatched below.

Please help me with this issue.

  • Hello, 

    Did you change the SCI pins from 84/85 to 28/29 in the CCS project? I assume by development board you mean the ControlCARD? Please take a look at the F2837x section of the FAQ of the Flash Kernel App Note: www.ti.com/lit/sprabv4  

    There is a section that shows how to configure the ControlCARD to be used for the flash kernel. 

    Thanks

    Anu

  • I kept SW1: position1 to 0 and position2 to 1.
    and A:SW1: position1 to OFF and position2 to ON.
    I changed the parameter for SCI_Get_function() parameter from SCI_BOOT to SCI_BOOT_ALTERNATE in 'F2837xD_sci_flash_kernels_cpu01' example code ,so that the GPIO's for SCI changed to 28 and 29. with this code new text file was created.
    with this text file I gave the command to 'serial_flash_programmer.exe'.
    with this also i am getting the same error like previous.
    the image for this was attached below. 

  • Hello, 

    Did you reset the device as specified in the app note? If the device is correctly set to SCI Boot, you will not see the message above. 

    Thanks

    Anu

  • Hello anu,

    According to the App note only I configured everything for SCI Boot mode but where I am doing mistake I was not understanding.  Is there any other document or link for configuring SCI Boot mode in TMS320F28377D or else give me a small note on how to configure SCI Boot mode in TMS320F28377D.

    Is there anything I have to change in linker command file.

    Thanks,

    koteswararao

  • Hello, 

    You should reset the device after setting the boot mode to SCI boot via the boot pins on the ControlCARD, perhaps this is where the confusion is coming from. Can you list the exact steps you are taking when trying to run the kernel? This will help in figuring out next steps. There are not any linker command file modifications you need to make. 

    Thanks

    Anu

  • Hello Anu,

    Steps I followed for SCI bootloading are given below.

    SW1: position1 to 0 and position2 to 1.
    A:SW1: position1 to 0and position2 to 1.

    I did reset after keeping the switch positions as given above.

    After that in serial_flash_programmer .exe, I gave the command as below.

    serial_flash_programmer.exe  -d f2837xD -k F2837xD_sci_flash_kernels_cpu01.txt -a blinky_cpu01.txt -p COM4 -b 9600.

    I am getting the error like "Attempting autobaud to load kernel..."

    After that, I changed the parameter for SCI_Get_function() parameter from SCI_BOOT to SCI_BOOT_ALTERNATE in 'F2837xD_sci_flash_kernels_cpu01' example code ,so that the GPIO's for SCI changed to 28 and 29. with this code I created the new text file.

    Again I followed the same procedure as above with new text file, still the problem is same.

    Thanks

    koteswararao

  • Hello, 

    The boot mode needs to be changed on the ControlCARD in CCS. 

    You need to set the boot mode in CCS on the ControlCARD as specified in step 4 in the image above, and then reset the board. You also need to generate the new flash kernel image prior to using the serial flash programmer. Let me know what your results are after following the steps above. 

    Thanks,

    Anu

  • Hello Anu,

    I tried the procedure given above. With that procedure code is loading, and it is working fine. 

    But in that procedure we need to connect the emulator via CCS. Actually in my requirement I don't have to use the emulator. without the need of emulator we want to load the code into the board. This is the reason for we came into SCI boot loader concept.

    is there any other procedure for SCI Boot loading without using the emulator.

    Thanks,

    Koteswararao.

  • Hello, 

    You can set the GPIO pins to SCI boot and download the flash kernel to RAM, and then use the flash kernel to download the flash kernel to Flash. You would then set the boot pins to Flash boot and reset the device, and you will be able to enter the new application provided that the application entry point is the Flash entry point. You will not be able to do this on the ControlCARD however, as noted in the FAQ section of the app note. 

    Anu

  • Hello,

    The example code for the flash kernel is only configured for RAM. How can I load this flash kernel example to Flash. Even If I tried also, error it is coming. 

    In the FAQ section of the app note ,they have given that SCI boot mode will not happen in Launch Pad. I think they didn't gave anywhere like it will not work in Control Card.

    please check it once and give me confirmation.

    Thanks,

    Koteswararao.

  • You can replace the linker command file for the flash kernel to a flash based linker command file. The linker command files are found under C2000Ware_4_01_00_00\device_support\f2837xd\common\cmd. 

    SCI boot will only work with the SCI_ALTERNATE configuration on the ControlCARD. 

    Anu