[单片机框架][调试功能] 回溯案发现场

news2024/12/23 11:53:00

程序莫名死机跑飞,不知道问题,那么下面教你回溯错误源

回溯案发现场

  • 一、修改HardFault_Handler
    • 1. xx.s 在启动文件,找到HardFault_Handler。并修改。
    • 2. 定义HardFault_Handler_C函数。(主要是打印信息并存储Flash)
    • 3. 根据回读PC和LR地址,通过MAP文件找到对应位置,判断引起硬件错误的原因。
  • 二、定义DefaultISR,查看是否有中断未声明
  • 三、如果使用了RTX,则需要重定义osRtxErrorNotify函数。
  • 四、读取错误信息
  • 举例

jianqiang.xue



一、修改HardFault_Handler

1. xx.s 在启动文件,找到HardFault_Handler。并修改。

HardFault_Handler\
                PROC
                EXPORT  HardFault_Handler         [WEAK]
                MOV     R0, sp
                IMPORT  HardFault_Handler_C
                BL      HardFault_Handler_C
                ENDP

2. 定义HardFault_Handler_C函数。(主要是打印信息并存储Flash)

void HardFault_Handler_C(unsigned int* hardfault_args) {
    HardFault_t info;
    info.r0 = ((unsigned long)hardfault_args[0]);
    info.r1 = ((unsigned long)hardfault_args[1]);
    info.r2 = ((unsigned long)hardfault_args[2]);
    info.r3 = ((unsigned long)hardfault_args[3]);

    info.r12 = ((unsigned long)hardfault_args[4]);
    info.lr = ((unsigned long)hardfault_args[5]);
    info.pc = ((unsigned long)hardfault_args[6]);
    info.psr = ((unsigned long)hardfault_args[7]);
    info.BFAR = (*((volatile unsigned long*)(0xE000ED38)));
    info.CFSR = (*((volatile unsigned long*)(0xE000ED28)));
    info.HFSR = (*((volatile unsigned long*)(0xE000ED2C)));
    info.DFSR = (*((volatile unsigned long*)(0xE000ED30)));
    info.AFSR = (*((volatile unsigned long*)(0xE000ED3C)));
    info.SCB_SHCSR = SCB->SHCSR;

    uint8_t data[70], len = 0;
    len = snprintf((char *)data,70, "\n[Hard fault handler - all num in hex] %x\r\n", *hardfault_args);
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "R0 = %x\r\nR1 = %x\r\nR2 = %x\r\nR3 = %x\r\n", info.r0, info.r1, info.r2, info.r3);
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "R12 = %x\r\n", info.r12);
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "LR [R14] = %x,subroutine call return address\r\n", info.lr);
    McuUartWriteString(&ble_uart, data, len);
    len = snprintf((char *)data,70, "PC [R15] = %x,program counter\r\n", info.pc);
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "PSR = %x\r\nBFAR = %lx\r\n", info.psr, (*((volatile unsigned long*)(0xE000ED38))));
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "CFSR = %lx\r\nHFSR = %lx\r\nDFSR = %lx\r\n",
        (*((volatile unsigned long*)(0xE000ED28))), (*((volatile unsigned long*)(0xE000ED2C))), (*((volatile unsigned long*)(0xE000ED30))));
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "AFSR = %lx\r\nSCB_SHCSR = %x\r\n",
        (*((volatile unsigned long*)(0xE000ED3C))), SCB->SHCSR);
    McuUartWriteString(&ble_uart, data, len);

    info.event = 0;
    kv_set_env(0xFF00, &info, sizeof(HardFault_t)); // 记录到Flash
    while (1);
}

3. 根据回读PC和LR地址,通过MAP文件找到对应位置,判断引起硬件错误的原因。

二、定义DefaultISR,查看是否有中断未声明

#define VECTORNUM    (*(volatile uint32_t*)(0xE000ED04))
void DefaultISR(void) {
    HardFault_t info;
    uint8_t data[50], len;
    len = sprintf((char *)data, "\n default_isr %d,%x \n", (uint8_t)VECTORNUM, (uint32_t)VECTORNUM);
    McuUartWriteString(&ble_uart, data, len);
    info.event = 1;
    info.VECTORNUM_ADDR = VECTORNUM;
    kv_set_env(0xFF00, &info, sizeof(HardFault_t)); // 记录到Flash
    while(1);
}

