cyttsp 固件手动升级

本文介绍了CYTTSP7设备的配置步骤,包括开启特定的kernel选项、使用ADB进行手动升级(加载模块并推送固件),以及详细的校准过程,包括不同类型的校准命令和检查输出状态。
摘要由CSDN通过智能技术生成

kernel配置需要开启下面几个:

CONFIG_FW_LOADER_USER_HELPER 
CONFIG_FW_LOADER_USER_HELPER_FALLBACK 
CONFIG_TOUCHSCREEN_CYPRESS_CYTTSP7_DEVICE_ACCESS

手动升级:

先加载modprobe Cyttsp6_loader.ko
Using the ADB utility:
1. Start the data transfer:
adb shell "echo 1 > DEVICES/manual_upgrade"
adb shell "echo 1 > FW/loading"
sleep 1
2. Push the firmware (for example, Firmware.bin file) to the device (typically in /data directory):
adb push FW.bin /data
3. Transfer data:
adb shell "cat /data/Firmware.bin > FW/data"
sleep 1
4. Initiate flashing:
adb shell "echo 0 > FW/loading"
Using terminal in Linux (if Linux driver is used)
#echo 1 > DEVICES/manual_upgrade
#echo 1 > FW/loading
#cat path_to_firmware.bin > FW/data
#echo 0 > FW/loading
Note: If errors occur during firmware upgrade, set the following Kconfig options to ‘Y’. These may have been set by default
in some of the kernels.
CONFIG_FW_LOADER_USER_HELPER
CONFIG_FW_LOADER_USER_HELPER_FALLBACK

校准:


先加载modprobe cyttsp6_device_access.ko
4.5 Calibrate SysFs
Input: [0] Sensing Mode (Calibrate IDACs command input parameter)
[1] Perform Baseline Initialization after Calibration (0: Do not perform, 1: Perform)
Output: Status x (1: command execution failed, 0: command execution success)
[0] Calibrate IDACs Command Status (0:Success, 1:Fail)
[1] Initialize Baselines Command Status (0:Success, 1:Fail)
4.5.1 Mutual Capacitance Calibration Without Baseline Initialization
#echo 0,0 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
4.5.2 Mutual Capacitance Calibration with Baseline Initializatio
#echo 0,1 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
//status 0
4.5.3 Button Calibration without Baseline Initialization
echo 1,0 > DEVICES/mfg_test/calibrate
cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
4.5.4 Button Calibration with Baseline Initialization
#echo 1,1 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
//status
4.5.5 Self Capacitance Calibration without Baseline Initialization
#echo 2,0 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
4.5.6 Self Capacitance Calibration with Baseline Initialization
#echo 2,1 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
//status 0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值