Page 1 of 1

Help!!! No internal memory found and uploading error

Posted: Wed Sep 05, 2012 8:36 am
by AquaO
Hi,
I add a relay expansion box and I created a new code with the new wizard. I uploaded the new code but I had forgotten to change the jumper. When I change the jumper to pins SDA and SCL the controller unit was telling me ''no internal memory found'' After doing some research on the forum I tried to initialize the memory but when I uploaded the code, arduino indicated ''uploading error''.

I put the jumper where he was and unplug the relay expansion box and I tried to make a reset and return to the previous code but without success ...
Always a message ''uploading error''

Thank you for your help.

Eric

Re: Help!!! No internal memory found and dowloading error

Posted: Wed Sep 05, 2012 8:49 am
by rimai
Yes, you are in the right path.
You need to upload the InitialInternalMemory file.
File->Sketchbook->Example Codes->InitialInternalMemory.
If you are getting errors with that code, can you please copy and paste the error code here?

Re: Help!!! No internal memory found and dowloading error

Posted: Wed Sep 05, 2012 8:56 am
by AquaO
Yes i tried this but Arduino message is "downloading error" no code error.

Thank

Re: Help!!! No internal memory found and dowloading error

Posted: Wed Sep 05, 2012 8:58 am
by rimai
Can you post a screen shot then?
I've never seen downloading error before.

Re: Help!!! No internal memory found and dowloading error

Posted: Wed Sep 05, 2012 9:02 am
by AquaO
Yes i will tried when I get home
Thank for your fast answer
Eric

Re: Help!!! No internal memory found and dowloading error

Posted: Wed Sep 05, 2012 5:22 pm
by AquaO
This is the code
#include <InternalEEPROM.h>

#include <ReefAngel_Features.h>
#include <Globals.h>
#include <Time.h>
#include <OneWire.h>
#include <RA_NokiaLCD.h>
#include <avr/pgmspace.h>
#include <InternalEEPROM.h>
#include <Wire.h>
#include <Memory.h>

RA_NokiaLCD e;

