Skip to content

Commit

Permalink
feat: vscode intro
Browse files Browse the repository at this point in the history
  • Loading branch information
YiHui-Liu committed Apr 3, 2024
1 parent b5b88f6 commit 0b17b34
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/chap0.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Blazar 项目团队 2017 年在清华大学制作完成了 MOOC 在线开放课
- [ARM GCC](https://developer.arm.com/downloads/-/gnu-rm) - 编译和链接
- [GNU make](http://www.gnu.org/software/make/) - 构建自动化
- [SEGGER J-Link](https://www.segger.com/downloads/jlink/) - 烧写固件与调试
- [Visual Studio Code](https://code.visualstudio.com/) - 代码编写与调试

### GCC交叉编译工具链
什么是交叉编译器?它在一个平台上运行,但为另一个平台创建可执行文件,在本指南中通常在 x86-64 平台上运行 Linux,得到 ARM 平台的可执行文件。GNU 构建工具,以及扩展的 GCC,使用目标三元组的概念来描述平台,三元组列出了平台的体系结构、供应商和操作系统或二进制接口类型。目标三元组的供应商部分通常是无关紧要的。您可以通过运行 `gcc -dumpmachine`来查找您自己机器的目标三元组,例如:
Expand Down Expand Up @@ -49,7 +50,17 @@ $ brew install make
### 烧录与调试工具 J-Link
前往 [SEGGER J-Link](https://www.segger.com/downloads/jlink/) 下载对应安装包安装好 J-Link,安装完成之后将安装位置加入到环境变量`PATH`中。

## 数据手册
### VSCode
安装好 VSCode 本体之后,我们需要安装若干插件完善开发的体验:
* [C/C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools): C/C++ IntelliSense, debugging, and code browsing.
* [Cortex-Debug](https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug): ARM Cortex-M GDB Debugger support for VSCode
* [MemoryView](https://marketplace.visualstudio.com/items?itemName=mcu-debug.memory-view): Provide memory views for debuggers
* [LinkerScript](https://marketplace.visualstudio.com/items?itemName=ZixuanWang.linkerscript): Language support for GNU linker script
* [Arm Assembly](https://marketplace.visualstudio.com/items?itemName=dan-c-underwood.arm): Arm assembly syntax support for Visual Studio Code

## 数据手册
- [KL25 Sub-Family Reference Manual](https://gab.wallawalla.edu/~larry.aamodt/cptr480/nxp/KL25P80M48SF0RM.pdf)
- [Cortex-M0+ Devices Generic User Guide](https://developer.arm.com/documentation/dui0662/b/)

## 参考资料
1. [Visual Studio Code for C/C++ with ARM Cortex-M: Part 1 – Installation](https://mcuoneclipse.com/2021/05/01/visual-studio-code-for-c-c-with-arm-cortex-m-part-1/)

0 comments on commit 0b17b34

Please sign in to comment.