Skip to content

Cannot run example program on uno wifi rev 2 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fld113 opened this issue Nov 28, 2020 · 4 comments
Closed

Cannot run example program on uno wifi rev 2 #39

fld113 opened this issue Nov 28, 2020 · 4 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@fld113
Copy link

fld113 commented Nov 28, 2020

Despite the last fix, I cannot run the exemple program on uno wifi rev 2. I used the code in the ArduinoModbus version 1.02 modified 8 days ago, and the IDE 1.8.13 under OSX. I get the following message :

Arduino : 1.8.13 (Mac OS X), Carte : "Arduino Uno WiFi Rev2, None (ATMEGA4809)"

/Users/xxx/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/main.cpp: In function 'main':
/Users/xxx/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api/Stream.h:50:7: warning: 'MEM[(struct Stream &)&client]._startMillis' may be used uninitialized in this function [-Wmaybe-uninitialized]
 class Stream : public Print
       ^
/Users/xxx/Documents/Arduino/libraries/WiFiNINA/src/WiFiServer.cpp:69:20: note: 'MEM[(struct Stream &)&client]._startMillis' was declared here
         WiFiClient client(sock);
                    ^
/Users/xxx/Documents/Arduino/libraries/WiFiNINA/src/WiFiClient.h:28:7: warning: 'client._socket' may be used uninitialized in this function [-Wmaybe-uninitialized]
 class WiFiClient : public Client {
       ^
/Users/xxx/Documents/Arduino/libraries/WiFiNINA/src/WiFiServer.cpp:69:20: note: 'client._socket' was declared here
         WiFiClient client(sock);
                    ^
/var/folders/kf/5_pjskbd1yg3j6qlthc39v5m0000gn/T//ccpthV3p.ltrans0.ltrans.o: In function `begin':
/Users/xxx/Documents/Arduino/libraries/ArduinoModbus-master/src/ModbusTCPServer.cpp:40: undefined reference to `modbus_new_tcp'
/Users/xxx/Documents/Arduino/libraries/ArduinoModbus-master/src/ModbusTCPServer.cpp:46: undefined reference to `modbus_tcp_listen'
/var/folders/kf/5_pjskbd1yg3j6qlthc39v5m0000gn/T//ccpthV3p.ltrans0.ltrans.o: In function `accept':
/Users/xxx/Documents/Arduino/libraries/ArduinoModbus-master/src/ModbusTCPServer.cpp:55: undefined reference to `modbus_tcp_accept'
collect2: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte Arduino Uno WiFi Rev2

Did I missed something ?

Best Regards
Frederic

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Nov 28, 2020
@sunn78
Copy link

sunn78 commented Dec 25, 2020

Hi,

May be the problem is the last actualization of mkr samd21 board, try to came back and compile again.

@johnfing
Copy link

johnfing commented Jan 3, 2021

I just tried compiling the sample program against the latest source (1/3/2021) with the uno wifi rev2, and I get the following:
C:\Users\parents\AppData\Local\Temp\ccl2x1Ra.ltrans0.ltrans.o: In function begin': C:\Users\parents\Documents\Arduino\libraries\ArduinoModbus\src/ModbusTCPServer.cpp:40: undefined reference to modbus_new_tcp'
C:\Users\parents\Documents\Arduino\libraries\ArduinoModbus\src/ModbusTCPServer.cpp:46: undefined reference to modbus_tcp_listen' C:\Users\parents\AppData\Local\Temp\ccl2x1Ra.ltrans0.ltrans.o: In function accept':
C:\Users\parents\Documents\Arduino\libraries\ArduinoModbus\src/ModbusTCPServer.cpp:55: undefined reference to `modbus_tcp_accept'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Uno WiFi Rev2.

@sunn78
Copy link

sunn78 commented Jan 4, 2021

Hi,

You must install 1.8.9 instead 1.8.10 / 11

@facchinm
Copy link
Contributor

facchinm commented Jan 4, 2021

The issue should now be fixed in version 1.0.3 of the library on every core/board combination (without any need to revert)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants