Page 1 of 1

Help Getting started again.

Posted: Sun Sep 04, 2016 6:04 pm
by Sacohen
I switched over from a PC to a MAC and I think I have the software and the Bluetooth adapter setup properly, but something has changed since my last version of the library 1.1.1 (1/04/16 I believe) to the version that is on the MAC Download on the website (I'm not sure what version it is).

When I try to upload it I get the following error for this line of code...

Code: Select all

static time_t LastATO=millis();    // For de-bounced ATO
'time_t' does not name a type
And this is what I get in the Verbose read out...
The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
java.io.FileNotFoundException: /Users/Steves-iMac/Documents/Arduino/Code/update/feature.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at java.io.FileInputStream.<init>(FileInputStream.java:79)
at java.io.FileReader.<init>(FileReader.java:41)
at processing.app.Sketch.ProcessFeature(Sketch.java:1373)
at processing.app.Sketch.build(Sketch.java:1766)
at processing.app.Sketch.exportApplet(Sketch.java:1797)
at processing.app.Sketch.exportApplet(Sketch.java:1783)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2357)
at java.lang.Thread.run(Thread.java:695)
Number of Relay Expansion Modules: 1
Standard Menu
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1705)
at java.io.File.createTempFile0(File.java:1726)
at java.io.File.createTempFile(File.java:1803)
at processing.app.Base.saveFile(Base.java:2189)
at processing.app.Sketch.ProcessFeature(Sketch.java:1456)
at processing.app.Sketch.build(Sketch.java:1766)
at processing.app.Sketch.exportApplet(Sketch.java:1797)
at processing.app.Sketch.exportApplet(Sketch.java:1783)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2357)
at java.lang.Thread.run(Thread.java:695)
/Applications/Reef_Angel.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I/Applications/Reef_Angel.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Reef_Angel.app/Contents/Resources/Java/hardware/arduino/variants/standard -I/Applications/Reef_Angel.app/Contents/Resources/Java/libraries/Wire -I/Applications/Reef_Angel.app/Contents/Resources/Java/libraries/SoftwareSerial /var/folders/vj/m9jly2mx411fbfrc8qdg1z2c0000gn/T/build4342936369941451460.tmp/Steves_Backup.cpp -o /var/folders/vj/m9jly2mx411fbfrc8qdg1z2c0000gn/T/build4342936369941451460.tmp/Steves_Backup.cpp.o
Steves_Backup.cpp:1:32: warning: ReefAngel_Features.h: No such file or directory
Steves_Backup.cpp:2:21: warning: Globals.h: No such file or directory
Steves_Backup.cpp:3:21: warning: RA_Wifi.h: No such file or directory
Steves_Backup.cpp:5:21: warning: OneWire.h: No such file or directory
Steves_Backup.cpp:6:18: warning: Time.h: No such file or directory
Steves_Backup.cpp:7:23: warning: DS1307RTC.h: No such file or directory
Steves_Backup.cpp:8:28: warning: InternalEEPROM.h: No such file or directory
Steves_Backup.cpp:9:25: warning: RA_NokiaLCD.h: No such file or directory
Steves_Backup.cpp:10:20: warning: RA_ATO.h: No such file or directory
Steves_Backup.cpp:11:25: warning: RA_Joystick.h: No such file or directory
Steves_Backup.cpp:12:17: warning: LED.h: No such file or directory
Steves_Backup.cpp:13:27: warning: RA_TempSensor.h: No such file or directory
Steves_Backup.cpp:14:19: warning: Relay.h: No such file or directory
Steves_Backup.cpp:15:20: warning: RA_PWM.h: No such file or directory
Steves_Backup.cpp:16:19: warning: Timer.h: No such file or directory
Steves_Backup.cpp:17:20: warning: Memory.h: No such file or directory
Steves_Backup.cpp:19:23: warning: RA_Colors.h: No such file or directory
Steves_Backup.cpp:20:29: warning: RA_CustomColors.h: No such file or directory
Steves_Backup.cpp:21:22: warning: Salinity.h: No such file or directory
Steves_Backup.cpp:22:16: warning: RF.h: No such file or directory
Steves_Backup.cpp:23:16: warning: IO.h: No such file or directory
Steves_Backup.cpp:24:17: warning: ORP.h: No such file or directory
Steves_Backup.cpp:25:16: warning: AI.h: No such file or directory
Steves_Backup.cpp:26:16: warning: PH.h: No such file or directory
Steves_Backup.cpp:27:24: warning: WaterLevel.h: No such file or directory
Steves_Backup.cpp:28:22: warning: Humidity.h: No such file or directory
Steves_Backup.cpp:29:20: warning: DCPump.h: No such file or directory
Steves_Backup.cpp:30:23: warning: ReefAngel.h: No such file or directory
Steves_Backup.cpp:43:1: warning: "Unused" redefined
Steves_Backup.cpp:38:1: warning: this is the location of the previous definition
Steves_Backup.cpp:45:1: warning: "Unused" redefined
Steves_Backup.cpp:43:1: warning: this is the location of the previous definition
Steves_Backup.cpp:46:1: warning: "Unused" redefined
Steves_Backup.cpp:45:1: warning: this is the location of the previous definition
Steves_Backup.cpp:47:1: warning: "Unused" redefined
Steves_Backup.cpp:46:1: warning: this is the location of the previous definition
Steves_Backup:57: error: 'time_t' does not name a type
Steves_Backup.cpp: In function 'void setup()':
Steves_Backup:65: error: 'ReefAngel' was not declared in this scope
Steves_Backup:69: error: 'Port4Bit' was not declared in this scope
Steves_Backup:70: error: 'Port1Bit' was not declared in this scope
Steves_Backup:72: error: 'Port2Bit' was not declared in this scope
Steves_Backup:76: error: 'T1_PROBE' was not declared in this scope
Steves_Backup:79: error: 'InternalMemory' was not declared in this scope
Steves_Backup:93: error: 'Sync' was not declared in this scope
Steves_Backup:99: error: 'Box1_Port8' was not declared in this scope
Steves_Backup.cpp: In function 'void loop()':
Steves_Backup:109: error: 'ReefAngel' was not declared in this scope
Steves_Backup:113: error: 'PWMSlope' was not declared in this scope
Steves_Backup:125: error: 'hour' was not declared in this scope
Steves_Backup:128: error: 'MoonPhase' was not declared in this scope
Steves_Backup:134: error: 'Box1_Port7' was not declared in this scope
Steves_Backup:135: error: 'weekday' was not declared in this scope
Steves_Backup:135: error: 'dowMonday' was not declared in this scope
Steves_Backup:135: error: 'hour' was not declared in this scope
Steves_Backup:135: error: 'minute' was not declared in this scope
Steves_Backup:138: error: 'weekday' was not declared in this scope
Steves_Backup:138: error: 'dowWednesday' was not declared in this scope
Steves_Backup:138: error: 'hour' was not declared in this scope
Steves_Backup:138: error: 'minute' was not declared in this scope
Steves_Backup:141: error: 'weekday' was not declared in this scope
Steves_Backup:141: error: 'dowFriday' was not declared in this scope
Steves_Backup:141: error: 'hour' was not declared in this scope
Steves_Backup:141: error: 'minute' was not declared in this scope
Steves_Backup:144: error: 'Box1_Port6' was not declared in this scope
Steves_Backup:145: error: 'weekday' was not declared in this scope
Steves_Backup:145: error: 'dowFriday' was not declared in this scope
Steves_Backup:145: error: 'hour' was not declared in this scope
Steves_Backup:145: error: 'minute' was not declared in this scope
Steves_Backup:156: error: 'now' was not declared in this scope
Steves_Backup:160: error: 'now' was not declared in this scope
Steves_Backup:165: error: 'now' was not declared in this scope
Steves_Backup:165: error: 'SECS_PER_DAY' was not declared in this scope
Steves_Backup:170: error: 'FEEDING_MODE' was not declared in this scope
Steves_Backup:173: error: 'now' was not declared in this scope
Steves_Backup:176: error: 'now' was not declared in this scope
Steves_Backup:178: error: 'Box1_Port2' was not declared in this scope
Steves_Backup:182: error: 'Box1_Port2' was not declared in this scope
Steves_Backup:198: error: 'now' was not declared in this scope
Steves_Backup:206: error: 'time_t' does not name a type
Steves_Backup:207: error: 'WATERCHANGE_MODE' was not declared in this scope
Steves_Backup:207: error: 'wcTimer' was not declared in this scope
Steves_Backup:210: error: 'wcTimer' was not declared in this scope
Steves_Backup:241: error: 'ReefCrest' was not declared in this scope
Steves_Backup:241: error: 'Gyre' was not declared in this scope
Steves_Backup:241: error: 'Lagoon' was not declared in this scope
Steves_Backup:241: error: 'Constant' was not declared in this scope
Steves_Backup:241: error: 'TidalSwell' was not declared in this scope
Steves_Backup:241: error: 'ShortPulse' was not declared in this scope
Steves_Backup:241: error: 'LongPulse' was not declared in this scope
Steves_Backup:241: error: 'Else' was not declared in this scope
Steves_Backup:243: error: 'SECS_PER_DAY' was not declared in this scope
Steves_Backup:250: error: 'FEEDING_MODE' was not declared in this scope
Steves_Backup:255: error: 'InternalMemory' was not declared in this scope
Steves_Backup:256: error: 'NutrientTransport' was not declared in this scope
Steves_Backup:257: error: 'SECS_PER_DAY' was not declared in this scope
Steves_Backup:260: error: 'InternalMemory' was not declared in this scope
Steves_Backup:263: error: 'InternalMemory' was not declared in this scope
Steves_Backup.cpp:156: warning: unused variable 'Kalk_Mixing'
Steves_Backup.cpp: In function 'void DrawCustomMain()':
Steves_Backup:289: error: 'ReefAngel' was not declared in this scope
Steves_Backup:291: error: 'pingSerial' was not declared in this scope
Steves_Backup:294: error: 'COLOR_DARKGOLDENROD' was not declared in this scope
Steves_Backup:294: error: 'DefaultBGColor' was not declared in this scope
Steves_Backup:301: error: 'ConvertNumToString' was not declared in this scope
Steves_Backup:303: error: 'DefaultFGColor' was not declared in this scope
Steves_Backup.cpp:288: warning: unused variable 'x'
Steves_Backup.cpp:288: warning: unused variable 'y'
Thanks for the help again.
It's been so long since I have done anything with it.

