这是什么原因导致无法上传-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 507|回复: 2

[已解决] 这是什么原因导致无法上传

[复制链接]
发表于 2022-6-28 23:11 | 显示全部楼层 |阅读模式
Arduino:1.8.5 (Windows 10), 开发板:"Arduino Nano, ATmega328P"

C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino: In function 'void setup()':

C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino:54:26: warning: invalid conversion from 'const char*' to 'int8_t {aka signed char}' [-fpermissive]

     tm1637.display(0, "P");              // 胁褘胁芯写懈屑 raf

                          ^

In file included from C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino:3:0:

C:\Users\Administrator\Documents\Arduino\libraries\TM1637/TM1637.h:65:8: note: initializing argument 2 of 'void TM1637::display(uint8_t, int8_t)'

   void display(uint8_t BitAddr,int8_t DispData);

        ^

C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino: In function 'void loop()':

C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino:73:26: warning: invalid conversion from 'const char*' to 'int8_t {aka signed char}' [-fpermissive]

     tm1637.display(1, ">");

                          ^

In file included from C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino:3:0:

C:\Users\Administrator\Documents\Arduino\libraries\TM1637/TM1637.h:65:8: note: initializing argument 2 of 'void TM1637::display(uint8_t, int8_t)'

   void display(uint8_t BitAddr,int8_t DispData);

        ^

C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino:74:26: warning: invalid conversion from 'const char*' to 'int8_t {aka signed char}' [-fpermissive]

     tm1637.display(2, ">");

                          ^

In file included from C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino:3:0:

C:\Users\Administrator\Documents\Arduino\libraries\TM1637/TM1637.h:65:8: note: initializing argument 2 of 'void TM1637::display(uint8_t, int8_t)'

   void display(uint8_t BitAddr,int8_t DispData);

        ^

C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino:75:26: warning: invalid conversion from 'const char*' to 'int8_t {aka signed char}' [-fpermissive]

     tm1637.display(3, "8");

                          ^

In file included from C:\Users\Administrator\Documents\Arduino\sketch_jun19a\sketch_jun19a.ino:3:0:

C:\Users\Administrator\Documents\Arduino\libraries\TM1637/TM1637.h:65:8: note: initializing argument 2 of 'void TM1637::display(uint8_t, int8_t)'

   void display(uint8_t BitAddr,int8_t DispData);

        ^

项目使用了 5376 字节,占用了 (17%) 程序存储空间。最大为 30720 字节。
全局变量使用了483字节,(23%)的动态内存,余留1565字节局部变量。最大为2048字节。
avrdude: ser_open(): can't open device "\\.\COM3": 系统找不到指定的文件。


上传出错。查看http://www.arduino.cc/en/Guide/Troubleshooting#upload 获取建议。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。


发表于 2022-6-29 08:05 | 显示全部楼层
avrdude: ser_open(): can't open device "\\.\COM3"
串口选错了/驱动没装/串口被占用
 楼主| 发表于 2022-7-6 11:50 | 显示全部楼层
谢谢谢谢谢谢谢谢谢谢谢谢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-12-30 00:01 , Processed in 0.184291 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表