void setup()
{
    e.Init();
    e.Clear(COLOR_WHITE,0,0,132,132);
    e.BacklightOn();

    InternalMemory.MHOnHour_write(15);
    InternalMemory.MHOnMinute_write(30);
    InternalMemory.MHOffHour_write(21);
    InternalMemory.MHOffMinute_write(0);
    InternalMemory.MHDelay_write(7);
    InternalMemory.StdLightsOnHour_write(14);
    InternalMemory.StdLightsOnMinute_write(0);
    InternalMemory.StdLightsOffHour_write(21);
    InternalMemory.StdLightsOffMinute_write(30);
    InternalMemory.DP1OnHour_write(20);
    InternalMemory.DP1OnMinute_write(0);
    InternalMemory.DP2OnHour_write(22);
    InternalMemory.DP2OnMinute_write(30);
    InternalMemory.DP1Timer_write(4);
    InternalMemory.DP2Timer_write(4);
    InternalMemory.DP1RepeatInterval_write(60);
    InternalMemory.DP2RepeatInterval_write(60);
    InternalMemory.ATOHourInterval_write(0);
    InternalMemory.FeedingTimer_write(900);
    InternalMemory.LCDTimer_write(600);
    InternalMemory.LEDPWMActinic_write(20);
    InternalMemory.LEDPWMDaylight_write(20);
    InternalMemory.WM1Timer_write(10);
    InternalMemory.WM2Timer_write(15);
    InternalMemory.HeaterTempOn_write(766);
    InternalMemory.HeaterTempOff_write(770);
    InternalMemory.ChillerTempOn_write(774);
    InternalMemory.ChillerTempOff_write(770);
    InternalMemory.OverheatTemp_write(1500);
    InternalMemory.PHMax_write(830);
    InternalMemory.PHMin_write(540);
    InternalMemory.SalMax_write(2550);
    InternalMemory.ORPMax_write(285);
    InternalMemory.ORPMin_write(1400);
    InternalMemory.RFMode_write(Constant);
    InternalMemory.RFSpeed_write(50);
    InternalMemory.RFDuration_write(8);
    InternalMemory.RFDuration_write(8);
    InternalMemory.PWMSlopeStartD_write(15);
    InternalMemory.PWMSlopeEndD_write(100);
    InternalMemory.PWMSlopeDurationD_write(60);
    InternalMemory.PWMSlopeStartA_write(15);
    InternalMemory.PWMSlopeEndA_write(100);
    InternalMemory.PWMSlopeDurationA_write(60);
    InternalMemory.PWMSlopeStart0_write(15);
    InternalMemory.PWMSlopeEnd0_write(100);
    InternalMemory.PWMSlopeDuration0_write(60);
    InternalMemory.PWMSlopeStart1_write(15);
    InternalMemory.PWMSlopeEnd1_write(100);
    InternalMemory.PWMSlopeDuration1_write(60);
    InternalMemory.PWMSlopeStart2_write(15);
    InternalMemory.PWMSlopeEnd2_write(100);
    InternalMemory.PWMSlopeDuration2_write(60);
    InternalMemory.PWMSlopeStart3_write(15);
    InternalMemory.PWMSlopeEnd3_write(100);
    InternalMemory.PWMSlopeDuration3_write(60);
    InternalMemory.PWMSlopeStart4_write(15);
    InternalMemory.PWMSlopeEnd4_write(100);
    InternalMemory.PWMSlopeDuration4_write(60);
    InternalMemory.PWMSlopeStart5_write(15);
    InternalMemory.PWMSlopeEnd5_write(100);
    InternalMemory.PWMSlopeDuration5_write(60);
    InternalMemory.ATOExtendedTimeout_write(120);
    InternalMemory.ORPMin_write(2050);
    InternalMemory.ORPMax_write(450);
    InternalMemory.ActinicOffset_write(30);
    InternalMemory.CO2ControlOn_write(770);
    InternalMemory.CO2ControlOff_write(760);
    InternalMemory.PHControlOn_write(800);
    InternalMemory.PHControlOff_write(810);
    InternalMemory.AISlopeStartW_write(0);
    InternalMemory.AISlopeEndW_write(100);
    InternalMemory.AISlopeDurationW_write(60);
    InternalMemory.AISlopeStartB_write(0);
    InternalMemory.AISlopeEndB_write(100);
    InternalMemory.AISlopeDurationB_write(60);
    InternalMemory.AISlopeStartRB_write(0);
    InternalMemory.AISlopeEndRB_write(100);
    InternalMemory.AISlopeDurationRB_write(60);
    InternalMemory.RadionSlopeStartW_write(0);
    InternalMemory.RadionSlopeEndW_write(100);
    InternalMemory.RadionSlopeDurationW_write(60);
    InternalMemory.RadionSlopeStartRB_write(0);
    InternalMemory.RadionSlopeEndRB_write(100);
    InternalMemory.RadionSlopeDurationRB_write(60);
    InternalMemory.RadionSlopeStartR_write(0);
    InternalMemory.RadionSlopeEndR_write(100);
    InternalMemory.RadionSlopeDurationR_write(60);
    InternalMemory.RadionSlopeStartG_write(0);
    InternalMemory.RadionSlopeEndG_write(100);
    InternalMemory.RadionSlopeDurationG_write(60);
    InternalMemory.RadionSlopeStartB_write(0);
    InternalMemory.RadionSlopeEndB_write(100);
    InternalMemory.RadionSlopeDurationB_write(60);
    InternalMemory.RadionSlopeStartI_write(0);
    InternalMemory.RadionSlopeEndI_write(100);
    InternalMemory.RadionSlopeDurationI_write(60);
    InternalMemory.DelayedStart_write(7);
    InternalMemory.PHExpMax_write(2500);
    InternalMemory.PHExpMin_write(500);
    InternalMemory.WaterLevelMax_write(3575);
    InternalMemory.WaterLevelMin_write(2875);
    InternalMemory.IMCheck_write(0xCF06A31E);
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+20, MENU_START_ROW*3, "Memory Updated");
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*6, "You can now");
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*7, "upload your");
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+33, MENU_START_ROW*8, "INO code");
}

void loop()
{
}




And this is my print screen

Re: Help!!! No internal memory found and dowloading error

Posted: Wed Sep 05, 2012 5:25 pm
by rimai
Ok, it's not downloading.. It's uploading... That's why I was confused.
Can you copy and paste the error log in red??

Help!!! No internal memory found and dowloading error

Posted: Wed Sep 05, 2012 5:55 pm
by AquaO
rimai wrote:Ok, it's not downloading.. It's uploading... That's why I was confused.
Can you copy and paste the error log in red??
Oh sorry for that it's my error ;)

Yes i Will copy the error log.

Re: Help!!! No internal memory found and dowloading error

Posted: Wed Sep 05, 2012 6:55 pm
by AquaO
This is a uploading error

