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.

TMS320F2800157: GPIO UART

Part Number: TMS320F2800157
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hello, iam working on TMS320F2800157 plateform in the context of DCDC  , and i would like to change the SCIA TX/RX on GPIO8/9  which are by default on GPIO 28/29 , how could i do that ? should i change the bootrom config ? 

Thanks in advance 

  • Hello,

    This can be changed when you initialize the device and GPIOs but utilizing the GPIO registers:

    One simple way to do this is if you use a sysconfig based project, you can easily select GPIOs 8 and 9 for your SCI and also look at the auto-generated C code. Otherwise, our software examples show GPIO initializations .you can reference. You just have to ensure you are using the right GPIO registers:

    These are described in the TRM for your reference.

    Best Regards,

    Allison

  • Hello Allison , thanks for ur response 

    in fact i would like to make it in Romboot standalone mode , i want to makemy device capalble of booting either from flash or SCI depend on a select pin which is GPIO10 , and for SCI i would like to change the gpio which are by default 28/29 , and i want to set it them to GPIO8/9 , i coulf find a way with dcsm security tool in ccs studio , please see capture below , but i still have some question about : what shoulf i do after i configure them , should i just build and flash the project , should i change another parameter ?

  • Hello,

    Please allow a few days for me to check with our bootload/rom expert on this. 

    Best Regards,

    Allison

  • Hello Allison,  i could flash this just by saving config and build project and flash ,however iw ouldlike to understand what is the différence if i put flash on  BOOTDEF0 and sci on BOOTDEF1 ? it is about the gpio level ? imean if i put flash on  BOOTDEF0 so to chose booting from flash i shoulf put GPIO10 in LOW level ? thanks you for your reply , i really appreciate ur help

  • Hi,

    Yes, it's a matter of indexing the BOOTDEF lookup table with the boot mode select pins (BMSPs) you've configured in the DCSM. Since you've enabled one BMSP (GPIO10), you can only choose between two BOOTDEFs depending on if you set GPIO10 low or high.

    • If GPIO10 is low, then BOOTDEF0 is selected (SCI boot in your case)
    • If GPIO10 is high, then BOOTDEF1 is selected (Flash boot in your case))

    I hope this clarifies the boot flow, please let me know if you have any more questions.

    Best,

    Matt

  • yes it is so helpful ,thank you for you reply 

    Have a nice day Matt