- 博客(80)
- 资源 (5)
- 收藏
- 关注
原创 FPGA之MIO与EMIO
MIO引脚直接连接在PS上,像其他普通ARM一样,不需要通过XPS进行硬件配置,直接通过SDK编程即可。MIO位置是固定好的,功能也是预先定义好的。不需要添加管脚约束。使用EMIO引脚必须通过XPS进行硬件配置,然后在PS部分使用SDK进行编程控制。
2023-05-18 09:56:53
359
原创 博客摘录「 Xilinx FPGA管脚XDC约束之:物理约束」2023年5月17日
差分信号约束,只约束P管脚即可,系统自动匹配N管脚约束,当然_P和_N管脚都约束也没有问题;端口名称为数组时,需要用{}括起来,端口名不能为关键字。
2023-05-17 11:27:55
434
原创 bat启动putty连接串口
putty -serial com5 -sercfg 115200,8,n,1,N -sessionlog putty.log'-serial com5' 表示串口5。‘-sercfg 115200,8,n,1, n’ 表示波特率为115200,8个数据位,没有奇偶校验,1个停止位,没有流控制。'-sessionlog putty.log' 表示保存log。...
2022-05-31 13:52:37
1107
原创 值为0时使用上一次非0值并且只使用一次
D = [5, 0, 5, 0, 0, 5, 0, 0, 0, 5]NEW_D = []last = 0for d in D: if d == 0 and last != 0: d = last last = 0 else: last = d NEW_D.append(d)print(D)print(NEW_D)[5, 0, 5, 0, 0, 5, 0, 0, 0, 5][5, 5, 5, 5, 0, 5, 5.
2022-05-25 11:49:29
124
原创 包含静态库.a文件编译报错
gcc/linux-x86/arm/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/lib/libg.a(lib_a-sbrkr.o): In function `_sbrk_r':sbrkr.c:(.text._sbrk_r+0x18): undefined reference to `_sbrk'/gcc/linux-x86/arm/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/lib/libg.a(lib_a-writ.
2022-05-11 19:18:00
860
2
原创 shell修改bin文件
od -tx1 old.bin0000000 c8 00 00 00 55 01 00 00 dc 05 00 00 68 06 00 000000020echo " c8 00 00 00 55 01 00 00 dc 05 00 00 68 06 00 00" | awk '{ gsub(" ","\s*"); print $0}'\s*c8\s*00\s*00\s*00\s*55\s*01\s*00\s*00\s*dc\s*05\s*00\s*00\s*68\s*06\s*00\s*00.
2022-05-11 13:55:38
957
1
原创 不熟悉 excel,使用 python 将数据按要求转置
1. 将数据 按列拷贝至 pydatain.txt 文件中, 并在文件末尾回车两行,如下2. 执行 python pyexcel.py 脚本,生成 pydataout.txt 文件,如下3. 将数据拷贝至 excel 表格中Python 源码:#coding:utf-8import numpy as npfr = open('./pydatain.txt'...
2020-01-19 14:34:38
2462
原创 墙裂推荐的工具软件及插件神器
工具软件本地搜索Everything百度云下载 PanDownload下载工具 IDM逻辑分析仪串口工具 SecureCRT解压缩工具BandizipChrome插件神器ssh远程连接Secure Shell Extension视频下载工具Video DownloadHelper你懂的Proxy SwitchyOmegaWeb资源管理器...
2019-07-04 14:23:01
577
原创 编译阶段打印宏的预编译值
#define __PRINT_MACRO(x) #x#define PRINT_MARCO(x) #x"=" __PRINT_MACRO(x)#pragma message(PRINT_MARCO(DEBUG_MARCO_TEST_VALUE))#error "test"编译到error会报错停止编译,编译log往前可以看到宏DEBUG_MARCO_TEST_VALUE的值...
2019-06-26 15:26:45
4383
原创 Android5.1源码修改USB为串口UART
device/XX/XXXX/ProjectConfig.mkMTK_UART_USB_SWITCH = yeskernel-3.10/arch/arm/configs/XXXX_debug_defconfigCONFIG_MTK_UART_USB_SWITCH=ymake -j2 lkmake -j2 bootimage
2019-06-26 14:59:18
719
原创 MTK平台DWS四个路径
bootable/bootloader/preloader/custom/amt6795_evb_m/dct/dct/codegen.dwsbootable/bootloader/lk/target/amt6795_evb_m/dct/dct/codegen.dwskernel-3.10/drivers/misc/mediatek/mach/mt6795/amt6795_evb...
2019-06-26 14:47:29
2357
原创 MTK平台实时打印GPIO状态
while true;do adb shell cat /sys/class/misc/mtgpio/pin |grep -E 65;donewhile true;do adb shell cat /sys/devices/platform/1000b000.pinctrl/mt_gpio |grep -E 65;done
2019-06-26 14:41:33
519
1
原创 Ubuntu连接USB新设备
lsusbBus 001 Device 038: ID 0e8d:200c MediaTek Inc.sudo vim /etc/udev/rules.d/51-android.rulesSUBSYSTEM==usb, ATTR{idVendor}==0e8d, ATTR{idProduct}==200c, MODE=0666sudo chmod a+r...
2019-06-26 14:31:10
1362
原创 Linux下命令解压zip和rar及tar.gz
1.zipfind . -name *.zip | xargs -n1 unzip2.rarfind . -name *.rar | xargs -n 1 unrar x3.tar.gzfind . -name *.tar.gz | xargs -n1 tar -zxvf
2019-06-26 14:18:58
448
原创 python执行子目录下所有的analyzer.py
find . -name analyzer.py | xargs -n1 -I {} python {}
2019-06-26 11:51:19
573
原创 如何手动adb启动展讯ylog
如何手动adb启动展讯ylog1.查找包名:adb shell pm list packages -f |grep logpackage:/vendor/app/LogManager/LogManager.apk=com.sprd.logmanager2.确定主Activity:adb shell dumpsys package com.sprd.logma...
2019-06-26 11:43:46
2330
原创 驱动设备节点3ch修改命令
3chadb shell ls -lZ /dev/ |grep test_devcrw-rw---- 1 system system u:object_r:test_device:s0 10, 53 2018-01-10 03:20 test_dev1.chmodadb shell chmod 660 /dev/test_devcrw-rw----...
2019-06-26 11:27:55
396
1
原创 一条命令连接wifi使用adb
adb disconnect;sleep 2; adb root; adb wait-for-device devices;IP_ADDR=$(adb shell ifconfig |grep -A 1 "wlan*");IP_ADDR=${IP_ADDR#*addr:};IP_ADDR=${IP_ADDR%% *};adb tcpip 5555;adb connect ${IP_ADDR};a...
2019-06-26 11:07:10
1384
翻译 Dumping User and Kernel Stacks on Kernel Events
Dumping User and Kernel Stacks on Kernel EventsDumping the native kernel and userspace stack when a certain code path in the kernel is executed can help with understanding the code flow when you ar...
2019-06-25 17:26:56
309
翻译 Using GDB
Using GDBThe GNU Project debugger (GDB) is a commonly used Unix debugger. This page details using gdb to debug Android apps and processes for platform developers. For third-party app development, se...
2019-06-24 18:55:53
473
翻译 Using Strace
Using StraceStrace enables you to see the system calls a process makes and what those system calls return.Building straceTo build strace, run the following:mmma -j6 external/straceAtt...
2019-06-24 11:37:23
227
原创 使用Android工具SDK中的monitor抓CPU线程
参考:https://developer.android.com/studio/command-line/systrace 【配图摄于深圳大沙河西丽大学城段2018年9月初】1.2.3.设置参数,点击OK,开始抓CPU线程并开始复现问题,时间不要太长,然后结束。4....
2018-09-19 21:40:13
1005
原创 adb循环打印log
adb shell "while true;do cat cmd;done"【配图摄于浙江横店秦王宫2017年元旦】【配图摄于江西赣州信丰大桥2017年国庆】eg.过滤多个pin脚adb shell;while true;do cat sys/class/misc/mtgpio/pin |grep -E " 65| 66| 67| 68";doneadb shel
2017-10-08 12:24:45
1292
原创 Track change of IInterface::asBinder from instance method to static method
IInterface::asBinder在android 5.1源码下编译通过,在android 6.0源码下编译编译报错,报错信息如下:Track change of IInterface::asBinder from instance method to static method原因:android-5.1.1_r1-to-android-6.0.0_r1
2017-01-12 22:02:21
1141
原创 user-debug不能remount
android系统在lunch的时候可以选择eng、user-debug、eng。都知道eng是本身root的,user是不可以root的;那么user-debug是否可以root呢?root归root,user-debug在root后如果不能remount也是不可以push,只是只读。那么user-debug如何才可以root呢,就需要在编译make的时候加上
2016-12-30 15:40:10
1619
原创 fingerprintd 编译进系统
/build/target/product/embedded.mk----------------------------RODUCT_PACKAGES += \adb \adbd \atrace \bootanimation \debuggerd \fingerprintd \dumpstate \dumpsys \fastboot \--
2016-12-27 17:09:00
1326
原创 public final class Fingerprint implements Parcelable
Fingerprint.java/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with
2016-12-27 11:15:37
689
原创 编译32&64位 fingreprintd
/system/core/fingerprintd/Android.mkselect build 32 or 64LOCAL_MULTILIB :=32 #test bruce
2016-12-25 14:00:08
608
原创 Android M 指纹框架
几个路径:/frameworks/base/services/core/java/com/android/server/fingerprint//frameworks/base/core/java/android/hardware/fingerprint//system/core/fingerprintd//hardware/libhardware/include/hard
2016-12-25 13:43:59
3683
原创 驱动是否编译进内核
大家都知道,在编译内核时,在makefile中将驱动模块-y就可以编译进内核。虽然会生成.o文件,但是要进一步确认是否编译进内核;还可以通过在System.map文件搜索驱动的相关函数是否存在。out/target/product/xxx/obj/KERNEL_OBJ/System.map
2016-12-14 11:07:37
1137
原创 查看中断号cat /proc/interrupts |grep sw_irq
查看中断号cat /proc/interrupt |grep sw_irq
2016-12-06 17:32:16
4816
原创 java语言 byte[]转int
java语言 byte[]转introot@ubuntu:/media/mtk6795/alps/sunwave_pub#root@ubuntu:/media/mtk6795/alps/sunwave_pub# vim test.javaroot@ubuntu:/media/mtk6795/alps/sunwave_pub# cat test.javap
2016-11-26 17:17:11
539
原创 c语言 int与byte[]互相转换
c语言 int与byte[]互相转换root@ubuntu:/media/mtk6795/alps/sunwave_pub# gcc -g test.c root@ubuntu:/media/mtk6795/alps/sunwave_pub# gdb ./a.out GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04Cop
2016-11-26 10:32:26
15376
原创 regulator_get
Regulator Consumer Driver InterfaceThis text describes the regulator interface for consumer device drivers. Please see overview.txt for a description of the terms used in this text.1. Consumer Regulat
2016-11-05 10:49:40
1173
1
原创 mtk打印spi注册log
最近被spi整惨了,master的注册先后问题。使用SPI_DEBUG,还打印不出log,我也是醉。pr_err打印信息级别那么如何看spi的log呢:修改(3.10内核):/mtk6795/alps/kernel-3.10/drivers/misc/mediatek/spi/mt6795/spi.c1、打开宏#define SPI_DE
2016-11-04 12:33:39
949
原创 VMWare不能上网
vi /etc/NetworkManager/NetworkManager.conf改managed=true 为 falsesudo /etc/init.d/networking restartsudo /etc/init.d/network-manager restart
2016-10-31 20:18:41
455
shell 格式化 html 脚本
2022-09-19
不熟悉 excel,使用 python 将数据按要求转置.zip
2020-01-19
Debug kernel panics _ Embedded System Blog.pdf
2019-07-03
linux java7 jdk+openjdk
2018-05-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人