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.

TMS320F28388D: TMS320F28388D: how to change the SCI_A pins for SCI Boot

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi,

Description

  • I need to update my FW through SCI. It works fine now. Currently, through GPIO 28 & 29 for SCI_A. (this is a default setting, huh?)
  • I want to change the pins for SCI_A, from GPIO 28 & 29 to GPIO 8 & 9
  • According to the datasheet, I need to change a BOOTDEF value from 0x01 to 0xC1 to make it possible.

 

Question

  • How can I change the BOOTDEF value? 

Regards,

Casey

p.s.

Here are what I did so far.

  • I searched CCS for Z1-OTP_BOOTDEF-xxx & Z2-OTP_BOOTDEF-xxx, but I couldn't find them all.
  • Rather, relevant registers are inaccessible.

  • Hi Chung,

    I am assuming you are in development phase and using CCS. If yes then you can use CCS flash plug-in GUI to program these setting. We have four GPREGx location in USER OTP of each Zone (Z1 and Z2) which are used for BOOT configuration and mapping of these registers are provided in BOOTROM chapter in TRM. See snapshot below -

    Once you are connected to CCS, you can open the flash plug-in GUI by clicking on Tools -> On-Chip Flash and then you can provide the required value in the GUI field which you want to program and click on program icon of that section to program. 

    Please note that USER OTP is One Time Programmable only so once it is programmed you can not change it. So you have to be careful while programming it hence it is recommended to use EMULATION BOOT option Ist to test the configuration value.

    Hope this helps.

    Regards,

    Vivek Singh

  • Hi,

    Thanks for your explanation. What I wanna to do is to define two booting methods; flash booting (=0x03) and SCI booting via GPIO 8 & 9 (=0xC1)

    I will use a GPIO72 (=0x48) in the S2 switch of my TI EVK kit.

    • Question 1 : emulation
      • I ran a test using the emulation to see if my configuration is okay. Is it correct?

    • Question 2 : OTP
      • If the configuration is correct, should I put it in my OTP like this?

    • Question 3 : mass production
      • If everything is okay, is there any way to program the OTP other than CCS? I can use my CCS at my desk, but I think there should be a better way to do that in my assembly line.



    Regards,

    Casey

  • Casey,

     Thanks for your explanation. What I wanna to do is to define two booting methods; flash booting (=0x03) and SCI booting via GPIO 8 & 9 (=0xC1)

    You can have only one BOOT method. I am not sure what do you mean by two boot method here ? 

    Regards,

    Vivek Singh

  • Sorry to confuse you. 

    I wanted to say that there are several "boot modes" supported by TI; Flash Boot, USB Boot, SCI_A Boot, and others.

    I'd like to make my system boot in two modes; Flash Boot or SCI_A. Of course, this is switchable.

    I wanted to make sure that my setting is all right; Z1-BOOTPINCONFIG & Z1-BOOTDEF.

  • Hi Casey,

     I'd like to make my system boot in two modes; Flash Boot or SCI_A. Of course, this is switchable.

    Just to make sure we are on same page, you have provision on board to change the value driven on BOOT MODE pins to select two different BOOT MODE. Right ? If not, the please let me know how are you planning to switch the BOOT MODE.

    Regards,

    Vivek Singh

  • Yes. I have a switch on my board, TI EVK.

    Here is an illustration.

    I will look at GPIO72 only.

    Normally, it will jump into the internal flash memory to run my app.

    Or it will stay at the bootloader looking at SCI_A (GPIO 8&9) to communicate with an external program.

  • Ok, understood. That will work.

    Now on your settings, values look correct and you should be able to test it in emulation boot before programming the OTP.

     Question 3 : mass production
    • If everything is okay, is there any way to program the OTP other than CCS? I can use my CCS at my desk, but I think there should be a better way to do that in my assembly line.

    You should be able to use the .asm file and .cmd file concept (refer example in C2000Ware_3_03_00_00\driverlib\f2838x\examples\c28x\dcsm folder)   to include these settings in your .out itself which will get programmed when programming the .out. I would recommend using our security tool which will get released before end of this month.

    Regards,

    Vivek Singh