atmel_ptc 800000.ptc: Loading configuration: microchip/ptc_cfg.bin atmel_ptc 800000.ptc: Direct firmware load for microchip/ptc_cfg.bin failed with error -2 atmel_ptc 800000.ptc: Can't load configuration microchip/ptc_cfg.bin atmel_ptc: probe of 800000.ptc failed with error -2It happens only because the
ptc_cfg.bin
file is missing. It is the configuration file loaded by default. As we don't know which wing you are going to use there is no default configuration file provided. If you want to use a specific configuration file, you can use the PTC driver parameter configuration_file
.
Helper scripts are provided in the home directory to remove the atmel_ptc module as it has not been probed successfully during the boot time and to insert the module with the appropriate configuration file:
# ls start_ptc_qt1_mutual_demo start_ptc_qt2_mutual_demo start_ptc_qt1_self_demo start_ptc_qt6_mutual_demoLaunch the script matching the QT wing you are using. For instance, for the QT1 Mutual Capacitance, do:
# ./start_ptc_qt1_mutual_demo remove atmel_ptc driver... load atmel_ptc module with ptc_cfg_qt1_mutual configuration... atmel_ptc 800000.ptc: Loading configuration: microchip/ptc_cfg_qt1_mutual.bin atmel_ptc 800000.ptc: firmware version: PPP_VER_006.004, tool version: MQC_VER_102 atmel_ptc 800000.ptc: date: 201802221828, description: qt1mc parameters input: atmel_ptc_buttons as /devices/platform/ahb/ahb:apb/800000.ptc/input/input3 input: atmel_ptc_slider as /devices/platform/ahb/ahb:apb/800000.ptc/input/input1 input: atmel_ptc_wheel as /devices/platform/ahb/ahb:apb/800000.ptc/input/input2 start ptc_qt1_mutual_demo... demo running...Then you can play with the wing. Hit Ctrl-C to stop the demo. If you want to switch to another wing, please reboot the board. Because of pinmuxing constraints, some LEDs or sensors are not working, it's not a bug! You can find the source code of the PTC examples here: ptc_examples page.
WebFaqBaseForm | |
---|---|
Boards | Sama5d27WLSom1EK, Sama5d2PtcEK |
Components | linux-4.9-at91, linux-4.14-at91, linux-4.19-at91, linux-5.4-at91, linux-5.10-at91, linux-5.15-mchp, linux-6.1-mchp |
Summary | How to use PTC |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.