Ошибка компиляции Modbus Slave
Добавлено: 11 июл 2016, 15:55
В этой теме немного http://forum.flprogwiki.ru/viewtopic.php?f=18&t=1158
Создал новый проект на ардуино мега, назначил свободный порт на modbus slave, при компиляции такие ошибки на любом порту.
pr9.ino: In function 'void setup()':
pr9.ino:16:1: error: 'Serial3' was not declared in this scope
pr9.ino:19:1: error: 'Serial1' was not declared in this scope
pr9.ino: In function 'void loop()':
pr9.ino:23:37: error: 'Serial1' was not declared in this scope
pr9.ino: In function 'byte _modbusSlavePoll()':
pr9.ino:66:23: error: 'Serial3' was not declared in this scope
pr9.ino: In function 'void _modbusSlaveSendTxBuffer()':
pr9.ino:174:1: error: 'UCSR3A' was not declared in this scope
pr9.ino:174:22: error: 'TXC3' was not declared in this scope
pr9.ino:177:1: error: 'Serial3' was not declared in this scope
pr9.ino: In function 'byte _modbusGetSlaveRxBuffer()':
pr9.ino:189:10: error: 'Serial3' was not declared in this scope
Ошибка компиляции.
Что не так?
Создал новый проект на ардуино мега, назначил свободный порт на modbus slave, при компиляции такие ошибки на любом порту.
pr9.ino: In function 'void setup()':
pr9.ino:16:1: error: 'Serial3' was not declared in this scope
pr9.ino:19:1: error: 'Serial1' was not declared in this scope
pr9.ino: In function 'void loop()':
pr9.ino:23:37: error: 'Serial1' was not declared in this scope
pr9.ino: In function 'byte _modbusSlavePoll()':
pr9.ino:66:23: error: 'Serial3' was not declared in this scope
pr9.ino: In function 'void _modbusSlaveSendTxBuffer()':
pr9.ino:174:1: error: 'UCSR3A' was not declared in this scope
pr9.ino:174:22: error: 'TXC3' was not declared in this scope
pr9.ino:177:1: error: 'Serial3' was not declared in this scope
pr9.ino: In function 'byte _modbusGetSlaveRxBuffer()':
pr9.ino:189:10: error: 'Serial3' was not declared in this scope
Ошибка компиляции.
Что не так?