Cant get a successful upload

New members questions
Post Reply
mizzo
Posts: 3
Joined: Sat Apr 20, 2013 1:52 pm

Cant get a successful upload

Post by mizzo »

Using the Wizard to create simple code. Keep getting an error.

just bought this unit used from someone that couldn't figure it out either.

Here are the results I guess... I'm confirmed the port, and board tried with optiboot and regular reef angel controller... Running Windows 8


The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Standard Menu
Binary sketch size: 25,586 bytes (of a 32,256 byte maximum)
C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P\\.\COM4 -b115200 -D -Uflash:w:C:\Users\Mike\AppData\Local\Temp\build2962701524458462444.tmp\sketch_apr20a.cpp.hex:i

avrdude: Version 6.0, compiled on Apr 6 2012 at 19:29:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.xxx
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM4
Using Programmer : arduino
Overriding Baud Rate : 115200
Rebooting Reef Angel Controller
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x64

avrdude done. Thank you.
mizzo
Posts: 3
Joined: Sat Apr 20, 2013 1:52 pm

Re: Cant get a successful upload

Post by mizzo »

I was told it is a new USB TTL cable, never used... The unit does seem to reboot 2x while trying to upload.

Just wanted to add that info.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Cant get a successful upload

Post by rimai »

Was a code ever been uploaded to the unit before?
Roberto.
mizzo
Posts: 3
Joined: Sat Apr 20, 2013 1:52 pm

Re: Cant get a successful upload

Post by mizzo »

I do not believe so, he just purchased it within the last couple months.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Cant get a successful upload

Post by rimai »

PM me if you want to send the head unit for repair.
Roberto.
dapg8gt
Posts: 104
Joined: Tue Apr 16, 2013 7:33 pm
Location: 650 Bay Area..

Re: Cant get a successful upload

Post by dapg8gt »

This is the same issue I'm having Roberto..I posted a screenshot in another post. I get the same issue as him.. I've tried all the other things mentioned on the other threads. Com port,cable ,board,serial monitor etc...
My other hobby has 450rwhp and eats tires instead of mysis!
dapg8gt
Posts: 104
Joined: Tue Apr 16, 2013 7:33 pm
Location: 650 Bay Area..

Re: Cant get a successful upload

Post by dapg8gt »

Capture.PNG
Capture.PNG (113.33 KiB) Viewed 4781 times
This is what I get trying to copy the error code I don't think its the right thing though.. So ill include a Pic... The code below was just me trying to revert the code back to default so it was not what the wizard made it was the default. Let me know what I'm doing wrong :(

I seem to only have one com port option to choose from com 5.. Even when I switch ports it says error com port 0 not found. Shouldn't I have 3,4,5 since it said those on the driver install? If I pull the USB out the com 5 disappears so I know it's seeing it.. I have tried most every option that's on the forum except the one that works Ha Ha. And I was worried about the PH probe J/K.. :lol:
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <ReefAngel.h>

void setup()
{
  ReefAngel.Init(); // Initialize Controller
  ReefAngel.AddStandardMenu();
  ReefAngel.AddDateTimeMenu();
  ReefAngel.FeedingModePorts = Port5Bit | Port6Bit; // Turn off Ports 5 and 6 when Feeding Mode is activated
  ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit; // Turn off Ports 1, 5, 6, 7 and 8 when Water Change Mode is activated
  ReefAngel.OverheatShutoffPorts = Port3Bit | Port4Bit | Port7Bit; // Turn off Ports 3, 4 and 7 when overheat occurs
  ReefAngel.LightsOnPorts = Port3Bit | Port4Bit; // Turn on/off Ports 3 and 4 when Light On/Off menu option is selected
  ReefAngel.OverheatProbe = T1_PROBE; // Use Temperature probe 1 to check for overheat
  ReefAngel.Relay.On(Port8); // Always on
}

void loop()
{
  ReefAngel.LCD.DrawLargeText(COLOR_STEELBLUE,COLOR_WHITE,28,121,"Reef Angel"); // Display Reef Angel banner
  ReefAngel.StandardATO(Port1); // Standard ATO
  ReefAngel.MoonLights(Port2); // Moonlights or Refugium
  ReefAngel.StandardLights(Port3,30); // Actinic Lights
  ReefAngel.StandardLights(Port4,0); // Daylight Lights
  ReefAngel.Wavemaker1(Port5); // Wavemaker 1
  ReefAngel.Wavemaker2(Port6); // Wavemaker 2
  ReefAngel.StandardHeater(Port7); // Heater
  ReefAngel.PWM.StandardDaylight(); // Dimming for Daylight Channel
  ReefAngel.PWM.StandardActinic(30); // Dimming for Actinic Channel
  ReefAngel.ShowInterface(); // Display everything on the LCD screen
}





My other hobby has 450rwhp and eats tires instead of mysis!
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Cant get a successful upload

Post by rimai »

Roberto.
Post Reply