极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10685|回复: 2

求助 程序编译错误

[复制链接]
发表于 2014-12-4 12:16:19 | 显示全部楼层 |阅读模式
之前这个程序上传过很多次了。但是昨晚突然不行了。
纯小白,不懂编译。
求大侠帮助,板子是arduino nano v3.0 .编译错误如下:
  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Nano w/ ATmega328"
uCNC_controller.ino: In function 'void setup()':
uCNC_controller:84: error: 'Serial' was not declared in this scope
uCNC_controller:87: error: 'OUTPUT' was not declared in this scope
uCNC_controller:87: error: 'pinMode' was not declared in this scope
uCNC_controller:94: error: 'initMotors' was not declared in this scope
uCNC_controller.ino: In function 'void loop()':
uCNC_controller:106: error: 'Serial' was not declared in this scope
uCNC_controller:118: error: 'delayMicroseconds' was not declared in this scope
uCNC_controller:123: error: 'process_command' was not declared in this scope
uCNC_controller:130: error: 'powerdown' was not declared in this scope
uCNC_gcode.ino: At global scope:
uCNC_gcode:22: error: 'boolean' does not name a type
uCNC_gcode.ino: In function 'void setXYZ(f_PosXYZ*)':
uCNC_gcode:35: error: 'command_exists' was not declared in this scope
uCNC_gcode:35: error: 'getValue' was not declared in this scope
uCNC_gcode:35: error: 'abs_mode' was not declared in this scope
uCNC_gcode.ino: In function 'void process_command(uint8_t*)':
uCNC_gcode:51: error: 'Serial' was not declared in this scope
uCNC_gcode:55: error: 'purge_commands' was not declared in this scope
uCNC_gcode:56: error: 'parse_commands' was not declared in this scope
uCNC_gcode:58: error: 'command_exists' was not declared in this scope
uCNC_gcode:59: error: 'getValue' was not declared in this scope
uCNC_gcode:64: error: 'movePosXYZ' was not declared in this scope
uCNC_gcode:83: error: 'delay' was not declared in this scope
uCNC_gcode:101: error: 'linePos' was not declared in this scope
uCNC_gcode:102: error: 'drill' was not declared in this scope
uCNC_gcode:105: error: 'abs_mode' was not declared in this scope
uCNC_gcode:111: error: 'resetXY' was not declared in this scope
uCNC_gcode:121: error: 'Serial' was not declared in this scope
uCNC_gcode:122: error: 'DEC' was not declared in this scope
uCNC_gcode:127: error: 'command_exists' was not declared in this scope
uCNC_gcode:128: error: 'getValue' was not declared in this scope
uCNC_gcode:129: error: 'updateToolCodes' was not declared in this scope
uCNC_gcode:132: error: 'command_exists' was not declared in this scope
uCNC_gcode:133: error: 'getValue' was not declared in this scope
uCNC_gcode:158: error: 'powerdown' was not declared in this scope
uCNC_gcode:185: error: 'updateMotorCodes' was not declared in this scope
uCNC_gcode:203: error: 'Serial' was not declared in this scope
uCNC_motor.ino: In function 'void moveY(int)':
uCNC_motor:122: error: 'abs' was not declared in this scope
uCNC_motor.ino: In function 'void penDown()':
uCNC_motor:139: error: 'delay' was not declared in this scope
uCNC_motor:140: error: 'HIGH' was not declared in this scope
uCNC_motor:140: error: 'digitalWrite' was not declared in this scope
uCNC_motor.ino: In function 'void penUp()':
uCNC_motor:147: error: 'LOW' was not declared in this scope
uCNC_motor:147: error: 'digitalWrite' was not declared in this scope
uCNC_motor:149: error: 'delay' was not declared in this scope
uCNC_motor.ino: In function 'void moveZ(int)':
uCNC_motor:178: error: 'HIGH' was not declared in this scope
uCNC_motor:178: error: 'LOW' was not declared in this scope
uCNC_motor:178: error: 'digitalWrite' was not declared in this scope
uCNC_motor:180: error: 'delay' was not declared in this scope
uCNC_motor.ino: In function 'void powerdown()':
uCNC_motor:195: error: 'LOW' was not declared in this scope
uCNC_motor:195: error: 'digitalWrite' was not declared in this scope
uCNC_motor.ino: In function 'void updateMotorCodes()':
uCNC_motor:213: error: 'HIGH' was not declared in this scope
uCNC_motor:213: error: 'LOW' was not declared in this scope
uCNC_motor:213: error: 'digitalWrite' was not declared in this scope
uCNC_motor.ino: In function 'void drill()':
uCNC_motor:267: error: 'delay' was not declared in this scope
uCNC_motor.ino: In function 'void lineXYZ(int, int, int)':
uCNC_motor:291: error: 'abs' was not declared in this scope
uCNC_parse.ino: In function 'void addObj(uint8_t*)':
uCNC_parse:47: error: 'NULL' was not declared in this scope
uCNC_parse:47: error: 'strtod' was not declared in this scope
回复

使用道具 举报

发表于 2014-12-4 15:14:42 | 显示全部楼层
一个错误有时会连锁反应,报出一大堆错。还是一个个地排除,我认为第一个错误是串口不通,是否那个调试的串口或USB没通?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-12-5 22:08:25 | 显示全部楼层
林定祥 发表于 2014-12-4 15:14
一个错误有时会连锁反应,报出一大堆错。还是一个个地排除,我认为第一个错误是串口不通,是否那个调试的串 ...

嗯 谢谢回复,我的ft232是国产山寨,之前动过驱动怀疑可能导致串口不通,这两天打算自己换个ft232芯片再试试,还是非常感谢你的回复。等测试了过来反馈一下。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-16 14:25 , Processed in 0.033986 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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