根据打印出来的数据,判断VECTOR,是怎么原因触发中断的。查对应芯片向量表,得知导致原因。
在这里插入图片描述

在这里插入图片描述

三、如果使用了RTX,则需要重定义osRtxErrorNotify函数。

uint32_t osRtxErrorNotify(uint32_t code, void* object_id) {
    HardFault_t info;
    (void)object_id;
    uint8_t data[100], len = 0;
    switch (code) {
        case osRtxErrorStackOverflow:
            len = sprintf((char *)data, "\n Stack overflow detected for thread (thread_id=0x%x)\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // Stack overflow detected for thread (thread_id=object_id)
            break;
        case osRtxErrorISRQueueOverflow:
            len = sprintf((char *)data, "\n ISR Queue overflow detected when inserting object 0x%x\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // ISR Queue overflow detected when inserting object (object_id)
            break;
        case osRtxErrorTimerQueueOverflow:
            len = sprintf((char *)data, "\n User Timer Callback Queue overflow detected for timer (timer_id=0x%x)\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // User Timer Callback Queue overflow detected for timer (timer_id=object_id)
            break;
        case osRtxErrorClibSpace:
            len = sprintf((char *)data, "\n Standard C/C++ library libspace not available: increase OS_THREAD_LIBSPACE_NUM 0x%x\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // Standard C/C++ library libspace not available: increase OS_THREAD_LIBSPACE_NUM
            break;
        case osRtxErrorClibMutex:
            len = sprintf((char *)data, "\n Standard C/C++ library mutex initialization failed 0x%x\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // Standard C/C++ library mutex initialization failed
            break;
        default:
            // Reserved
            break;
    }
    info.event = 2;
    info.RTX_CODE = code;
    info.RTX_OBJ_ID = (uint32_t)object_id;
    kv_set_env(0xFF00, &info, sizeof(HardFault_t)); // 记录到Flash
    for (;;) {
    }
    // return 0U;
}

四、读取错误信息

采用ATCMD读取,如下

#ifdef ATCMD_EN
// 在功能模块中定义一个标准函数
static int atcmd_backtrack(atcmd_pack_t *pack) {
    HardFault_t *info = NULL;
    uint8_t buff[100], len;
    info = kv_get_env(0xFF00);
    if (info == NULL) {
        strcat((char*)buff, AT_ERROR);
    } else {
        if (info->event == 0) {
            len = snprintf((char *)buff, 100, "R0 = %x\r\nR1 = %x\r\nR2 = %x\r\nR3 = %x\r\nR12 = %x\r\n", info->r0, info->r1, info->r2, info->r3, info->r12);
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "LR [R14] = %x,subroutine call return address\r\n", info->lr);
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "PC [R15] = %x,program counter\r\n", info->pc);
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "PSR = %x\r\nBFAR = %lx\r\n", info->psr, (*((volatile unsigned long*)(0xE000ED38))));
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "CFSR = %lx\r\nHFSR = %lx\r\nDFSR = %lx\r\n",
                (*((volatile unsigned long*)(0xE000ED28))), (*((volatile unsigned long*)(0xE000ED2C))), (*((volatile unsigned long*)(0xE000ED30))));
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "AFSR = %lx\r\nSCB_SHCSR = %x\r\n",
                (*((volatile unsigned long*)(0xE000ED3C))), SCB->SHCSR);
            pack->reply(buff, strlen((char*)buff));
            memset(buff, 0, 100);
        } else if (info->event == 1) {
            len = snprintf((char *)buff, 100, "\n default_isr %d,%x \n", (uint8_t)info->VECTORNUM_ADDR, (uint32_t)info->VECTORNUM_ADDR);
        } else if (info->event == 2) {
            len = snprintf((char *)buff, 100, "\n RTX_ERR CODE=0x%x, OBJ_ID=0x%x \n", (uint8_t)info->RTX_CODE, (uint32_t)info->RTX_OBJ_ID);
        }
        strcat((char*)buff, AT_OK);
    }

    pack->reply(buff, strlen((char*)buff));
    return 0;
}

