<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lllllllllljg的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lllllllllljg</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lllllllllljg]]></copyright><item><title><![CDATA[【MIT6.S081】Lab7: Multithreading(详细解答版)]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/138864375</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/138864375</guid><author>lllllllllljg</author><pubDate>Tue, 14 May 2024 18:03:40 +0800</pubDate><description><![CDATA[实验内容网址：https://xv6.dgs.zone/labs/requirements/lab7.html本实验的代码分支：https://gitee.com/dragonlalala/xv6-labs-2020/tree/thread2/关键点：线程切换、swtch。]]></description><category></category></item><item><title><![CDATA[【MIT6.S081】Lab6: Copy-on-Write Fork for xv6(详细解答版)]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/138415653</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/138415653</guid><author>lllllllllljg</author><pubDate>Fri, 03 May 2024 14:18:28 +0800</pubDate><description><![CDATA[实验内容网址：https://xv6.dgs.zone/labs/requirements/lab6.html本实验的代码分支：https://gitee.com/dragonlalala/xv6-labs-2020/tree//关键点: 内存引用计数、usertrap()、页表。]]></description><category></category></item><item><title><![CDATA[【MIT6.S081】Lab5: xv6 lazy page allocation(详细解答版)]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/138308104</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/138308104</guid><author>lllllllllljg</author><pubDate>Mon, 29 Apr 2024 12:00:26 +0800</pubDate><description><![CDATA[实验内容网址：https://xv6.dgs.zone/labs/requirements/lab5.html本实验的代码分支：https://gitee.com/dragonlalala/xv6-labs-2020/tree/lazy3/]]></description><category></category></item><item><title><![CDATA[【MIT6.S081】Lab4: traps(详细解答版)]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/138035676</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/138035676</guid><author>lllllllllljg</author><pubDate>Sun, 21 Apr 2024 15:39:13 +0800</pubDate><description><![CDATA[实验内容网址：https://xv6.dgs.zone/labs/requirements/lab4.html本实验的代码分支：https://gitee.com/dragonlalala/xv6-labs-2020/tree/traps2/]]></description><category></category></item><item><title><![CDATA[【MIT6.S081】Lab3: page tables(详细解答版)]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/137727416</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/137727416</guid><author>lllllllllljg</author><pubDate>Sat, 13 Apr 2024 22:48:42 +0800</pubDate><description><![CDATA[实验内容网址：https://xv6.dgs.zone/labs/requirements/lab3.html本实验的代码分支：https://gitee.com/dragonlalala/xv6-labs-2020/tree/pgtbl2/]]></description><category></category></item><item><title><![CDATA[【MIT6.S081】Lab2: syscall(详细解答版)]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/137473798</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/137473798</guid><author>lllllllllljg</author><pubDate>Sun, 07 Apr 2024 18:47:08 +0800</pubDate><description><![CDATA[实验内容网址：https://xv6.dgs.zone/labs/requirements/lab2.html。]]></description><category></category></item><item><title><![CDATA[【MIT6.S081】Lab1: Xv6 and Unix utilities(详细解答版)]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/137468484</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/137468484</guid><author>lllllllllljg</author><pubDate>Sun, 07 Apr 2024 16:37:32 +0800</pubDate><description><![CDATA[实验内容网址：https://xv6.dgs.zone/labs/requirements/lab1.html。]]></description><category></category></item><item><title><![CDATA[cubemx工程更换同系列stm32芯片型号]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/134428925</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/134428925</guid><author>lllllllllljg</author><pubDate>Wed, 15 Nov 2023 21:06:51 +0800</pubDate><description><![CDATA[软件：cubemx v6.10、vscode、MDK v5.27旧型号芯片：stm32f103c8t6新型号芯片：stm32f103ret6。]]></description><category></category></item><item><title><![CDATA[关于ST-Link的internal command error问题]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/134400343</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/134400343</guid><author>lllllllllljg</author><pubDate>Tue, 14 Nov 2023 15:34:19 +0800</pubDate><description><![CDATA[有可能是电压不稳定，我的下载器用了杜邦线延长，有50cm左右，并且供电电压为3.3伏。实测芯片电源端电压为2.1伏，压降过于厉害。剪短下载线就恢复正常了。参考：https://blog.youkuaiyun.com/u014563989/article/details/53925836。]]></description><category></category></item><item><title><![CDATA[icm20602校准方法及代码示例]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/133236850</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/133236850</guid><author>lllllllllljg</author><pubDate>Sun, 24 Sep 2023 13:50:13 +0800</pubDate><description><![CDATA[芯片：icm20602+stm32f7软件：keil5、匿名上位机v4.34。]]></description><category></category></item><item><title><![CDATA[《操作系统-李治军》测验错题集]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/132122167</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/132122167</guid><author>lllllllllljg</author><pubDate>Sat, 05 Aug 2023 17:14:05 +0800</pubDate><description><![CDATA[‎在系统调用的实现中，在int 0x80指令调用之前，给eax赋值的目的是什么？答：int 0x80是唯一能从CPL=3（用户态）到CPL=0（内核态）的指令跳转。启动保护模式以后，指令jmpi 0, 8执行和没有启动保护模式有何区别？应用程序中的系统调用为什么要展开成一段包含int 0x80的代码？实模式：cs<<4 + ip。保护模式：cs查表 + ip。答：得出跳转地址的方式不同。答：将来区分是哪个系统调用。]]></description><category></category></item><item><title><![CDATA[fushion 360导入SVG文件]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/130910853</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/130910853</guid><author>lllllllllljg</author><pubDate>Sun, 28 May 2023 11:50:10 +0800</pubDate><description><![CDATA[Autodesk fushion 360 个人版。]]></description><category></category></item><item><title><![CDATA[KEIL中查看程序的存储空间的大小]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/128627019</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/128627019</guid><author>lllllllllljg</author><pubDate>Tue, 10 Jan 2023 11:36:52 +0800</pubDate><description><![CDATA[KEIL中查看程序存储空间的大小]]></description><category></category></item><item><title><![CDATA[LINUX绑定usb设备名称]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/125936883</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/125936883</guid><author>lllllllllljg</author><pubDate>Fri, 22 Jul 2022 18:09:36 +0800</pubDate><description><![CDATA[LINUX绑定usb设备名称]]></description><category></category></item><item><title><![CDATA[STM32外部中断给AB相编码器计数异常处理]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/125019101</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/125019101</guid><author>lllllllllljg</author><pubDate>Sat, 28 May 2022 16:03:08 +0800</pubDate><description><![CDATA[现象
楼主想实现的功能是使用编码器来实现电机旋转固定的圈数，做一个位置闭环。在电机排线（电源线+编码器线）为30cm时，计数正常，当线长到40cm时会出现无法到达指定的位置，通过一番调试后，确定问题在于编码器值的不正常变化。楼主的接线方式很简单，A相接外部中断引脚，B相接普通输入引脚。
通过示波器来显示编码器的输出情况。

上图为正常情况下的输出，蓝色为外部中断引脚，黄色为普通输入引脚。可以发现两条线在低电平时都有高频的波动。图中一个编码器周期为2ms。当我对电机轴施加负载，即用手阻止电机转动，减缓速度时，]]></description><category></category></item><item><title><![CDATA[ctypes 传递opencv二值化图像给C++函数]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/124506593</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/124506593</guid><author>lllllllllljg</author><pubDate>Fri, 29 Apr 2022 23:45:12 +0800</pubDate><description><![CDATA[ctypes 传递opencv二值化图像给C++函数
C++文件，因为python-opencv的二值化图像其实是存在连续的一个二维numpy数组中的，且取值为0-255，因此这里是unsigned char*，还有一点要注意，若要打印出matrix[i*columns + j]，需要cout&lt;&lt;(int)matrix[i*columns + j];这么写
// 编译命令 g++ -o libtryPython.so -shared -fPIC tryPython.cpp
#include&lt]]></description><category></category></item><item><title><![CDATA[AURIX C/C++混合编程]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/123843270</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/123843270</guid><author>lllllllllljg</author><pubDate>Wed, 30 Mar 2022 12:30:50 +0800</pubDate><description><![CDATA[AURIX C/C++混合编程
前言
实验平台:
AURIX™ Development Studio 、龙邱TC264D核心板
C++相比于C：

C++的核心之一就在于面向对象思想。相比C语言常用的面向过程编程，面向对象编程的优势在于继承、封装、多态的特性，利用这种思想更有助于我们的程序实现模块化、抽象化。C++是一种天然支持面向对象编程的语言，在C语言的基础上，C++不仅提供了class关键字和类与对象的概念，使开发者可以清晰方便的实现面向对象编程。C++还支持数据封装和数据隐藏，支持继承和函数重载，因]]></description><category></category></item><item><title><![CDATA[将Numpy数组通过ctypes模块传递到C++函数]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/123487821</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/123487821</guid><author>lllllllllljg</author><pubDate>Mon, 14 Mar 2022 20:50:35 +0800</pubDate><description><![CDATA[将Numpy数组通过ctypes模块传递到C++函数
一、问题重现
网上将numpy数组通过ctypes传递到C/C++函数的教程不算多。这里有个参考例程。
ctypes的运用（把一个numpy数组传入c中）
cpp函数如下：

python文件如下：

这样运行的结果是正确的（看起来？）
def sendToC():
    arr = np.zeros((3,5),dtype = np.int32) # 指定元素类型，若不添加，默认为浮点型
    arr[0,0]=0
    arr[0,1]=1
 ]]></description><category></category></item><item><title><![CDATA[ssh第一次连接出错：WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/123459020</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/123459020</guid><author>lllllllllljg</author><pubDate>Sun, 13 Mar 2022 14:31:48 +0800</pubDate><description><![CDATA[ping 远程主机可以收到回复，但ssh连接不能成功

解决方法：
输入以下指令
ssh-keygen -R 192.168.1.254
192.168.1.254是刷完系统后的公钥，与本机不匹配，因此上述语句将公钥删除
然后就可以进行ssh连接了

参考：
参考blog

...]]></description><category></category></item><item><title><![CDATA[在python-Numba中正确地使用列表（list）]]></title><link>https://blog.youkuaiyun.com/lllllllllljg/article/details/123192649</link><guid>https://blog.youkuaiyun.com/lllllllllljg/article/details/123192649</guid><author>lllllllllljg</author><pubDate>Mon, 28 Feb 2022 23:05:17 +0800</pubDate><description><![CDATA[在python-Numba中正确地使用列表（list）
一、实验代码
'''
import numpy as np
import time
NUM = 160
from numba import jit
a = [] # a为空列表，全局变量
@jit(nopython=True)
def fun1():
	# 表明a为全局变量
    global a 
    for i in range(NUM):
        a.append(i)
        
fun1()

代码要实现的功能是在jit编]]></description><category></category></item></channel></rss>