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.

TMS320F280039C: SCI boot configuration pins

Guru 12965 points
Part Number: TMS320F280039C


Hi,

Q1

I'm considering changing the configuration pins when doing an SCI boot. Specifically, to use the default SCI boot pins GPIO8,9, change BOOTDEF=0x41.

There are no plans to change the boot select pin from GPIO24, 32.


Could you tell me the register settings for emulation boot and standalone boot at this time?

 

Q2

I have a question about setting up a serial flash programmer.
I would like to know how to refine the application code text file within CCS.

In CCS, is the following recognition correct for the part to be changed from the default?
Please let me know if anything is missing.
・Enable C2000 Hex Utility
・Check the yellow check box below.


・Select "ASCII hex" for the output format.


・Change the extension to txt.

Thanks,

Eevee

  • Hi Eevee,

    For Q1:

    You can change to use SCI pins 8 and 9 by passing the parameter SCI_BOOT_ALT2 to the sciGetFunction in the flash_kernel_ex3__sci_flash_kernel.txt file within the CCS repo. SCI boot select switch can stay as GPIO24 low and GPIO32 high on the device.

    Register settings to use SCI pins 8 and 9 would require the BOOTPIN_CONFIG value to be 0x5AFF3224 (placed at address 0x00000D00 for emulation boot or 0x0005F008 for standalone Z1), and the Boot Mode Table Options as 0x03024100 (placed at address 0x00000D04 for emulation boot or 0x0005F00C for standalone Z1) if continuing to use the standard modes (parallel, SCI, CAN, Flash). Note that standalone Z1 is superseded by standaloneZ2, so use standalone Z2 as a backup if possible.

    For Q2:

    Yes those settings are correct, if you wish to change from the default settings.

    If you have any further questions let me know.

    Thanks,

    Charles

  • Hi, Charles

    We are checking the case of booting with boot mode selection pins (GPIO24, GPIO32) and SCI pins (GPIO8, GPIO9).

    e2e.ti.com/.../4397177

    Your first answer to BOOTPIN_CONFIG from the URL above is 0x5AFF0809 and your second answer is 0x5AFF3224. Could you give me the exact information? I'm thinking below should do the configuration, is my understanding correct? BOOTPIN_CONFIG value: 0x5AFF1820 (address for emulation boot: 0x00000D00, address for standalone boot: 0x0005F008)

    BMSP2 is disabled (0xFF), BMSP1 is set to GPIO24 (0x18), BMSP0 is set to GPIO32 (0x20).


    Also, regarding Boot Mode Table Options, your answers differ depending on the answer date and time.
    The previous answer was 0xFFFF41FF and the current answer is 0x03024100.
    which one is correct? I have read the TRM about how to set the Boot Mode Table Options, but I do not understand it very well, so I would appreciate it if you could tell me.

    Thanks,

    Eevee

  • Hi Eevee,

    You are correct, my apologies. The BOOTPIN_CONFIG should be 0x5AFF2018 and the Boot table value should be 0x03024100. As well, my previous answer for the Boot Mode Table options considered if you only cared to access the SCI Boot alternate for GPIO pins 8 and 9, whereas the current answer is a more complete solution if you still wish to access the default boot modes of Parallel, SCI (now alternate), CAN and Flash.

    Another note on the BOOTPIN_CONFIG, the value 0x5AFF2018 indicates that pin 1 will be GPIO32 and pin 0 will be GPIO24. This way by continuing to use the switch to access the various boot modes, it will follow the pattern of 00, 01, 10, 11 for each respective boot mode allowed. If the 20 and 18 pin order was to be reversed, the boot order would be different for the 2nd and 3rd boot modes listed. 

    If you have any further questions will be glad to respond.

    Thanks,

    Charles

  • Hi, Charles

    I wrote 0x5AFF1820 to 0xD0 and 0xFFFF41FF to 0xD4. I was able to write the flashing program to the F280038C EVM from GPIO8 and GPIO9 via SCI.
    Your answer is different, but is this correct?

    Thanks,

    Eevee

  • Hi Eevee,

    Yes this solution works, but as a reminder note that the GPIO 24 and 32 positions are swapped. For your solution this shouldn't cause an issue, but as it is stated the switches to be 00 10 01 11 sequence instead of 00 01 10 11. It is also okay for the Boot Mode Table if you are only concerned with SCI Boot (0xFFFF41FF).

    Thanks,

    Charles