stm32 arduino -2023-7-11

记录一下arduino ide 使用stm32的过程

如有冒犯,敬请告之,侵删

网上很多教程,可以用的,并且通过编辑实现了的配置板支持包,使用Arduino IDE对STM32全系列芯片编程_arduino_stm32库_笑春风oO的博客-CSDN博客

感谢博主提供的下载程序

链接:https://pan.baidu.com/s/171KNtN7ltdfYgnKYrO433w 
提取码:r8ky

下载后 joson 放在 c:\users\用户名\appdata\arduino 

其它放在  C:\Users\用启名\AppData\Local\Arduino15\staging\packages下

记得重起

下载程序 

usb 转ttl  TX->PA10 RX ->PA9 GND->GND 3.3V ->3.3V 

使用boot0 = 1 boot1 = 0;

blink 程序

void setup() {

  pinMode(PC13, OUTPUT);

  Serial.begin(115200);

}

// the loop function runs over and over again forever

void loop() {

  digitalWrite(PC13, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(1000);              // wait for a second

  digitalWrite(PC13, LOW);    // turn the LED off by making the voltage LOW

  delay(1000);              // wait for a second

  Serial.println("hello world");

}

stm32 arduino -2023-7-11_第1张图片

使用网上最近的教程,从github 下载安装包,安装后,无法通过编辑,或出现错误

由于时间久,没人维护,出现错误

出现问题

踏过的坑

包括下载 stm32 cube programmer 

从github 下载安装包,安装

开发板管理 arduino sam boards m3+....

1.github下载安装包置入 packages 后 开发板管理 下载 arduino ---------无效,产生错误

2.网上最新教程,------无效

3 stm32 cube program -无效 ,安装失败

错误1. busybox.exe 找不到  

STM32 Project Won't Build Due To Path Issue - #3 by spcplugins - IDE 2.x - Arduino Forum

按照上面的方法,无法解决问题,并且国内无法下载

错误2 .https://forum.arduino.cc/t/stm32-project-wont-build-due-to-path-issue/969567/3

御载 arduino sam boards (..... corel - m3)

最后如果

学习stm32的话,还是推荐去正点原子 虽然贵点,资料,板子全

你可能感兴趣的:(stm32,嵌入式硬件,单片机)