My current code can be found here http://forum.reefangel.com/viewtopic.php?f=11&t=3873
and at the link in my signature.

Re: Help Getting started again.

Posted: Sun Sep 04, 2016 8:29 pm
by lnevo
Make sure to copy the ReefAngel folder from the download folder into your Documents folder.

Re: Help Getting started again.

Posted: Sun Sep 04, 2016 9:55 pm
by Sacohen
It is.

Image

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 2:28 pm
by Sacohen
I re-put the Arduino folder into the Documents folder and I'm still receiving the same messages.
I noticed that the default folder for the sketch's in the update folder so I tried moving my sketch over to there and still received the same errors.

I even tried putting the code in the main Arduino folder.

All attempts gave me the same error messages when trying to compile and upload the code.

Any help is appreciated.

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 2:46 pm
by lnevo
Can you check in Preferences where its pointing? What version of the IDE are you using? I need to update to the new one, could be why it's failing..

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 5:03 pm
by Sacohen
It is pointing to /Users/Steves-iMac/Documents/Arduino/Code but I have tried /Users/Steves-iMac/Documents/Arduino/update and just /Users/Steves-iMac/Documents/Arduino.

Image

I'm not sure what you mean by what version of the IDE.
I've been away a while and forgot a lot.
The library code?
I don't know how to determine that.
Whatever is part of the download on the website.

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 5:57 pm
by lnevo
It should just be Arduino

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 6:24 pm
by Sacohen
I did try just Arduino with the sketch out in the Arduino folder and still the same results.
Image

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 7:02 pm
by lnevo
If you click on Arduino and go to About Arduino it will tell you the version.... just curious if it's the old or new version... I haven't tried upgrading yet.. a bit nervous :)

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 7:11 pm
by lnevo
The version on the site is 1.1.3. I'm going to try and upgrade to this over the weekend.

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 7:13 pm
by lnevo
Roberto is there a permlink to the older version? I'd send him the one I have but I can't find the archive anywhere :(

Re: Help Getting started again.

Posted: Thu Sep 08, 2016 7:27 pm
by Sacohen
The MAC version seems to be 1.0.1.

Image

Re: Help Getting started again.

Posted: Fri Sep 09, 2016 12:21 pm
by rimai
Yeah, the old version is the one in the download page of the website. It is the 1.0.1 IDE with 1.1.3 main branch of libraries.
It appears you got the correct IDE, just mismatched settings.
The sketchbook location should be /Users/Steves-iMac/Documents/Arduino in your case.
After you change it, you must quit Arduino and open it again though. If everything is correct, next time you open Arduino, when you click the open button, you should see the RA_Preloaded and the other codes in the drop down list.

Re: Help Getting started again.

Posted: Fri Sep 09, 2016 2:34 pm
by Sacohen
Ok. That seems to be better.
I'm not getting the following error...

Code: Select all

static time_t LastATO=millis();    // For de-bounced ATO
'time_t' does not name a type
I'm getting a very vague "Error Compiling".
There is no line # or anything else.

The last line in the verbose readout is...

Code: Select all

/Users/Steves-iMac/Documents/Arduino/libraries/Globals/Globals.h:366: warning: 'RANetStatus' defined but not used

Re: Help Getting started again.

Posted: Fri Sep 09, 2016 5:23 pm
by rimai
Warnings are safe to ignore. If you don't want to see them, just suppress them. For some reason, the Mac version shows suppressed but you actually need to force it to show and then suppress or it will never suppress. Bug in the IDE, I guess.
Go to File->Preferences and select All and click Ok. Then go back and select none again and click ok.
That will suppress the warnings.
If it is complaining about time_t, you can use unsigned long instead, which is actually better.

Re: Help Getting started again.

Posted: Sun Sep 11, 2016 1:40 pm
by Sacohen
There is no preferences under file.
It's under Arduino and there is nothing like you are talking about in those preferences.
This is that pane...
Image

The file section has the following options...

Image

I don't care about the warning as long as it will compile and upload properly, but it won't' do that.

I'm still getting that very vague "Error Compiling".
There is no line # or anything else.

The last line in the verbose readout is...

Code: Select all

/Users/Steves-iMac/Documents/Arduino/libraries/Globals/Globals.h:366: warning: 'RANetStatus' defined but not used
and it just stops.
It doesn't upload at all.
It happens on the Bluetooth or USB-TTY port connections.

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 6:00 am
by lnevo
Try downgrading the libraries to the last production version would be my suggestion.

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 11:27 am
by Sacohen
Where do I find those again?

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 11:27 am
by Sacohen
Where do I find those again?

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 11:34 am
by rimai
One thing I notice is that your sketchbook is pointing to the wrong folder.
Try deleting the code folder in the path.

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 11:48 am
by Sacohen
I have tried that too.

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 11:49 am
by rimai
Can you post the entire error log?

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 5:01 pm
by Sacohen
I can't.
It is too large...

Your message contains 137874 characters. The maximum number of allowed characters is 100000.

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 7:17 pm
by rimai
Save in a text file and attach

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 8:20 pm
by Sacohen
The sketch is in /Users/Steves-iMac/Documents/Arduino and the only other error besides the attached is the "error compiling" in the orange bar between the sketch and the error log.
Steves Backip Sketch error log..rtf
(100.92 KiB) Downloaded 603 times

Re: Help Getting started again.

Posted: Fri Sep 16, 2016 11:57 pm
by rimai
Do you have RA Plus selected as board?
In the log you sent it says this "-mmcu=atmega328p ", which is the wrong chip. Standard RA used 328, but RA+ uses 2560.
Can you also post your code?

Re: Help Getting started again.

Posted: Sat Sep 17, 2016 5:24 am
by Sacohen
That did it.
I was stupid enough to follow the instructions for setting up the software for the MAC which said to set the controller to Reef Angel Controller w/ optiboot.

It's working fine now and the BlueTooth connection worked fine 1st shot.

Re: Help Getting started again.

Posted: Sat Sep 17, 2016 7:22 am
by lnevo
sweet!

Re: Help Getting started again.

Posted: Sat Sep 17, 2016 7:25 am
by Sacohen
Yep.
Stupid mistake on my part.
Thanks for your help Lnevo and Rimai.

Sorry about the wasted time.☹

Sent from my SM-G928P using Tapatalk