- 博客(94)
- 资源 (6)
- 收藏
- 关注
原创 qemu仿真imx6q系统
`-append "root=/dev/mmcblk0p2 rw rootwait console=ttymxc0,115200"`: 设置 Linux 内核启动参数。- `-drive file=sdcard.img,if=sd,format=raw`: 指定虚拟机的磁盘镜像文件。- `-dtb imx6q-sabresd.dtb`: 指定设备树二进制文件。- `-m 512M`: 设置内存大小为512MB。- `-M imx6`: 设置机型为 i.MX6。
2024-09-21 14:02:26
221
原创 STM32 CubeMX LwIP + freertOS 移植
生成代码,烧录即可ping通。这里要注意的是,要修改freertOS的任务栈大小,默认128,修改为1024,不修改就跑不起来。生产代码,下载进开发板。开发板网口与电脑网口通过网线直连,设置电脑本地网卡在同一网段。在以上无系统的cubeMX配置下继续添加freertOS。无系统LWIP协议栈设置,静态IP地址,关闭DHCP。先用裸机测试LAN8742A的网卡驱动。MCU型号:STM32F746NGH。下面进行freertOS系统移植。网卡型号:LAN8742A。系统时钟和时基定时器如下。
2024-01-08 16:31:15
1152
2
原创 获取旧版IMX6Q源码
git clonehttps://source.codeaurora.org/external/imx/linux-imx-brel_imx_4.1.15_2.1.0_ga
2022-05-30 18:11:17
145
原创 CRC校验源码
#include "crcverification.h"CrcVerification::CrcVerification(){}/****************************************************************************** * Name: CRC-4/ITU x4+x+1 * Poly: 0x03 * Init: 0x00 * Refin: True * Refout: Tr.
2022-02-08 11:12:00
642
原创 飞凌嵌入式IMX6Q 开发板配置
YOCTO Linux 版本: L4.1.9.35setenv bootcmd 'mmc dev 1 0; mmc read 0x12000000 0x800 0x4000; mmc read 0x18000000 0x5000 0x800; bootz 0x12000000 - 0x18000000'setenv bootargs 'noinitrd console=ttymxc0,115200 root=/dev/mmcblk3p2 rw'
2021-10-31 22:09:50
349
原创 Py_Initialize: Unable to get the locale encoding
fangxin@fangxin-Shangqi-X4270:~$ pythonFatal Python error: Py_Initialize: Unable to get the locale encodingModuleNotFoundError: No module named 'encodings'Current thread 0x00007f0d7e188740 (most recent call first):Aborted (core dumped)fangxin@fan.
2021-08-25 21:59:58
2076
1
原创 ubuntu18切换python3
step 1: : ls /usr/bin/python*/usr/bin/python /usr/bin/python3.6 /usr/bin/python3m-config/usr/bin/python2 /usr/bin/python3.6-config /usr/bin/python-config/usr/bin/python2.7 /usr/bin/python3.6m /usr...
2021-08-23 22:08:07
245
原创 make menuconfig
HOSTCC scripts/kconfig/mconf.o<command-line>:0:12: fatal error: curses.h: No such file or directorycompilation terminated.scripts/Makefile.host:108: recipe for target 'scripts/kconfig/mconf.o' failedmake[1]: *** [scripts/kconfig/mconf.o] Error 1.
2021-07-04 20:14:46
190
原创 右腿驱动讲解
参考链接http://www.xinmanduo.com/xianxingfangda/145506.htmlINA114 datasheet《一分钟讲解右腿驱动》 这个哥们儿讲的好,几句话就把右腿驱动讲明白了http://www.360doc.com/content/18/0312/15/1751130_736374982.shtml
2021-07-02 18:02:05
1167
原创 Linux 直接读写usb
https://www.cnblogs.com/sky-heaven/p/5066492.html不要libusb库直接读取usb原始数据https://www.cnblogs.com/libra13179/p/12851163.html利用libudev 获取设备 path 和vid pid
2021-04-09 15:44:11
2790
原创 QT 动态库使用的实例,静态库类似
#-------------------------------------------------## Project created by QtCreator 2020-12-28T17:57:59##-------------------------------------------------QT += core guigreaterThan(QT_MAJOR_VERSION, 4): QT += widgetsLIBS += -L/home/fangxin/qt.
2020-12-29 10:18:03
185
原创 QT 线程的正常退出
QT QThread :Destroyed while thread is still runningvoid ReadThread::run(){ while(! thread_ctrl) { }}void ReadThread::~ReadThread(){ thread_ctrl = 1; this->terminate(); this->wait(); this->deleteLater();}..
2020-12-24 11:13:31
1147
转载 QT如何将屏幕坐标点换算成距离
https://blog.youkuaiyun.com/wsj18808050/article/details/54345537QGuiApplication app( argc, argv );QScreen *pScreen = app.primaryScreen();qDebug() << "primary screen width(cm):" << ( ( p->geometry().width() / pScreen->physicalDotsPerInc.
2020-09-17 13:46:31
821
原创 ADI Blackfin Bootloader升级
http://www.openadsp.cn/topic.asp?id=2563&boardid=5&tb=1https://ez.analog.com/dsp/blackfin-processors/w/documents/4987/faq-using-the-blackfin-sdp-b-as-a-bf527-evaluation-platform
2020-09-01 12:28:48
285
2
原创 QML之Canvas画直线和文本
Window { visible: true width: 640 height: 480 Canvas{ id: canvas width: parent.width height: parent.height onPaint: { var ctx = getContext("2d"); draw(ctx.
2020-06-13 15:41:56
3936
原创 QML打印输出__FILE__和__LINE__
如果你在ubuntu 使用 Qt Creator ,按下面的路径可以设置: projects-->Run-->Run Enviroments,点击Add按钮,添加环境变量 Variable Value QT_MESSAGE_PATTERN %{file}:%{line} %{message} 在windows下添加全局环境变量set QT_MESSAGE_PATTERN=%{file}:%{line} ..
2020-05-25 16:00:55
1064
转载 解决ubuntu18 QT无法输入中文的问题
编辑 /etc/profile文件末尾加上export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus参考 https://blog.youkuaiyun.com/developerof/article/details/72269919
2020-04-29 09:16:35
670
原创 修改QCustomplot边框距离
在qcustomplot.cpp 源码 QCPAxisRect::QCPAxisRect(QCustomPlot *parentPlot, bool setupDefaultAxes) 函数位置将默认边框距离15 改成 0// setMinimumMargins(QMargins(15, 15, 15, 15)); setMinimumMargins(QMargins(0, 0,...
2020-04-28 18:23:21
3009
4
原创 QCustomplot hua yuanquan
float xRadius = 20; float yRadius = xRadius; QCPItemEllipse *ellipse = new QCPItemEllipse(ui->customPlot); QCPItemTracer *mCenterTracer = new QCPItemTracer(ui->customPlot); ...
2020-04-23 16:35:16
395
imx6q qt5 mkspecs 交叉编译的配置文件
2019-02-19
vgg_generated
2019-02-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人