Skip to content
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

Problem with Arduino NANO 33 IoT #165

Closed
piotr199809 opened this issue Jan 13, 2021 · 5 comments · Fixed by #166
Closed

Problem with Arduino NANO 33 IoT #165

piotr199809 opened this issue Jan 13, 2021 · 5 comments · Fixed by #166

Comments

@piotr199809
Copy link

Hello! I want to upload a program using the RF24Network library to Arduino NANO 33 IoT board, but I get errors during compilation.
Errors:

Arduino:1.8.13 (Windows 10), Płytka:"Arduino NANO 33 IoT"

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:28:6: error: 'Sync' has not been declared

void Sync::update(void)

  ^~~~

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp: In function 'void update()':

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:31:3: error: 'network' was not declared in this scope

network.update();

^~~~~~~

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:37:16: error: 'len' was not declared in this scope

while ( at < len )

            ^~~

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:39:10: error: 'app_data' was not declared in this scope

 if ( app_data && internal_data && app_data[at] != internal_data[at] )

      ^~~~~~~~

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:39:10: note: suggested alternative: 'update'

 if ( app_data && internal_data && app_data[at] != internal_data[at] )

      ^~~~~~~~

      update

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:39:22: error: 'internal_data' was not declared in this scope

 if ( app_data && internal_data && app_data[at] != internal_data[at] )

                  ^~~~~~~~~~~~~

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:59:42: error: 'to_node' was not declared in this scope

 RF24NetworkHeader header(/*to node*/ to_node, /*type*/ 'S' /*Sync*/);

                                      ^~~~~~~

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:59:42: note: suggested alternative: 'tone'

 RF24NetworkHeader header(/*to node*/ to_node, /*type*/ 'S' /*Sync*/);

                                      ^~~~~~~

                                      tone

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:90:9: error: 'app_data' was not declared in this scope

     app_data[pos] = val;

     ^~~~~~~~

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:90:9: note: suggested alternative: 'update'

     app_data[pos] = val;

     ^~~~~~~~

     update

C:\Users\piotr\Documents\Arduino\libraries\RF24Network\Sync.cpp:91:9: error: 'internal_data' was not declared in this scope

     internal_data[pos] = val;

     ^~~~~~~~~~~~~

exit status 1

Błąd kompilacji dla płytki Arduino NANO 33 IoT.

What is wrong? How to fix it?

@2bndy5
Copy link
Member

2bndy5 commented Jan 13, 2021

+1 I was able to replicate this using the arduino library manager to install the RF24 & RF24Network libs to compile the helloworld_rx.ino example. This seems specific to the Arduino SAMD core (it doesn't happen with adafruit SAMD core).

@TMRh20
Copy link
Member

TMRh20 commented Jan 14, 2021 via email

@2bndy5
Copy link
Member

2bndy5 commented Jan 14, 2021

yep, that fixed the compilation errors. @TMRh20 I can add an Arduino CI workflow like I did for the RF24 lib. The Arduino Nano 33 IoT board is included already, and a library (like RF24) can be specified as a dependency.

@TMRh20
Copy link
Member

TMRh20 commented Jan 14, 2021

@2bndy5 Sure, that'd be great

@piotr199809
Copy link
Author

Thanks! I removed Sync.cpp and Sync.h and it helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants