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.

Are the files generated from the PinMux Utility V3.0.344 directly usable for AM437x processors?

[Subject]

We are developing an AM437x board with slight changes from the EVM board and we wanted to know if the utility will generate files that can be used directly or do we need to make changes to the generated files?

  • Trent,

    For AM437x we generate starter ware source files and a human readable table (CSV).  The source files are not usable right now due to the lack of starter ware support. What Platform/SDK are you working with?

    Mandeep

  • Mandeep

    We are waiting on Android support to be released, so we are currently working on Linux until then.

    Thanks,

    Trent

  • Mandeep

    From what we understand, StarterWare is not for us.  We think we need the PinMux utility to make changes based on our dev board.  Is using the PinMux utility the proper route to take?

    Thanks,

    Trent

  • Trent,

    You could use the utility to automatically find a pinmux configuration for you. This could be quite challenging and error prone to do by hand. To turn this into source code for your project you could either

    Export the configuration to a CSV file ( using "Generate" ) and  write code to set up the pinmux configuration for your device based on the solution in the CSV file. 

    or alternatively

    The pinmux utility supports template based code generation. Thus, you can write a template to generate code for your custom dev board. There might be a slight learning curve, but it is a very powerful feature. Unfortunately, the feature is not currently fully documented. Here are a few tips on getting started. 

    1) Take a look at the templates for the AM437x in your install at

    <install root>\pinmux\deviceData\AM437x\templates

    2) I would recommend editing one of the existing templates to get started. Click "Generate" after editing to see the effect

    3) Templates are written in javascript utilizing the http://underscorejs.org/#template

    In your previous post you also mentioned you were working with Linux. In which case I think you need "device tree" files to do the pinmux configuration. There are plans to include "device tree" as a default template in a future release of the tool.

    I hope this clears things up.

    Mandeep

  • Mandeep,

    Do you have the PINMUX project file (.pinmux) for the AM437x EVM?  I checked the templates folder you suggested and they don't seem to have what we need.  You mentioned editing one of the existing templates and clicking "Generate", but I cannot open any of the files in the PinMux utility tool because they aren't ".pinmux".  I also looked at the AM437x JSON file to see if I could edit that directly instead of using the PinMux utility tool but it seems like a very large, tedious task to edit the JSON directly.  If you do not have the PinMux project file for the AM437x EVM, do you have any suggestions on how to edit the JSON directly?

    Thanks,

    Trent

  • Trent,

    I had mis-understood your question. 

    What is your end goal?

    Mandeep

  • Mandeep,

    Assuming I want to make a custom board with one extra GPIO device connected, what header files would I need to modify so that the software is aware of the new device? 

    My understanding is that these header files (pinmux.h etc) can be generated using the pinmux utility and updated in the U-boot for all such changes. Is that correct? Our end goal is to make sure all changes to the hardware are taken into account in the U-boot source files.

    Trent

  • Trent,

    I can't answer this with my limited knowledge of the AM437x development ecosystem. Hopefully, someone here in the Sitara Processors Forum will be able to help you out.

    Best Regards,
    Mandeep