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.

AM3357: Questions regarding PDK

Part Number: AM3357
Other Parts Discussed in Thread: C2000WARE

For this specific application PDK is used with TI-RTOS and a custom board is used for the PDK.

1. How do you enable a HW interrupt to detect a rising edge of a GPI. Is there documentation that explains how to do that using the PDK? 

2. What is the best way to add a custom board and use version control in a git repository?

3.  Is there an alternative to the PDK similar to C2000ware, such as source code that can be built in a project?

  • Hi Christian,

    Please see my responses below:

    How do you enable a HW interrupt to detect a rising edge of a GPI. Is there documentation that explains how to do that using the PDK? 

    The PDK has example projects which show how to configure GPIO to generate interrupts on rising edge. Please see this thread for more information: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/713966/am4379-gpio-interrupt-on-both-edges. It was for AM437x but the principle is the same and AM335x has the same example project. PDK doesn't have specific documentation about this.

    What is the best way to add a custom board and use version control in a git repository?

    For whichever component inside PDK that needs to be changed, a git repo can be generated to track changes of that component. When rebuilding the PDK, simply replace that component in the original PDK with the one in git.

     Is there an alternative to the PDK similar to C2000ware, such as source code that can be built in a project?

    There is no alternative to PDK. We recommend customers to build their applications by linking PDK's pre-built object binaries, instead of adding source code from the PDK.

    Regards,

    Jianzhong

  • Hi Jianzhong,

    Thank you for your response! The customer has feedback on their use case and an additional question. Your comments and suggestion on this would be very helpful.

    Customer Feedback:

    Just to give you our feedback regarding this tools, we think the PDK environment works very well if you use  one of the supported boards or if you have the chance to develop a board using a very similar pinout and configuration. But in our case, for every change we need to apply into the PDK we are "scared" because the implications are big, even if it is only change the behavior of an GPIO.

    I was looking for alternatives and some people use a very plain project with just the source code it needs, and seems easier to follow (I know you don't recommend that). Basically the strategy of the pre-built object binaries it could be a little bit opaque if you don't have full control of the PDK, which is a very big package.

    Additional Question:

    The other problem of the pre-built object is the debugging. Could you provide some information on how to debug these pre-built objects when you add them into the project?

    Thanks,

    Christian Greeff

  • Hi Christian,

    For creating a new custom board, you would only need to build a new board library and all the low level drivers can be used as is. Please refer to the board porting documentation here.

    The other problem of the pre-built object is the debugging. Could you provide some information on how to debug these pre-built objects when you add them into the project?

    You can rebuild the PDK with "debug" profile. Please refer to documentation here regarding how to rebuild PDK. For example, to rebuild the AM335x PDK with debug profile, you can do (in Linux):

    ~/ti/pdk_am335x_1_0_17/packages$ source ./pdksetupenv.sh
    ~/ti/pdk_am335x_1_0_17/packages$ make all LIMIT_SOCS=am335x LIMIT_BOARDS=evm335x BUILD_PROFILE=debug
    
    

    Then when you build the application with PDK libraries rebuilt with "debug" profile, you should be able to set breakpoint inside the source code of PDK components, step into the functions, etc.

    Regards,

    Jianzhong