RF24 icon indicating copy to clipboard operation
RF24 copied to clipboard

sensornet report compilation error in Arduino1.0.1

Open Ardidrones opened this issue 12 years ago • 13 comments

When trying to compile sensor net example from the zip it reports a eeprom_update_block is not declared.

Ardidrones avatar Sep 28 '12 15:09 Ardidrones

I get the same using Arduino 1.0.2:

nodeconfig.cpp: In function ‘void nodeconfig_listen()’: nodeconfig.cpp:74: error: ‘eeprom_update_block’ was not declared in this scope nodeconfig.cpp:83: error: ‘eeprom_update_block’ was not declared in this scope nodeconfig.cpp:101: error: ‘eeprom_update_block’ was not declared in this scope

probonopd avatar Nov 23 '12 19:11 probonopd

Same using Arduino 1.0.3 ...

I noticed on your blog back in Nov. you mentioned needing to fix this ... did that ever get done and just not updated on here or do you know of a workaround?

DevGW avatar Feb 12 '13 20:02 DevGW

Same errors encountered here, is there any way to avoid this problem at the very least? :)

seowcy avatar Feb 21 '13 12:02 seowcy

@seowcy I have a pull request in that fixes this issue and is working on 1.0.1 and 1.5.2 ... I don't know if this is being maintained any more so are welcome to grab my fork from my repo and see if that makes a difference. I only updated the code for sensornet for the fix so not sure any of the other examples will work or not ... I believe they all do.

DevGW avatar Feb 21 '13 12:02 DevGW

@RWSDev Thanks! I'm now encountering problems with Button and Timer when compiling the code though. Not sure what the problem is. Any idea? screenshot1

seowcy avatar Feb 21 '13 13:02 seowcy

for sensornet to compile, you will need to download all the libraries from maniacbug that are included in the top of the .ino ...

#include <Tictocs.h>
#include <Button.h>
#include <TictocTimer.h>

DevGW avatar Feb 21 '13 13:02 DevGW

Thanks for the help! It works now! I will contact you if I need more help.

Thanks again!

seowcy avatar Feb 21 '13 14:02 seowcy

@RWSDev: I have the same issue with those missing libraries. Where did you find them?

tott avatar Mar 12 '13 14:03 tott

Ok, I just found it. For reference: You need to clone https://github.com/maniacbug/Tictocs.git in your libraries folder and restart the Arduino IDE. Then the examples will compile

tott avatar Mar 12 '13 15:03 tott

Hi I'm using 1.0.3, and I've downlaod the Tictocs.git but I'm im still getting the errors: nodeconfig.cpp: In function ‘void nodeconfig_listen()’: nodeconfig.cpp:74: error: ‘eeprom_update_block’ was not declared in this scope nodeconfig.cpp:83: error: ‘eeprom_update_block’ was not declared in this scope nodeconfig.cpp:101: error: ‘eeprom_update_block’ was not declared in this scope

Jimster1 avatar Mar 27 '13 10:03 Jimster1

@Jimster1 I used https://github.com/RWSDev/RF24Network which included a pull request that had some fixes for the compilation issue. Did you use this version as well or patched in the pull request?

tott avatar Mar 27 '13 11:03 tott

@tott Thats awesome, that now works a treat. sorry forr the slow reply I've been away on holiday.

Jimster1 avatar Apr 09 '13 11:04 Jimster1

@tott that was very help full.. thanks man.

arabeei avatar Apr 17 '13 10:04 arabeei