// 注册AT指令,传入标准函数
ATCMD_INIT("AT+BACKTRACK?", atcmd_backtrack);
#endif

举例

/********************************************************************************
 * @file    backtrack.c
 * @author  jianqiang.xue
 * @Version V1.0.0
 * @Date    2023-02-10
 * @brief   记录错误原因,方便追溯问题源
 ********************************************************************************/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>

#include "cmsis_os2.h"
#include "os_api.h"
#include "SKEAZ1284.h"
#include "atcmd_slave.h" // 自行添加[Module\atcmd\atcmd_slave.c]

#include "kv_sys.h"
#include "mcu_uart.h"
#include "ecu_cc2642.h"
#include "edebug.h"

typedef struct __PACKED {
    uint32_t event; // 0--HardFault 1--DefaultISR 2--osRtxErrorNotify
    // HardFault_Handler
    uint32_t r0;
    uint32_t r1;
    uint32_t r2;
    uint32_t r3;
    uint32_t r12;
    uint32_t lr;
    uint32_t pc;
    uint32_t psr;
    uint64_t BFAR;
    uint64_t CFSR;
    uint64_t HFSR;
    uint64_t DFSR;
    uint64_t AFSR;
    uint64_t SCB_SHCSR;

    // DefaultISR
    uint32_t VECTORNUM_ADDR;

    // osRtxErrorNotify
    uint32_t RTX_CODE;
    uint32_t RTX_OBJ_ID;
} HardFault_t;

void HardFault_Handler_C(unsigned int* hardfault_args) {
    HardFault_t info;
    info.r0 = ((unsigned long)hardfault_args[0]);
    info.r1 = ((unsigned long)hardfault_args[1]);
    info.r2 = ((unsigned long)hardfault_args[2]);
    info.r3 = ((unsigned long)hardfault_args[3]);

    info.r12 = ((unsigned long)hardfault_args[4]);
    info.lr = ((unsigned long)hardfault_args[5]);
    info.pc = ((unsigned long)hardfault_args[6]);
    info.psr = ((unsigned long)hardfault_args[7]);
    info.BFAR = (*((volatile unsigned long*)(0xE000ED38)));
    info.CFSR = (*((volatile unsigned long*)(0xE000ED28)));
    info.HFSR = (*((volatile unsigned long*)(0xE000ED2C)));
    info.DFSR = (*((volatile unsigned long*)(0xE000ED30)));
    info.AFSR = (*((volatile unsigned long*)(0xE000ED3C)));
    info.SCB_SHCSR = SCB->SHCSR;

    uint8_t data[70], len = 0;
    len = snprintf((char *)data,70, "\n[Hard fault handler - all num in hex] %x\r\n", *hardfault_args);
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "R0 = %x\r\nR1 = %x\r\nR2 = %x\r\nR3 = %x\r\n", info.r0, info.r1, info.r2, info.r3);
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "R12 = %x\r\n", info.r12);
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "LR [R14] = %x,subroutine call return address\r\n", info.lr);
    McuUartWriteString(&ble_uart, data, len);
    len = snprintf((char *)data,70, "PC [R15] = %x,program counter\r\n", info.pc);
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "PSR = %x\r\nBFAR = %lx\r\n", info.psr, (*((volatile unsigned long*)(0xE000ED38))));
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "CFSR = %lx\r\nHFSR = %lx\r\nDFSR = %lx\r\n",
        (*((volatile unsigned long*)(0xE000ED28))), (*((volatile unsigned long*)(0xE000ED2C))), (*((volatile unsigned long*)(0xE000ED30))));
    McuUartWriteString(&ble_uart, data, len);

    len = snprintf((char *)data,70, "AFSR = %lx\r\nSCB_SHCSR = %x\r\n",
        (*((volatile unsigned long*)(0xE000ED3C))), SCB->SHCSR);
    McuUartWriteString(&ble_uart, data, len);

    info.event = 0;
    kv_set_env(0xFF00, &info, sizeof(HardFault_t)); // 记录到Flash
    while (1);
}

#define VECTORNUM    (*(volatile uint32_t*)(0xE000ED04))
void DefaultISR(void) {
    HardFault_t info;
    uint8_t data[50], len;
    len = sprintf((char *)data, "\n default_isr %d,%x \n", (uint8_t)VECTORNUM, (uint32_t)VECTORNUM);
    McuUartWriteString(&ble_uart, data, len);
    info.event = 1;
    info.VECTORNUM_ADDR = VECTORNUM;
    kv_set_env(0xFF00, &info, sizeof(HardFault_t)); // 记录到Flash
    while(1);
}

uint32_t osRtxErrorNotify(uint32_t code, void* object_id) {
    HardFault_t info;
    (void)object_id;
    uint8_t data[100], len = 0;
    switch (code) {
        case osRtxErrorStackOverflow:
            len = sprintf((char *)data, "\n Stack overflow detected for thread (thread_id=0x%x)\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // Stack overflow detected for thread (thread_id=object_id)
            break;
        case osRtxErrorISRQueueOverflow:
            len = sprintf((char *)data, "\n ISR Queue overflow detected when inserting object 0x%x\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // ISR Queue overflow detected when inserting object (object_id)
            break;
        case osRtxErrorTimerQueueOverflow:
            len = sprintf((char *)data, "\n User Timer Callback Queue overflow detected for timer (timer_id=0x%x)\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // User Timer Callback Queue overflow detected for timer (timer_id=object_id)
            break;
        case osRtxErrorClibSpace:
            len = sprintf((char *)data, "\n Standard C/C++ library libspace not available: increase OS_THREAD_LIBSPACE_NUM 0x%x\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // Standard C/C++ library libspace not available: increase OS_THREAD_LIBSPACE_NUM
            break;
        case osRtxErrorClibMutex:
            len = sprintf((char *)data, "\n Standard C/C++ library mutex initialization failed 0x%x\n", (uint32_t)object_id);
            McuUartWriteString(&ble_uart, data, len);
            // Standard C/C++ library mutex initialization failed
            break;
        default:
            // Reserved
            break;
    }
    info.event = 2;
    info.RTX_CODE = code;
    info.RTX_OBJ_ID = (uint32_t)object_id;
    kv_set_env(0xFF00, &info, sizeof(HardFault_t)); // 记录到Flash
    for (;;) {
    }
    // return 0U;
}

#ifdef ATCMD_EN
// 在功能模块中定义一个标准函数
static int atcmd_backtrack(atcmd_pack_t *pack) {
    HardFault_t *info = NULL;
    uint8_t buff[100], len;
    info = kv_get_env(0xFF00);
    if (info == NULL) {
        strcat((char*)buff, AT_ERROR);
    } else {
        if (info->event == 0) {
            len = snprintf((char *)buff, 100, "R0 = %x\r\nR1 = %x\r\nR2 = %x\r\nR3 = %x\r\nR12 = %x\r\n", info->r0, info->r1, info->r2, info->r3, info->r12);
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "LR [R14] = %x,subroutine call return address\r\n", info->lr);
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "PC [R15] = %x,program counter\r\n", info->pc);
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "PSR = %x\r\nBFAR = %lx\r\n", info->psr, (*((volatile unsigned long*)(0xE000ED38))));
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "CFSR = %lx\r\nHFSR = %lx\r\nDFSR = %lx\r\n",
                (*((volatile unsigned long*)(0xE000ED28))), (*((volatile unsigned long*)(0xE000ED2C))), (*((volatile unsigned long*)(0xE000ED30))));
            pack->reply(buff, strlen((char*)buff));
            len = snprintf((char *)buff, 100, "AFSR = %lx\r\nSCB_SHCSR = %x\r\n",
                (*((volatile unsigned long*)(0xE000ED3C))), SCB->SHCSR);
            pack->reply(buff, strlen((char*)buff));
            memset(buff, 0, 100);
        } else if (info->event == 1) {
            len = snprintf((char *)buff, 100, "\n default_isr %d,%x \n", (uint8_t)info->VECTORNUM_ADDR, (uint32_t)info->VECTORNUM_ADDR);
        } else if (info->event == 2) {
            len = snprintf((char *)buff, 100, "\n RTX_ERR CODE=0x%x, OBJ_ID=0x%x \n", (uint8_t)info->RTX_CODE, (uint32_t)info->RTX_OBJ_ID);
        }
        strcat((char*)buff, AT_OK);
    }

    pack->reply(buff, strlen((char*)buff));
    return 0;
}

// 注册AT指令,传入标准函数
ATCMD_INIT("AT+BACKTRACK?", atcmd_backtrack);
#endif

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/337475.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

javascript测试题

一、填空题 1. JavaScript 有两种引用数据类型 &#xff1a;___数组__、_____对象_ __。2. Javascript 通过___setTimeout______延迟指定时间后&#xff0c;去执行某程序。 3. Javascript 里 String 对象通过____indexOf____方法取第一次出现子字符 串的字符位置。4. Javascrip…

动态规划-背包问题

文章目录一、背包问题1. 背包问题简介2. 背包问题解决方法二、01 背包问题1. 实现思路2. 实现代码三、完全背包问题1. 实现思路2. 实现代码四、多重背包问题&#xff08;一&#xff09;1. 实现思路2. 实现代码五、多重背包问题&#xff08;二&#xff09;1. 实现思路2. 实现代码…

【C++之容器篇】精华:vector常见函数的接口的熟悉与使用

目录前言一、认识vector1. 介绍2. 成员类型二、默认成员函数&#xff08;Member functions&#xff09;1. 构造函数2. 拷贝构造函数vector (const vector& x);3. 析构函数4. 赋值运算符重载函数三、迭代器&#xff08;Iterators&#xff09;1. 普通对象的迭代器2. const对象…

4.5.3 ArrayList

文章目录1.特点2. 练习:ArrayList测试3.ArrayList扩容1.特点 存在java.util包中内部是用数组结构存放数据,封装数组的操作,每个对象都有下标内部数组默认的初始容量是10,如果不够会以1.5倍的容量增长查询快,增删数据效率会低 2. 练习:ArrayList测试 package partThree;import…

ROS2机器人编程简述humble-第四章-COMPUTATION GRAPH .2

下图所示&#xff0c;机器人和障碍物直接距离&#xff1a;可以看到如果是单线雷达&#xff0c;这种测距和传感器安装的位置密切相关。chatgpt&#xff1a;ROS2机器人的COMPUTATION GRAPH概念是指&#xff0c;通过构建一个图形结构&#xff0c;将机器人的计算任务分解成一系列的…

蓝桥杯-最长公共子序列(线性dp)

没有白走的路&#xff0c;每一步都算数&#x1f388;&#x1f388;&#x1f388; 题目描述&#xff1a; 已知有两个数组a,b。已知每个数组的长度。要求求出两个数组的最长公共子序列 序列 1 2 3 4 5 序列 2 3 2 1 4 5 子序列&#xff1a;从其中抽掉某个或多个元素而产生的新…

libVLC 视频裁剪

作者: 一去、二三里 个人微信号: iwaleon 微信公众号: 高效程序员 裁剪是指去除图像的外部部分,也就是从图像的左,右,顶部和/或底部移除一些东西。通常在视频中,裁剪是一种通过剪切不需要的部分来改变宽高比的特殊方式。 尤其是在做视频墙时,往往需要处理多个 vlc 实例…

【排序算法】归并排序(Merge Sort)

将两个的有序数列合并成一个有序数列&#xff0c;我们称之为"归并"。归并排序(Merge Sort)就是利用归并思想对数列进行排序。归并排序介绍根据具体的实现&#xff0c;归并排序包括"从上往下"和"从下往上"2种方式。从下往上的归并排序将待排序的数…

Java常见的六种线程池、线程池-四种拒绝策略总结

点个关注&#xff0c;必回关 一、线程池的四种拒绝策略&#xff1a; CallerRunsPolicy - 当触发拒绝策略&#xff0c;只要线程池没有关闭的话&#xff0c;则使用调用线程直接运行任务。 一般并发比较小&#xff0c;性能要求不高&#xff0c;不允许失败。 但是&#xff0c;由于…

SpringCloud(20):Sentinel原理

1.Sentinel主要功能设计理念 1.1 流量控制 流量控制在网络传输中是一个常用的概念&#xff0c;它用于调整网络包的发送数据。然而&#xff0c;从系统稳定性角度考虑&#xff0c;在处理请求的速度上&#xff0c;也有非常多的讲究。任意时间到来的请求往往是随机不可控的&#…

