RT3052 Modifying the Jtag interface to Gpio

Source: Internet
Author: User

according to Datasheet Documentation described, when when the Jtag_gpio_mode register is set to 1 , theJTAG pin function is gpio, and the corresponding Gpio sequence number is gpio17~gpio21.

Setting the JTAG interface to GPIO requires modifying the jtag_gpio_mode of the Gpiomode register Bits,thegpiomode Register is located in the SYSCTL Register Group, as described in the following table:

  gpiomode register Span style= "; font-family: Song body; font-size:14px" > offset to 0x60 gpiomode The actual address of the register is 0x1000 0060 jtag_gpio_mode gpiomode register 6bit position.

  sdk in system kernel driver source/linux-2.6.36.x/drivers/char/ralink_gpio.h

/*                                                                                    * Address of RALINK_ Registers                                                      */                                                                                   #define  RALINK_ Sysctl_addr              ralink_sysctl_ base      // system control#define ralink_reg_gpiomode               (ralink_sysctl_addr + 0x60)

So you can modify the jtag_gpio_mode Register directly using the macro definition.

In source/linux-2.6.36.x/drivers/char/ralink_gpio.c , find int __init ralink_gpio_init (void) function, add the following statement to the function:

Gpiomode |= (1 << 6);

It is possible to configure the JTAG pin as a GPIO to use.



RT3052 Modifying the Jtag interface to Gpio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.