Microchip ATMXT448UD Manual


Læs gratis den danske manual til Microchip ATMXT448UD (20 sider) i kategorien Ikke kategoriseret. Denne vejledning er vurderet som hjælpsom af 14 personer og har en gennemsnitlig bedømmelse på 4.9 stjerner ud af 7.5 anmeldelser. Har du et spørgsmål om Microchip ATMXT448UD, eller vil du spørge andre brugere om produktet?

Side 1/20
2019 Microchip Technology Inc. DS00003084A-page 1
TABLE OF CONTENTS
1.0 Introduction ................................................................................................................................................................. 1
1.1 SAMA5D3 Xplained Board ............................................................................................................................... 2
1.2 SAM Boot Assistance (SAM-BA) ...................................................................................................................... 2
1.3 Putty Terminal Program .................................................................................................................................... 3
1.4 Github Repository – maXTouch_linux .............................................................................................................. 4
2.0 Building the source and setting up the tools ................................................................................................................ 5
2.1 Device Tree Files .............................................................................................................................................. 5
2.1.1 at91-sama5d3_xplained_dm_pda4.dtsi ................................................................................................ 5
2.1.2 at91-sama5d3_xplained_pda4.dts ....................................................................................................... 5
2.2 Configuring the Kernel Options ......................................................................................................................... 5
2.3 Loading the Touch Driver as a Module ............................................................................................................. 6
2.4 Building the Kernel ............................................................................................................................................ 6
2.5 Modifying the U-boot-env.txt File ...................................................................................................................... 7
2.6 Programming the SAMA5D3 Xplained Board ................................................................................................... 8
3.0 maXTouch Linux Driver ............................................................................................................................................... 9
3.1 I2C Driver – atmel_mxt_ts.c .............................................................................................................................. 9
3.2 Object-based Protocol ...................................................................................................................................... 9
3.3 Power Up and Reset ......................................................................................................................................... 9
3.4 Downloading the Configuration ......................................................................................................................... 9
3.4.1 triggering configuration download with sysfs ...................................................................................... 10
3.4.2 Automatically downloading the configuration on driver probe ............................................................ 10
3.5 Firmware Upgrade .......................................................................................................................................... 10
4.0 Debugging the Driver ................................................................................................................................................ 12
4.1 Enabling Driver Debug Messages – dev_dbg ................................................................................................ 12
4.2 Viewing Touch Events – evtest ....................................................................................................................... 12
4.3 Viewing Touch Events – Android getevent ..................................................................................................... 13
4.4 Debug File System Interface – sysfs .............................................................................................................. 14
4.4.1 mem_access ...................................................................................................................................... 15
4.4.2 debug_enable ..................................................................................................................................... 15
4.5 Improved Debug Interface .............................................................................................................................. 15
4.6 The mxt-app Utility .......................................................................................................................................... 15
Appendix A. Revision History .............................................................................................................................................. 18
1.0 INTRODUCTION
This application note introduces the maXTouch Linux driver, its features and available debug options to help developers
with driver integration. It also provides details on how to configure and build the kernel on a test platform.
The maXTouch Linux driver is designed to support the Linux input subsystem. This driver resides in the drivers/input/
touchscreen directory of the kernel and interfaces with the hardware to generate 2D touch events to the Linux input
subsystem.
The Linux driver can be compiled as an in-built driver or as a module to be loaded after the initial kernel boot. The
application note provides details regarding function of the driver and the debug options that are available through the
touch driver along with information regarding the testing of the touch driver.
This application note assumes that the user has a Linux based PC (either actual or a virtual machine) and has basic
knowledge of the Linux OS. It also assumes basic use of Github. All testing has been done using the Ubuntu OS version
16.04. Any critical libraries or tools that need to be installed will be mentioned in this application note.
The details within this document will mainly reference the standard Linux kernel. Where possible, differences between
the Linux “distributions” (for example, Ubuntu, Android) in terms of tools, directory locations or behavior will be noted.
AN3084
Using the maXTouch Linux Driver
AN3084
DS00003084A-page 2 2019 Microchip Technology Inc.
1.1 SAMA5D3 Xplained Board
The platform used for testing and integration is the SAMA5D3 Xplained board. This SOC is a Cortex A5 ARM MPU. The
pre-built demonstration Yocto project provides a basis for touch driver testing and integration.
In this application note, the demo project linux4sam-poky-sam5d3_xplained_pda-5. 7 will be used. This can be found
at the following link:
ftp://www. at91.com/pub/demo/linux4sam_5.7/linux4sam-poky-sama5d3_xplained_pda4-5.7.zip
This project should be extracted to a local directory on the user’s PC. The content will be updated and used on the
SAMA5D3 Xplained board to develop and test the touch driver. Note that only the compressed kernel image (zImage)
and device tree binaries (.dtb) will be updated for testing; the u-boot, at91bootstrap and the Yocto project layer files
will not be modified.
The following link contains additional information regarding the demo projects for the SAMA5D3 Xplained board and
other supporting tools for the board:
https://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage
FIGURE 1: SAMA5D3 XPLAINED BOARD
1.2 SAM Boot Assistance (SAM-BA)
The SAM Boot Assistance (SAM-BA) in-system programmer is Microchip’s software for programming Microchip ARM
Thumb-based MPUs. It is run on the Linux OS platform on the user’s PC to re-program the MPU on the SAMA5D3
Xplained board.
Follow the link below to download and extract the SAM-BA program to a directory.
https://github.com/atmelcorp/sam-ba/releases
NOTE At time of writing, the latest version of the demo project is version 6.0. However, a hardware or u-boot
change is required to enable video to work. See the following locations for more details:
https://www.at91.com/linux4sam/bin/view/Linux4SAM/U-Boot#PDA_detection_at_boot
or
https://www.at91.com/linux4sam/bin/view/Linux4SAM/SelectingPDAatBoot


Produkt Specifikationer

Mærke: Microchip
Kategori: Ikke kategoriseret
Model: ATMXT448UD

Har du brug for hjælp?

Hvis du har brug for hjælp til Microchip ATMXT448UD stil et spørgsmål nedenfor, og andre brugere vil svare dig




Ikke kategoriseret Microchip Manualer

Ikke kategoriseret Manualer

Nyeste Ikke kategoriseret Manualer