ljymoonlight

导航

2023年8月3日 #

串口驱动中监听到数据不连续

摘要: 调试串口驱动时, 发现从监听软件查看到STM HAL官方库发送出来的数据竟然延时。 分析代码如下原因: (1) 在发送函数中,如果继续有数据进来就会进入中断。 (2) 上位机下发数据没有任何等待。 串口驱动分类 中断的方式 轮询的方式 DMA的方式 DMA调试串口注意下面的点 使用DMA必须使用全局 阅读全文

posted @ 2023-08-03 16:38 ljymoonlight 阅读(21) 评论(0) 推荐(0) 编辑

2023年5月23日 #

keil 烧写时提示invalid rom table

摘要: 网上搜索一堆关于超频和锁死的原因。 最后发现是keil版本的原因。GD32F50x 官方demo需要V5.27以上的版本。 阅读全文

posted @ 2023-05-23 23:40 ljymoonlight 阅读(52) 评论(0) 推荐(0) 编辑

2023年5月19日 #

keil compile issue

摘要: *** Using Compiler 'V6.9', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin' Rebuild target 'GD32F330' ../systick.c(38): warning: In file included from... ../../F 阅读全文

posted @ 2023-05-19 00:43 ljymoonlight 阅读(94) 评论(1) 推荐(0) 编辑

2023年4月11日 #

ethercat 1.ETG5001学习

摘要: ![](https://img2023.cnblogs.com/blog/2204133/202304/2204133-20230411075802227-1463435157.png) ![](https://img2023.cnblogs.com/blog/2204133/202304/2204133-20230411075923430-1646654123.png) ![](https:// 阅读全文

posted @ 2023-04-11 08:05 ljymoonlight 阅读(156) 评论(0) 推荐(0) 编辑

2023年3月29日 #

arm vscode + openocd+stlink 调试stm32f40xxx

摘要: 配置 ` { "name": "Cortex Debug-stlink", "type": "cortex-debug", "request": "launch", "executable": "${workspaceFolder}\STM32F405 Ethercat\MDK-ARM\debug. 阅读全文

posted @ 2023-03-29 00:57 ljymoonlight 阅读(578) 评论(0) 推荐(0) 编辑

2023年3月25日 #

nginx 进行tcpip 数据端口映射

摘要: TCP port mapping stream{ upstream tcpLink { hash $remote_addr consistent; server xxx:3306 weight=5 max_fails=3 fail_timeout=30s; } server { listen 700 阅读全文

posted @ 2023-03-25 23:54 ljymoonlight 阅读(261) 评论(0) 推荐(0) 编辑

2023年2月12日 #

git 将本地源代推送到远程服务器

摘要: git init git add README.md git commit -m "first commit" git remote add origin 远程窗口地址.git git push -u origin master 阅读全文

posted @ 2023-02-12 17:53 ljymoonlight 阅读(20) 评论(0) 推荐(0) 编辑

2022年11月23日 #

时区编程

摘要: Zone time time_t my_timegm (struct tm *tm) { time_t ret; char *tz; tz = getenv("TZ"); setenv("TZ", "", 1); // reinitial tzset(); ret = mktime(tm); if 阅读全文

posted @ 2022-11-23 00:21 ljymoonlight 阅读(19) 评论(0) 推荐(0) 编辑

2022年9月27日 #

tool 找回失控的ctrl+F

摘要: 不知道什么原因Ctrl + F突然在chrome vscode中 notepad、plus就不起作用了。 方法1: 方法2: 用工具查看谁占用 貌似都解决不我这纠结的问题。 阅读全文

posted @ 2022-09-27 22:11 ljymoonlight 阅读(23) 评论(0) 推荐(0) 编辑

2022年7月23日 #

git 远程库重命名后,不重新拉取建立关联

摘要: 查看远程库 git remote -v 删除已经关联的远程库 git remote rm origin origin不是固定的,是根据上图查看到的修改 添加新的远程库 git remote add origin git—new-rep-name(实际库名) 阅读全文

posted @ 2022-07-23 10:28 ljymoonlight 阅读(30) 评论(0) 推荐(0) 编辑