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.

TMS320F28235: Problem on serial flash programmer

Genius 17585 points
Part Number: TMS320F28235
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hello,

My customer is trying to write F28235 flash by serial flash programmer with F28335 flash kernel.

They executed the below command.

serial_flash_programmer -d f2833x -k C:\ti\c2000\C2000Ware_5_04_00_00\device_support\f2833x\examples\f28335_flash_kernel\Debug\f28335_flash_kernel.txt -a XXXXXXXX.txt -b 9600 -p COM1


Then it stopped after showing the below.

C2000 Serial Firmware Upgrader
Copyright (c) 2013 Texas Instruments Incorporated.  All rights reserved.

getting comm state
building comm DCB
adjusting port settings

calling f05_DownloadImage
Downloading application.txt to device...

a==a
8==fe

I also tested with F28335 control card+docking station with the below command.

serial_flash_programmer -d f2833x -k c:\ti\c2000\C2000Ware_5_04_00_00\device_support\f2833x\examples\f28335_flash_kernel\Debug\f28335_flash_kernel.txt -a XXXXXXXX.txt -b 9600 -p COM5

Then it also sotpped after showing the below.

C2000 Serial Firmware Upgrader
Copyright (c) 2013 Texas Instruments Incorporated. All rights reserved.

getting comm state
building comm DCB
adjusting port settings

calling f05_DownloadImage
Downloading Fuji_F28335_example\Example_28335_Flash.txt to device...

a==a
8==8
0

Is there anything wrong?

Regards,
Oba

  • Hi Oba,

    Which GPIOs are you using? Can you double-check that the connected GPIOs match what is configured by the boot mode?

    Kind regards,

    Skyler

  • Hello, 

    In my case, I used GPIO28/29. 
    I checked the datasheet and it says that GPIO28/29 are used for SCI-A boot.

    Regards,
    Oba

  • Hi Oba,

    How are you configuring SCI boot mode? It looks like the host sends the bootROM key and then the device stops responding.

    Kind regards,

    Skyler

  • Hello,

    I'm using controlCARD and Docking station.
    On the docking station side, J84/85/86/87 are all open. And J9 is installed.
    On the controlCARD side, SW2=OFF/ON/ON/ON meaning GPIO84=Low, GPIO85/86/87=High. And SW1 is OFF.

    Then I selected XDS100 class USB Serial Port(COM5) for the flash programmer COM port.

    I tried to debug the device with ROM boot image on CCS and cnfirmed that the device enterd SCI boot mode and wating for the signal like the below

    So it is sure the device is in SCI boot mode.

    Do you see anything wrong?

    Regards,
    Oba

  • Hi Oba,

    Thank you for the details. Can you load the bootROM symbols and see where the device is stuck after the host programmer sends the first few words?

    Kind regards,

    Skyler

  • Hi Oba,

    Are you generating the kernel file with a Linux machine? I believe this issue is due to how new lines are represented on Windows vs Linux. Windows uses CRLF (2 characters) where as Linux just uses LF (1 character). The first 3 characters of the txt file are discarded by the host tool because it should contain a garbage character and then a newline (CRLF on Windows). If the text file is generated on a Linux machine, then the garbage character and newline are represented by only two characters. Thus, the first byte of the bootROM key (0x08AA) is discarded by the host. I can see this in the output of the tool:

    a==a
    8==8
    0

    We should see:

    aa==aa

    8==8

    0==0

    etc.

    Please try generating the text file on a Windows machine or change the newlines from LF to CRLF.

    Kind regards,

    Skyler

  • Hello Skyler,

    Thanks.  I haven't build the kernel file. I just used the default one in the folder.
    I rebuild it in my Window environment and I confirmed it worked.

    Thank you very much for your support.

    Regards,
    Satoshi Obata