Reflashing firmware

Neil
Posts: 18
Joined: Sun Jan 07, 2018 4:27 am

Re: Reflashing firmware

Post by Neil » Sun Sep 15, 2019 11:05 pm

OK here goes, I now have a working Arduino program that will load the Geeetech firmware, when I go to compile to software before loading it comes back with error code that so far I have never seen in the software and I now need to know how to repair the code to get it loaded on to the board.


the faulty code highlighted is as - bool readCID(cid_t* cid) {
I have never see this error code before and do not know how to fix it to continue with compiling

Neil
Posts: 18
Joined: Sun Jan 07, 2018 4:27 am

Re: Reflashing firmware

Post by Neil » Sun Sep 15, 2019 11:07 pm

aloe the message for the error reads Cid_t has not been declared

any thoughts?

User avatar
William
Site Admin
Posts: 6340
Joined: Tue Jun 07, 2016 9:38 am

Re: Reflashing firmware

Post by William » Mon Sep 16, 2019 9:16 am

Hi, you can refer to this: http://www.geeetech.com/forum/viewtopic ... 20&t=17046
use Arduino 1.0.1
and refer to this:http://www.geeetech.com/forum/viewtopic ... 20&t=17181

about this error, can you provide more information or
specific related videos?
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

Neil
Posts: 18
Joined: Sun Jan 07, 2018 4:27 am

Re: Reflashing firmware

Post by Neil » Tue Sep 17, 2019 5:25 pm

OK I really don't know what more I can tell you about this problem because we are going in circles and not finding an explanation, so here goes with a step by step of what I am doing.


I load Arduino 1.0.1 and select tools

I check the board is the correct one and make sure the serial pot is connected


I open the INO file that I downloaded form the links you provided me with

I hit compile and load and come up with the same error which reads - "cid_t* has not been declared"
the full error list is -

Code: Select all

In file included from /SdVolume.h:29,
                 from /SdBaseFile.h:31,
                 from /SdFile.h:27,
                 from Marlin__I3_pro_B.cpp:64:
/Sd2Card.h:32:20: error: SdInfo.h: No such file or directory
In file included from Marlin__I3_pro_B.cpp:33:
/Configuration.h:497: error: expected unqualified-id before numeric constant
In file included from /SdVolume.h:29,
                 from /SdBaseFile.h:31,
                 from /SdFile.h:27,
                 from Marlin__I3_pro_B.cpp:64:
Sd2Card.h:191: error: 'cid_t' has not been declared
Sd2Card.h:202: error: 'csd_t' has not been declared
In file included from /SdFile.h:27,
                 from Marlin__I3_pro_B.cpp:64:
SdBaseFile.h:198: error: 'fpos_t' has not been declared
SdBaseFile.h:202: error: 'fpos_t' has not been declared

now the problem pice of code seems to be -

bool readCID(cid_t* cid) {
    //return readRegister(CMD10, cid);
  }
I have used this file in the past and had little to no problems with it before so why is this issued coming up now?

looking at the error of - /Sd2Card.h:32:20: error: SdInfo.h: No such file or directory
In file included from Marlin__I3_pro_B.cpp:33: - leads me to think that marlin is missing a page of code, however looking through marlin there is no file on there to add in to the program.

I do not have enough experience with coding to change this to a working value and google searches no not provide and answer, and even the Arduino forum is no help as no one has cared to answer my post.


Does anyone understand coding enough to help me solve this problem?

Neil
Posts: 18
Joined: Sun Jan 07, 2018 4:27 am

Re: Reflashing firmware

Post by Neil » Tue Sep 17, 2019 5:35 pm

I've actually solved to problem I initially had by finding another version of marlin and putting the page of code back in,
next set of issued to d4eal with now
ill keep you posed

Neil
Posts: 18
Joined: Sun Jan 07, 2018 4:27 am

Re: Reflashing firmware

Post by Neil » Wed Sep 18, 2019 8:11 pm

Ok so today's issue -

The new error codes are

Code: Select all

core.a(main.cpp.o): In function `main':
C:\Users\HOUSE of ATKINSON\Desktop\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/main.cpp:5: undefined reference to `setup'
C:\Users\HOUSE of ATKINSON\Desktop\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/main.cpp:15: undefined reference to `loop'
now I am using Arduino 1.0.1 and I have found the file that needs correcting but I do not understand coding well enough to do so.

the code is - 

Code: Select all

#include <Arduino.h>

int main(void)
{
   init();

#if defined(USBCON)
   USBDevice.attach();
#endif
   
   setup();
    
   for (; {
      loop();
      if (serialEventRun) serialEventRun();
   }
        
   return 0;
}

Dose anyone know how to correct this? I am toatlly stuck and need some guidance 

many thanks

Neil
Posts: 18
Joined: Sun Jan 07, 2018 4:27 am

Re: Reflashing firmware

Post by Neil » Thu Sep 19, 2019 3:05 am

Well today's issue and new error codes
On compiling i get this -

Code: Select all

core.a(main.cpp.o): In function `main':
C:\Users\HOUSE of ATKINSON\Desktop\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/main.cpp:5: undefined reference to `setup'
C:\Users\HOUSE of ATKINSON\Desktop\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/main.cpp:15: undefined reference to `loop'
now I am using Arduino 1.0.1 and I have found the file that needs correcting but I do not understand coding well enough to do so.

the code is - 

Code: Select all

#include <Arduino.h>

int main(void)
{
   init();

#if defined(USBCON)
   USBDevice.attach();
#endif
   
   setup();
    
   for (; {
      loop();
      if (serialEventRun) serialEventRun();
   }
        
   return 0;
}

Dose anyone know how to correct this? I am toatlly stuck and need som guidance 

many thanks

User avatar
William
Site Admin
Posts: 6340
Joined: Tue Jun 07, 2016 9:38 am

Re: Reflashing firmware

Post by William » Thu Sep 19, 2019 11:45 am

Hi,I find this: https://forum.arduino.cc/index.php?topic=500356.0
I hope this can help you.
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

Post Reply