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.

CCS/TMS320F28379D: Scope of access to GPIOs for the two cores in TMS320F28379D

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hello, 

Please find the below image.I am using two different codes in the two cores of TMS320F28379D. To my knowledge InitGpio() function is restricted to only one of the CPUs.Does this mean that i wont be able to access GPIOs from both the CPUs?

Please help.

Thank you

Regards,

Sindhu H

  • In cpu 1 code you will set the direction and configure the rest of the options on the gpios. Then you will select which core they belong too.

    From here on out on both cpu1 and cpu2 you can use set/clear/toggle/write/read to use the gpio assigned to that core.

  • Thank you a lot for the solution.

    Best Regards,

    Sindhu H

  • Hello,

    I am working to set up a modbus communication, which will be running in CPU2 and the other code ( control loop for the plant ) will be running CPU1. Now i have to run the codes on both the cores. Since GPIO configuration restricted to CPU1 and then can be used unversally. I am still facing problem in setting the GPIO port as SCI port.

    I assigned SCIA registers a baud rate in CPU2, which unfortunately didnt reflect in the Registers window when the code was run. How should i access my GPIO port as SCIA port in CPU2? Please help me find a solution.

    Thank you

    Best Regards,

    Sindhu H

  • So this is a general answer that covers any issues you have with CPU access. If some register or configuration is only accessable by CPU1 but you need to change it during run time of your application from CPU2, you MUST set up IPC (inter processor communication) between the two CPUs, have some specified commands that you pass from CPU2 to CPU1 in order to make those changes for you.

    Nima