Page 1 of 1

firmware for bltouch wont load

Posted: Mon Nov 16, 2020 8:24 am
by klanstar
hi i have been trying to load the bltouch firmware for Marlin-PI3_Pro_B_3DTouch (A+) and get the following error

please help as i have been going around in circles for weeks trying to get bltouch to work. :oops:

Arduino: 1.8.13 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

java.io.IOException: The sketch already contains a file named "Marlin.ino"

at processing.app.Sketch.checkNewFilename(Sketch.java:273)

at processing.app.SketchFile.renameTo(SketchFile.java:179)

at processing.app.SketchController.save(SketchController.java:347)

at processing.app.Editor.handleSave2(Editor.java:1908)

at processing.app.Editor.handleSave(Editor.java:1883)

at processing.app.Editor.handleRun(Editor.java:1592)

at processing.app.Editor.handleRun(Editor.java:1587)

at processing.app.EditorToolbar.handleSelectionPressed(EditorToolbar.java:465)

at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:448)

at java.awt.Component.processMouseEvent(Component.java:6536)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

at java.awt.Component.processEvent(Component.java:6304)

at java.awt.Container.processEvent(Container.java:2239)

at java.awt.Component.dispatchEventImpl(Component.java:4889)

at java.awt.Container.dispatchEventImpl(Container.java:2297)

at java.awt.Component.dispatchEvent(Component.java:4711)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)

at java.awt.Container.dispatchEventImpl(Container.java:2283)

at java.awt.Window.dispatchEventImpl(Window.java:2746)

at java.awt.Component.dispatchEvent(Component.java:4711)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)

at java.awt.EventQueue$4.run(EventQueue.java:733)

at java.awt.EventQueue$4.run(EventQueue.java:731)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

The sketch already contains a file named "Marlin.ino"





















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:

d:\program files (x86)\arduino\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\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:

d:\program files (x86)\arduino\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\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:

d:\program files (x86)\arduino\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:

d:\program files (x86)\arduino\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\stepper.cpp:30:

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\stepper.cpp:24:

d:\program files (x86)\arduino\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\ultralcd.cpp:6:

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\temperature.h:24,

from sketch\ultralcd.cpp:1:

d:\program files (x86)\arduino\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'



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.