找回密码
 立即注册
首页 业界区 安全 嘉立创地阔星STM32F103C8T6 arduino ch340串口烧录 ...

嘉立创地阔星STM32F103C8T6 arduino ch340串口烧录

簧横 2025-9-28 16:44:06
因为手里面有一个ESP-01S的下载器,芯片是CH340的,想着应该能用的话,就暂时不用买ST-LINK或USB转TTL模块了。
烧录时老是忘记细节,每次遇到报错都要排查一遍,特别麻烦,特此记录一下烧录前的检查项。
  1. Sketch uses 14200 bytes (21%) of program storage space. Maximum is 65536 bytes.
  2. Global variables use 2184 bytes (10%) of dynamic memory, leaving 18296 bytes for local variables. Maximum is 20480 bytes.
  3. maple_loader v0.1
  4. Resetting to bootloader via DTR pulse
  5. #
  6. # A fatal error has been detected by the Java Runtime Environment:
  7. #
  8. #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007110b5db, pid=38372, tid=0x0000000000008198
  9. #
  10. # JRE version: Java(TM) SE Runtime Environment (8.0_451) (build 1.8.0_451-b10)
  11. # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.451-b10 mixed mode windows-amd64 compressed oops)
  12. # Problematic frame:
  13. # C  [jSSC-2.8_x86_64.dll+0xb5db]
  14. #
  15. # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
  16. #
  17. # An error report file with more information is saved as:
  18. # C:\Users\alpha\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2022.9.26\win\hs_err_pid38372.log
  19. #
  20. # If you would like to submit a bug report, please visit:
  21. #   http://bugreport.java.com/bugreport/crash.jsp
  22. # The crash happened outside the Java Virtual Machine in native code.
  23. # See problematic frame for where to report the bug.
  24. #
复制代码
 
物料清单
嘉立创地阔星开发板STM32F103C8T6 
CH340烧录(我这里用的是ESP-01S的下载器)
1.jpeg

2.jpeg

检查项一

连线
STM32F103C8T6CH340
3V33V3
GNDGND
A09 (TX)TXD
A10 (RX)RXD
 
引脚图
3.png

 
检查项

跳线帽如下
BT10
BT01
 
 
4.png

 检查项三


打开STM32CubeProgrammer测试连接。
先选UART;再选Port;最后点connect。如果连接成功,可以关掉STM32CubeProgrammer,防止端口占用。

 
连接成功如图所示:
6.png

 
检查项四

打开Arduino,检查开发板烧录配置,upload method修改为"Serial"。
7.png

 
烧录成功
8.png

 
附上测试代码
  1. /*
  2. * Test program for the STM32F103C8T6
  3. */
  4. #include "Arduino.h"
  5. int counter = 0;
  6. // const int PA1 = 11;
  7. // const int PA3 = 13;
  8. void setup() {
  9.   Serial.begin(9600);
  10.   Serial.println("Hello, World!");
  11.   pinMode(PA3, OUTPUT);
  12.   pinMode(PA1, OUTPUT);
  13. }
  14. void loop() {
  15.   Serial.println("Hello, World!!!" + String(counter));
  16.   counter++;
  17.   delay(1000);
  18.   digitalWrite(PA3, HIGH);
  19.   digitalWrite(PA1, HIGH);
  20.   delay(1000);
  21.   digitalWrite(PA3, LOW);
  22.   digitalWrite(PA1, LOW);
  23.   delay(1000);
  24. }
复制代码
 

来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!

相关推荐

13 小时前

举报

懂技术并乐意极积无私分享的人越来越少。珍惜
您需要登录后才可以回帖 登录 | 立即注册