数码营电子:基于微型控制器的编程、电路设计与电子产品制做。邮箱:shumaying@hotmail.com

在ubuntu上,vs code里,用simavr调试Arduino UNO程序

From 数码营电子实验室
Jump to navigation Jump to search

步骤:

  • 1、安装VS Code
  • 2、在VS Code里安装“platformIO”插件
  • 3、sudo apt-get install simavr
  • 4、在“platformio.ini”中添加:
  1. [env:myenv]
  2. platform = atmelavr
  3. board = uno
  4. debug_tool = simavr
  • 5、sudo apt-get install gcc make
  • 6、sudo apt-get install gcc-avr avr-libc
  • 7、sudo apt-get install libelf-dev
  • 8、sudo apt-get install freeglut3 freeglut3-dev

Related Links[edit]

  1. Get Started-SimAVR
  2. Debugging AVR Code in Linux With Simavr
  3. Build Configurations
Qrcode for gh a3b9e9962ce8 1280.jpg