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: How to test how long the MPOST test took?

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Tool/software:

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1353173/tms320f28p650dk-mpost-timing/5181587?tisearch=e2e-sitesearch&keymatch=MPOST#5181587

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1254709/tms320f28386d-performance-of-mpost?tisearch=e2e-sitesearch&keymatch=MPOST#

In the post above, I found that someone calculated the time taken for the MPOST test by observing the time from power-on to the change of a certain GPIO. Can I use the same method to calculate the MPOST test time in the 280039? If so, which GPIO should I observe?

  • MPOST will increase the time between when the device comes out of reset(XRSn going high) to when code execution is passed to your main function.  In order to see the time difference, you can use any GPIO and toggle it at the beginning of your "main" to know when this handover happens.  If you do this with a fresh device, you can use a scope to track the time between XRSn going inactive and this toggle; and this will be with no MPOST running.

    You can then go back in and enable MPOST in the OTP, and observe the same time delta to get the MPOST time duration.  There's not a specific GPIO here, just one that is convenient for you to monitor on your PCB, and you would add that to your code accordingly.


    Best,

    Matthew

  • In order to see the time difference, you can use any GPIO and toggle it at the beginning of your "main" to know when this handover happens. 

    I don't know how to add a GPIO operation in the main function. Could you provide me with a relevant example for reference?

  • Please take a look at this example in C2000Ware https://dev.ti.com/tirex/explore/node?node=A__AARUSlTOqQHldhD538UlGQ__C2000WARE__1kRFgrO__LATEST 

    C:\ti\c2000\C2000Ware_5_04_00_00\driverlib\f28003x\examples\led

    This will show how to configure the GPIO and toggle it.

    Best,

    Matthew