自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (3)
  • 收藏
  • 关注

原创 终于搞定ubuntu编译和烧写stm32 openocd

这里遇到的问题都总结一下首先编译固件库的启动文件,选错arm下的文件,报错:startup_stm32f10x_hd.s: Error: bad instruction编译头文件指令:arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m3 -g -Wa,--warn -o startup_stm32f10x_hd.o startup_...

2019-09-20 12:38:59 2660 1

原创 方舟编译器OpenArkCompiler helloworld问题

在编译OpenArkCompiler helloword遇到问题CHECK/CHECK_FATAL failure: f != nullptr at [../../../mapleall/maple_ir/src/bin_mpl_import.cpp:63] Ereipeng/my-work/OpenArkCompiler/libjava-core/libjava-core.mplt发现没有...

2019-09-07 09:48:52 7688 3

原创 LIN报文帧

2019-08-29 18:22:01 3419

原创 S32DS 生成S32K144的串口代码

环境:软件S32 Design Studio for ARM仿真器 JlinkV8目标板:S32K144 demo板1 新加一个S32DS 工程2 选择对应devices S32K1443 选择SDK和Debuger工具,然后Finish4 在Component Inspector界面配置串口IO,这里目标板子的串口是使用UART0,IO-PTB...

2019-07-27 15:07:42 5070 1

原创 libusb-0.1.so.4: cannot open shared object file: No such file or directory

查看/usr/lib可以看到没有这个libusb-0.1.so.4这个动态链接库解决方法sudo apt-get install libusb-0.1.4ll /usr/lib/libusb*

2019-06-20 10:22:32 4913 1

原创 ubuntu18.04下动态加载一个字符设备驱动

ubuntu18.04下动态加载一个字符设备驱动1、字符设备驱动编写2、Makefile编写3、动态加载设备4、简单测试1、字符设备驱动编写首先字符设备驱动注册需要使用到int register_chrdev(unsigned int major, const char *name, struct file_operations *fops);#include <linux/cde...

2019-06-20 00:06:58 2101

原创 IndentationError: unindent does not match any outer indentation level

环境:ubuntu python3.7File "tab_test.py", line 6 a = b+1 ^IndentationError: unindent does not match any outer indentation levelelse: print("Answer") a = b+1该错误是a=b+1这行的缩进不...

2019-06-15 22:16:10 188

原创 python3 保留字

import keywordkeyword.kwlist

2019-06-15 18:07:06 554

原创 编程-另类的两个数据交换方法

不一样的两个数交换方法直接上代码直接上代码// int a,b;int temp;temp = a;a = b;b = temp;这个算是最基础的两个数据交换的方法了,只要这个写,没有人会说不对。但是下面要介绍一种更好的方式——通过异或的方式,交换。// int a,b;a = a^b;b = a^b;a = a^b;通过3次异或完成对两个数的交换,这个方法的原理是...

2019-06-14 16:49:46 485

原创 11. Container With Most Water

11.Container With Most WaterGivennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of lineiis ...

2019-05-27 14:49:12 85

原创 LeetCode 6.ZigZag Conversion解法思路

原题目:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P ...

2019-05-06 18:09:15 233

原创 leetcode 476. Number Complement

Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.Note:The given integer is guaranteed to fit within the range

2017-01-09 10:51:46 213

Linux_串口读写

串口操作采用 UNIX 类似的方式,打开/关闭/发送/接收等基本操作采用类 似文件系统的方式进行,而一些属性的设置和控制则使用 termios 来进行。

2014-09-25

LINUX下的串口通信编程与调试

linux嵌入式串口通信编程与调试。串口操作采用 UNIX 类似的方式,打开/关闭/发送/接收等基本操作采用类似文件系统的方式进行,而一些属性的设置和控制则使用 termios 来进行。

2014-09-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除