-
Notifications
You must be signed in to change notification settings - Fork 154
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
Unable to upload RF24Mesh_Example.ino to ATTiny85 #32
Comments
Do you know where it ends? if you use arduino ide turn on Debugging option in Preferences |
I tried with RF24Network_Dev and this is what I get.
|
My master node would be a Arduino Uno I don't face any issue in uploading the master sketch in it. With ATTiny85 I am getting this. |
This is the modifed code I use
|
Tried the above change and the first error is resolved. But the SPI issue is still there. Any idea on why its happening ? |
Yup, just don't |
Just found that. Thank you :) |
I am using the 3 pin configuration in ATTiny85. Arduino Uno will be the master. Will mesh work in this scenario ? |
If you haven't tried it yet, it should work. |
@TMRh20 Close this issue please. |
I am running an example "Mesh Example Master To Nodes" from trmh20's Mesh library. Arduino: 1.8.5 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)" In file included from C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.h:40:0,
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'bool RF24Mesh::begin(uint8_t, rf24_datarate_e, uint32_t)': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:25:20: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'uint8_t RF24Mesh::update()': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:49:24: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'bool RF24Mesh::write(uint16_t, const void*, uint8_t, size_t)': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:95:24: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'bool RF24Mesh::write(const void*, uint8_t, size_t, uint8_t)': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:103:22: note: in expansion of macro 'MESH_DEFAULT_ADDRESS' if(mesh_address == MESH_DEFAULT_ADDRESS){ return 0; }
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'bool RF24Mesh::checkConnection()': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:144:35: note: in expansion of macro 'MESH_DEFAULT_ADDRESS' while(count-- && mesh_address != MESH_DEFAULT_ADDRESS){
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'int16_t RF24Mesh::getAddress(uint8_t)': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:176:24: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'int16_t RF24Mesh::getNodeID(uint16_t)': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:208:26: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'bool RF24Mesh::releaseAddress()': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:226:24: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:230:23: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'uint16_t RF24Mesh::renewAddress(uint32_t)': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:249:17: note: in expansion of macro 'MESH_DEFAULT_ADDRESS' network.begin(MESH_DEFAULT_ADDRESS);
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'bool RF24Mesh::requestAddress(uint8_t)': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:407:25: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp: In member function 'void RF24Mesh::DHCP()': C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:554:29: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:595:101: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh_config.h:23:30: error: 'NETWORK_DEFAULT_ADDRESS' was not declared in this scope #define MESH_DEFAULT_ADDRESS NETWORK_DEFAULT_ADDRESS
C:\Users\Venus Bilandi\Documents\Arduino\libraries\RF24Mesh-master\RF24Mesh.cpp:606:32: note: in expansion of macro 'MESH_DEFAULT_ADDRESS'
exit status 1 This report would have more information with |
@venus696 Wrong place to post your issue, but update RF24Network. |
Will RF24Mesh work in ATTiny85 ? I tried uploading the sketch but I am unable to do it. I removed all the Serial write. When I start building it just gets stuck at some point. Are any more steps needed for this ?
The text was updated successfully, but these errors were encountered: