- 博客(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
2802
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
7726
3
原创 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
5610
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
5463
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
2162
原创 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
204
原创 编程-另类的两个数据交换方法
不一样的两个数交换方法直接上代码直接上代码// 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
548
原创 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
106
原创 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
284
原创 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
234
LINUX下的串口通信编程与调试
2014-09-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人