Customer:
I purchased two Dasduino Core microcontrollers to build a Modbus RTU 2 TCP gateway (https://github.com/budulynek/arduino-modbus-rtu-tcp-gateway). According to the documentation, Dasduino Core is identical to Arduino Nano, but when I compile this code, I get the error “error: ‘class Print’ has no member named ‘availableForWrite’”. The same code compiles and runs without problems on an Arduino Nano. When I select Arduino Nano as the board and try to upload to Dasduino Core, compilation succeeds but upload fails with a programmer error:
Sketch uses 30478 bytes (99%) of program storage space. Maximum is 30720 bytes.
Global variables use 1513 bytes (73%) of dynamic memory, leaving 535 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x49
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x50
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x41
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x64
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x64
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x65
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x73
Failed uploading: uploading error: exit status 1
Original message (Croatian)
Kupio sam kod vas dva Dasduino Core miktrokontrolera kako bi napravio Modbus RTU 2 TCP gateway (GitHub - budulinek/arduino-modbus-rtu-tcp-gateway: Arduino-based Modbus RTU to Modbus TCP/UDP gateway with web interface. Allows you to connect Modbus RTU slaves (such as sensors, energy meters, HVAC devices) to Modbus TCP/UDP masters (such as home automation systems). You can adjust settings through web interface. · GitHub). Prema uputama, Dasduino Core je identičan kao i Arduino Nano, ali prilikom kompajliranja ovog koda, dobijem grešku “error: ‘class Print’ has no member named ‘availableForWrite’”. S druge strane, isti code bez problema se kompajlira i instalira na Arduino Nano uređaju. Ako odaberem Arduino Nano pločicu i pokušam instalirai code na Dasduino Core, kompajliranje prođe bez problema, ali upload ne. Dobijem grešku za programmer:
Sketch uses 30478 bytes (99%) of program storage space. Maximum is 30720 bytes.
Global variables use 1513 bytes (73%) of dynamic memory, leaving 535 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x49
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x50
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x41
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x64
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x64
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x65
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x73
Failed uploading: uploading error: exit status 1
Imate li ikakav savjet da ne moram kupovati ponovo Arduino Nano?
Hvala,
[name removed]
Originally submitted via email support on 19 May 2023. Migrated to the forum for community visibility.