The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Simple Menu
Taille binaire du croquis : 6 812 octets (d'un max de 32 256 octets)
C:\Program Files\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P\\.\COM4 -b115200 -D -Uflash:w:C:\Users\HPMINI~1\AppData\Local\Temp\build3020325183852794365.tmp\InitialInternalMemory.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.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files\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.

Sorry for the delay

Re: Help!!! No internal memory found and uploading error

Posted: Wed Sep 05, 2012 7:20 pm
by rimai
Do you have RA or RA+?
Can you make sure that it is COM4 that your USB cable is using?

Re: Help!!! No internal memory found and uploading error

Posted: Wed Sep 05, 2012 9:08 pm
by AquaO
I uninstall the software and reinstall it still not working. I even used another computer and I still have same problem.

I use the second generation of RA, I bought it new in the box from another person who had never used. I use it since February 2012 with success.

Thank

Re: Help!!! No internal memory found and uploading error

Posted: Wed Sep 05, 2012 9:17 pm
by rimai
So, you are positive it is a standard RA and not RA+, correct?
Double check the cable connection.
If you still can't get it to work, PM for RMA#.

Re: Help!!! No internal memory found and uploading error

Posted: Wed Sep 05, 2012 9:33 pm
by AquaO
what is the difference for the cable connection between the RA and RA+ ?
I'll check (but I'm sure it is a standard RA)

Re: Help!!! No internal memory found and uploading error

Posted: Wed Sep 05, 2012 9:37 pm
by rimai
There is no difference in connection, but you have to change the board on Arduino.
On menu Tools->board.

Help!!! No internal memory found and uploading error

Posted: Wed Sep 05, 2012 10:23 pm
by AquaO
I tried different connection, RA +, RA and RA with optiboot and nothing works. I really have no idea why nothing works. I'll keep trying, do you think a bad instalation jumper may have caused this problem?

Here is a picture how I had installed the jumper and the unit message
ImageUploadedByTapatalk1346908976.192548.jpg
ImageUploadedByTapatalk1346908976.192548.jpg (172.58 KiB) Viewed 8147 times
ImageUploadedByTapatalk1346908992.118953.jpg
ImageUploadedByTapatalk1346908992.118953.jpg (91.09 KiB) Viewed 8147 times

Re: Help!!! No internal memory found and uploading error

Posted: Thu Sep 06, 2012 7:27 am
by rimai
Yes, it is wrong.
You need to have the jumper placed on the left most pins, connecting the two pins.

Re: Help!!! No internal memory found and uploading error

Posted: Thu Sep 06, 2012 8:27 am
by AquaO
Ok, this is how I set the jumper when the error began.

Thereafter I handed the jumper to the normal position and I make all test, did not work.

Having put a jumper in the wrong position, can i have damage the RA ?

Re: Help!!! No internal memory found and uploading error

Posted: Thu Sep 06, 2012 8:31 am
by rimai
No, it won't damage.
The normal position is on the far left most pins.

Re: Help!!! No internal memory found and uploading error

Posted: Thu Sep 06, 2012 11:59 am
by AquaO
Oh man...
I feel really stupid :oops:
I believed that the jumper normal position is on the far right most pins. I gave it a good position and everything works fine. :D

Sorry for this stupid mistake.

Thank you very much for your support Roberto, there is no controller that is after sales service as effective as ReefAngel.

Thank you so much this is very appreciated.

Re: Help!!! No internal memory found and uploading error

Posted: Thu Sep 06, 2012 12:47 pm
by rimai
Cool :)
Glad you got it working

Re: Help!!! No internal memory found and uploading error

Posted: Sun May 17, 2015 10:59 am
by Junseld
I am having the same issue and I also notice that the "base system device" driver did not install correctly.

Re: Help!!! No internal memory found and uploading error

Posted: Sun May 17, 2015 11:49 am
by Junseld
This is the code I am trying to upload:

#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 <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.h>

////// Place global variable code below here


////// Place global variable code above here


void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu

ReefAngel.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port2Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port5Bit | Port6Bit | Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;


// Ports that are always on
ReefAngel.Relay.On( Port3 );
ReefAngel.Relay.On( Port4 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
ReefAngel.DayLights( Port1 );
ReefAngel.StandardHeater( Port2 );
ReefAngel.Wavemaker1( Port5 );
ReefAngel.Wavemaker1( Port6 );
ReefAngel.StandardFan( Port7 );
ReefAngel.MoonLights( Port8 );
////// Place your custom code below here


////// Place your custom code above here

// This should always be the last line
ReefAngel.ShowInterface();
}

Re: Help!!! No internal memory found and uploading error

Posted: Sun May 17, 2015 12:23 pm
by Junseld
This is the error I get with trying to upload the initial internal memory:

avrdude: Version 6.0, compiled on Apr 6 2012 at 19:29:19
Copyright (c) 2000-2005 Brian Dean,bdmicro/
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.