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.

AM335x WinCE BSP - controlling the pin mux



Is there any guide how to change pin mux of the Adeneo CE 7 BSP for Am335x?

I would like to understand how correlate the datasheet info into the code of pin mux in bsp_padcfg.c or whichever other file is linked to this.

For example:

The datasheet have this info:

pin 166 - GPMC_ADVN_ALE__[GPMC_ADVN_ALE/TIMER4/GPIO2_2]
pin 168 - GPMC_BE0N_CLE__[GPMC_BE0N_CLE/TIMER5/GPIO2_5]

From this, I want these pins to output TIMER4 and TIMER5. So how do I change the pin mux in the BSP code?
  • Hello,

    You can change the pin multiplexing and pad configuration in the following file:

    \BSP_WINCE_ARM_A8_02_30_00\Sources\PLATFORM\AM33X_BSP\SRC\INC\bsp_padcfg.h

    This file contains all of the current pin multiplexing for each peripheral on the AM335x EVM. For example, the NAND_PADS configures GPMC_AD0 to its primary function (MODE(0)) so that it can be used as an address/data line to the NANDFlash chip. However, if you did not have a nandflash chip on this pin and instead wanted to use it as a GPIO, you could change this to MODE(7). The definitions for what functions each pin has are in the AM335x reference manual.