排序:归并排序

一、归并 li[2,4,5,7,//1,3,6,8]#归并的前提是必须两部分排好序 def merge(li,low,mid,high):ilowjmid1ltmp[]while i<mid and j<high: #只要左右两边都有数if li[i]<li[j]:ltmp.append(li[i])i1else:ltmp.append(li[j])j1#while执行完&#xff0c;肯定有一部分没数…

MDB 5 UI-KIT Bootstrap 5 最新版放送

顶级开源 UI 套件&#xff0c;Bootstrap v5 和 v4 的材料设计&#xff0c;jQuery 版本&#xff0c;数百个优质组件和模板&#xff0c;所有一致的&#xff0c;有据可查的&#xff0c;可靠的超级简单&#xff0c;1分钟安装简单的主题和定制 受到超过 3,000,000 名开发人员和设计师…

工业互联网时代,VR工厂如何实现多媒体营销?

2023开年以来&#xff0c;国内消费复苏脚步逐渐加快&#xff0c;无论是餐饮、旅游还是电影市场人气逐渐旺盛&#xff0c;可以看到消费市场逐渐暖起来。而工业互联网将会是产业数字化的主要抓手&#xff0c;VR工厂是新时期、新形势下&#xff0c;运用“互联网”思维&#xff0c;…

ChatGPT简要解读(三) - ChatGPT发展历程及模型训练机制

&#x1f482; 个人主页: 同学来啦&#x1f91f; 版权: 本文由【同学来啦】原创、在CSDN首发、需要转载请联系博主 &#x1f4ac; 如果文章对你有帮助&#xff0c;欢迎关注、点赞、收藏和订阅专栏哦 文章目录&#x1f423; 一、发展历程&#x1f534; 1、基本概念&#x1f7e0…

Android图形显示流程简介

注&#xff1a;本文缩写说明本文代码都是基于Android S一、概述本文将对从App画出一帧画面到这帧画面是如何到达屏幕并最终被人眼看到的这一过程进行简要分析&#xff0c;并将这其中涉及到的各个流程与其在systrace上的体现对应起来&#xff0c;期望最终能够让读者对Android系统…

Geek Uninstaller:向流氓软件火力全开,超良心的软件彻底卸载工具

写在前面 我们在电脑上安装软件&#xff0c;以及在使用软件的过程中&#xff0c;会产生一些程序文件、注册表项和临时文件等&#xff0c;用来支持软件的正常使用&#xff0c;都是正常现象。 但是&#xff0c;在卸载软件时&#xff0c;很多软件自身的卸载程序很不负责任&#…

内网渗透(十六)之内网信息收集-powershell基础知识

系列文章第一章节之基础知识篇 内网渗透(一)之基础知识-内网渗透介绍和概述 内网渗透(二)之基础知识-工作组介绍 内网渗透(三)之基础知识-域环境的介绍和优点 内网渗透(四)之基础知识-搭建域环境 内网渗透(五)之基础知识-Active Directory活动目录介绍和使用 内网渗透(六)之基…

chatGPT接入个人微信教程(国内可用)

chatGPT最近突然又大火起来了&#xff0c;而且这次不是一般的火&#xff0c;带有浓浓的商业气息火了。各个互联网大厂都开始进军了&#xff0c;感觉要来一场ChatGPT的军备竞赛一样&#xff0c;看看谁先获取国内的地盘。 作为吃瓜群众&#xff0c;我们也能个人使用ChatGPT&…

PCB设计中的正片和负片设计原理

PCB实际的最终目的 让需要导通的地方铺有铜&#xff0c;让不需要导通的地方没有铜 正片和负片的含义 参考&#xff1a;https://www.sohu.com/a/203224754_100012544&#xff0c;https://blog.csdn.net/weixin_42837669/article/details/110411765 查找资料中常见说法&#x…

力扣HOT100 (1-5)

目录 1.两数之和 2.两数相加 拓展到牛客的TOP101的BM11( 链表相加&#xff08;二&#xff09;) 3.无重复的最长子串&#xff08;牛客BM92&#xff09; 解法1&#xff1a; 解法2&#xff1a; 4.寻找两个正序数组的中位数 5.最长回文子串 1.两数之和 思路&#xff1a;用Has…