Problema nel caricare firmware Marlin su 2560 Rev. A+

Salve,
premetto che sono un novellino in materia, ho montato una stampate 3d Prusa I3W con scheda madre 2560 Rev A+, funziona tutto alla perfezione, ho comprato un 3d Touch per la suddetta stampante e devo necessariamente fare delle modifiche e caricare il nuovo firmware, tutto ok con la compilazione ma appena faccio lo sketch IDE mi da errori in arancione e non aggiorna il firmware, allego il file log se puó essere utile ai fini di aiutarmi nella soluzione del problema, ringrazio anticipatamente chiunque possa aiutarmi.

Il log di errore:Arduino:1.8.14 Hourly Build 2021/04/30 05:33 (Windows 10), Scheda:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\SdFile.h:27:0,

             from sketch\cardreader.h:8,

             from sketch\Marlin_main.cpp:44:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

struct fpos_t {

    ^~~~~~

In file included from sketch\Marlin.h:10:0,

             from sketch\Marlin_main.cpp:30:

c:\users\fa18h\onedrive\dokumente\progetti_3d\software\arduino-nightly-windows\arduino-nightly\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

extension typedef long long fpos_t;

                             ^~~~~~

In file included from sketch\SdBaseFile.cpp:24:0:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

struct fpos_t {

    ^~~~~~

In file included from sketch\Marlin.h:10:0,

             from sketch\SdBaseFile.cpp:21:

c:\users\fa18h\onedrive\dokumente\progetti_3d\software\arduino-nightly-windows\arduino-nightly\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

extension typedef long long fpos_t;

                             ^~~~~~

sketch\SdBaseFile.cpp: In member function 'void SdBaseFile::getpos(fpos_t*)':

SdBaseFile.cpp:298:8: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'

pos->position = curPosition_;

    ^~~~~~~~

SdBaseFile.cpp:299:8: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'

pos->cluster = curCluster_;

    ^~~~~~~

sketch\SdBaseFile.cpp: In member function 'void SdBaseFile::setpos(fpos_t*)':

SdBaseFile.cpp:1496:23: error: request for member 'position' in '* pos', which is of non-class type 'fpos_t {aka long long int}'

curPosition_ = pos->position;

                   ^~~~~~~~

SdBaseFile.cpp:1497:22: error: request for member 'cluster' in '* pos', which is of non-class type 'fpos_t {aka long long int}'

curCluster_ = pos->cluster;

                  ^~~~~~~

In file included from sketch\SdFile.h:27:0,

             from sketch\SdFile.cpp:23:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

struct fpos_t {

    ^~~~~~

In file included from sketch\Marlin.h:10:0,

             from sketch\SdFile.cpp:20:

c:\users\fa18h\onedrive\dokumente\progetti_3d\software\arduino-nightly-windows\arduino-nightly\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

extension typedef long long fpos_t;

                             ^~~~~~

In file included from sketch\SdFile.h:27:0,

             from sketch\cardreader.h:8,

             from sketch\cardreader.cpp:2:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

struct fpos_t {

    ^~~~~~

In file included from sketch\Marlin.h:10:0,

             from sketch\cardreader.cpp:1:

c:\users\fa18h\onedrive\dokumente\progetti_3d\software\arduino-nightly-windows\arduino-nightly\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

extension typedef long long fpos_t;

                             ^~~~~~

exit status 1

using typedef-name 'fpos_t' after 'struct'

Questo report potrebbe essere più ricco di informazioni abilitando l'opzione
"Mostra un output dettagliato durante la compilazione"
in "File -> Impostazioni"

Buongiorno e benvenuto, :slight_smile:
essendo il tuo primo post, nel rispetto del regolamento della sezione Italiana del forum (… punto 13, primo capoverso), ti chiedo cortesemente di presentarti IN QUESTO THREAD (spiegando bene quali conoscenze hai di elettronica e di programmazione ... possibilmente evitando di scrivere solo una riga di saluto) e di leggere con molta attenzione tutto il succitato REGOLAMENTO ... Grazie. :slight_smile:

Guglielmo

P.S.: Ti ricordo che, purtroppo, fino a quando non sarà fatta la presentazione nell’apposito thread, nel rispetto del suddetto regolamento nessuno ti risponderà, quindi ti consiglio di farla al più presto. :wink:

Nessuno sa aiutarmi?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.