STM32F03标准库cmake|demo

使用强大的cmake、openocd开源编译器,不限平台。


一、安装必要工具
  1. MAC的安装可以通过homebrew;linux等可以使用自带的包管理器,windows可以使用MINGW,需要手动安装arm-none-eabi-gcc配置环境变量。
1
2
3
4
5
#For mac,first install homebrew 
xcode-select --install 
git clone --depth=1 https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/install.git brew-install
/bin/bash brew-install/install.sh
rm -rf brew-install
1
2
#Then
brew install cmake make armmbed/formulae/arm-none-eabi-gcc openocd git 
二、安装vscode
  1. Visual Studio Code官网下载并安装vscode
  2. 安装必要的vscode插件:
    • C/C++
    • CMake
    • Cortex-Debug
三、系统工程示意图

系统工程示意图

Hugo+netlity搭建的静态网站


准备工作

github账号、netlify账号;然后github新建库,名为mywebsite,最好是私人储存库。
安装hugo
  1. 进入hugogithub官网按照文档下载并安装好。
  2. 将GitHub上mywebsite储存库clone下来。
    • git先去官网下载安装配置好name:
1
git config --global user.name "John Doe"
  • email配置:
1
git config --global user.email [email protected]
  • 生成ssh密钥
1
ssh-keygen -t rsa -c
  • 将生成的ssh公钥添加到GitHub里: