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.

Pin Mux Utility

Hi

I do what is write on http://processors.wiki.ti.com/index.php/Pin_Mux_Utility_for_ARM_MPU_Processors

"1) Replace the mux.h header file with the mux.h output file from Pin Mux Utility

2) Copy the pinmux.h output file from Pin Mux Utility into the directory containing the evm.h file.

3) Modify the original evm.h file, commenting out or deleting the original section of code that

    makes the pin mux programming macro calls.

4) Replace this code with #include "pinmux.h""

Then i rebuil u-boot http://elinux.org/BeagleBoard#U-Boot

"make CROSS_COMPILE=arm-none-linux-gnueabi- mrproper make

CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_config make

CROSS_COMPILE=arm-none-linux-gnueabi- "

and I have errors

"beagle.c: In function 'misc_init_r':
beagle.c:275: error: 'PTD' undeclared (first use in this function)
......

"

What i am doing wrong ?  Please help.



  • PTD should be defined in the generated mux.h file.  Is it?

    Which U-Boot version are you applying these changes to?

    Which Sitara MPU device?

    regards

  • No, PTD is not defined in the generated mux.h file.

    I think i use the latest version U-boot . I used command: git clone git://git.denx.de/u-boot.git u-boot-main

    I select AM37xx/DM37xx device.

    I use Pin Mux Utility version 2.2.1.0

    regards, thanks for reply 

  • Sounds like some other source file is including the mux.h that you replaced with the mux.h from Pin Mux Utility.

    Some things will be implemented differently, so you may need to have both the original mux.h and the new mux.h

    with a different name that is included by the source file with the pin mux macro calls.

    Regards,

    Michael T