技术标签: A03-STM32
1.设置工程时,如果忘记了在C/C++选项卡上设置STM32F10X_HD,USE_STDPEFIPH_DRIVER编译时会报如下的错误
Build target 'USART'
compiling stm32f10x_it.c...
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ^
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\stm32f10x_it.c: 0 warnings, 1 error
compiling main.c...
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ^
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\main.c: 0 warnings, 1 error
compiling core_cm3.c...
compiling system_stm32f10x.c...
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ^
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\User\system_stm32f10x.c: 0 warnings, 1 error
compiling stm32f10x_usart.c...
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ^
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ^
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ^
..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h: ..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 1 error
Target not created
2.要注意新建工程包含库文件的路径是
\Libraries\STM32F10x_StdPeriph_Driver\inc
而不是
\Libraries\STM32F10x_StdPeriph_Driver\src
3.Overlapping of Algorithms at Address 08000000H错误
工程设置里,误多添加了下载算法,删除后即可。
wget命令用来从指定的URL下载文件。wget非常稳定,它在带宽很窄的情况下和不稳定网络中有很强的适应性,如果是由于网络的原因下载失败,wget会不断的尝试,直到整个文件下载完毕。如果是服务器打断下载过程,它会再次联到服务器上从停止的地方继续下载。这对从那些限定了链接时间的服务器上下载大文件非常有用。语法:wget(选项)(参数) ------->例:wget url选项:-a<日志...
1. 第一个思路就是和ubuntu一样,是否有apt-get一样的管理软件包工具。查了一下有类似的macport和homebrew macport下载方法:https://guide.macports.org/#installing.xcode,直接下载dmg镜像安装即可 brew下载方法方法:https://brew.sh/按照官网下载安装 下面是换源方法:------...
ensp 配置静态路由
最近在GitHub上fork了别人的一个项目,是关于数据科学学习的一个项目,Git地址如下:https://github.com/fengdu78/Data-Science-Notes.git(黄海广老师整理的数据科学笔记),但是如果黄海广老师在这个项目上改动了,比如加了一些知识点,我fork到我自己GitHub上的项目如何保持同步的更新呢?其实只需要下面三步:把fork的项目克隆到本地仓库...
windows监控并重启进程脚本
paraview热流图(1):添加glyphs5.8.1 Glyph VTK学习笔记:vtkXMLPolyDataWriter
MJExtensionA fast, convenient and nonintrusive conversion framework between JSON and model.转换速度快、使用简单方便的字典转模型框架我们经常需要从网络上拉取json数据,然后将json数据转化为自己的模型数据,将json数据转化为我们自己的模型数据经常使用的框架有YYModel和MJExtensio...
最近部署公司PHP网站LAMP运行环境,部署完成后遇到无法远程连接数据库的问题,最后找到解决方法,现在整理归纳如下
前言:作为一个java工程师,前端对于我来说很弱,要想成为全栈工程师,那么前端必然也需要会,所以这里看了一本秘籍为《HTML+CSS+网页开发技术精解》,做一个笔记,和总结。如果涉及侵权,请通知本人,本人在三个工作日删除。学习图:一、html篇1、html基础(略)若有不懂请自己补充html的概念2、页面基本元素这些元素是构成页面的基础,它们各有自己相应的作用,掌握这些页面
Python——循环遍历多个列表实现字符的组合拼接目标:给定泛化的句式文件regex.txt,组合生成query参考解决技巧:一日一技:如何用Python遍历多个列表元素的所有组合regex.txt的内容:小张(来|背|背诵|读)+(一段|一首|几首|一条)我喜欢的(唐诗|宋词|元曲)吧立马(删掉|关闭...
我本来想配个静态的IP,可是怎么配都配不出来。程序里面的IP地址在NULL == netif_add(&sitaraNetIF[instNum], &ip_addr, &net_mask, &gw_addr, &instNum, sitaraif_init, ip_input)这个函数里面就已经清零了。
用TensorFlow创建FNN神经网络模型,梯度下降采用Adagrad,使用dropout防止过拟合,尝试保存模型再调用的操作。import tensorflow as tfimport numpy as npimport pandas as pdimport matplotlib.pyplot as pltfrom sklearn import metrics#定义读取数据的函数...