Marlin 2.0 PlatformIO

Oprogramowanie sterownika drukarki i do łączenia komputera z drukarką
Awatar użytkownika
Tuchajbej
Posty: 425
Rejestracja: 03 wrz 2017, 23:50
Lokalizacja: Prawie W-wa
Drukarka: HEvo/MK3/P3S
x 47

Marlin 2.0 PlatformIO

Postautor: Tuchajbej » 06 sie 2018, 17:28

Cześć

Zabrałem się za marlina w wersji 2.0. O ile ogarnę edycję samych parametrów związanych z drukiem o tyle problemy z samym programem to może być za trudne.

Wg zaleceń ze stronki Marlina najlepiej zaimportować cały projekt do PlatformIO i tam działać. Zainstalowałem VS i doinstalowałem Platformio IDE.
Dodałem folder Marlina. Zedytowałem wpis dot środowiska w platformio.ini na env_default = DUE. W configuration.h dodałem płytkęBOARD_DUE3DOM_MINI. Następnie kliknałęm build. Oto co się ukazało:
> Executing task: C:\Users\mkose\.platformio\penv\Scripts\platformio.exe run <


Processing DUE (platform: atmelsam; board: due; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: Traceback (most recent call last):
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\__main__.py", line 120, in main
cli(None, None, None)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 680, in main
rv = self.invoke(ctx)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
return callback(*args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\decorators.py", line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 107, in cli
result = (envname, ep.process())
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 205, in process
result = self._run()
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 300, in _run
self.verbose)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 323, in _autoinstall_libdeps
ctx.invoke(cmd_lib_install, libraries=[lib], silent=not verbose)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
return callback(*args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\lib.py", line 103, in lib_install
library, silent=silent, interactive=interactive, force=force)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\managers\lib.py", line 354, in install
force=force)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 685, in install
with LockFile(self.package_dir):
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 102, in __enter__
self.acquire()
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 86, in acquire
return self._lock()
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 61, in _lock
self._fp = open(self._lock_path, "w")
IOError: [Errno 13] Permission denied: 'C:\\Marlin-bugfix-2.0.x\\.piolibdeps.lock'

============================================================

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
`pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section
http://docs.platformio.org/page/faq.html

* Report this problem to the developers
https://github.com/platformio/platformio-core/issues

============================================================

The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

> Executing task: C:\Users\mkose\.platformio\penv\Scripts\platformio.exe run <


Processing DUE (platform: atmelsam; board: due; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: Traceback (most recent call last):
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\__main__.py", line 120, in main
cli(None, None, None)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 680, in main
rv = self.invoke(ctx)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
return callback(*args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\decorators.py", line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 107, in cli
result = (envname, ep.process())
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 205, in process
result = self._run()
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 300, in _run
self.verbose)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 323, in _autoinstall_libdeps
ctx.invoke(cmd_lib_install, libraries=[lib], silent=not verbose)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
return callback(*args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\commands\lib.py", line 103, in lib_install
library, silent=silent, interactive=interactive, force=force)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\managers\lib.py", line 354, in install
force=force)
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 685, in install
with LockFile(self.package_dir):
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 102, in __enter__
self.acquire()
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 86, in acquire
return self._lock()
File "c:\users\mkose\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 61, in _lock
self._fp = open(self._lock_path, "w")
IOError: [Errno 13] Permission denied: 'C:\\Marlin-bugfix-2.0.x\\.piolibdeps.lock'

============================================================

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
`pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section
http://docs.platformio.org/page/faq.html

* Report this problem to the developers
https://github.com/platformio/platformio-core/issues

============================================================

The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.


Pomożecie? :)
HEVO Bumblebee :yahoo: MK3 :cool2: P3S na wylocie :wave:
Maciek ;)
Awatar użytkownika
dragonn
Zasłużony
Posty: 3593
Rejestracja: 12 gru 2016, 21:50
Lokalizacja: Opole
Drukarka: LUME
x 374

Re: Marlin 2.0 PlatformIO

Postautor: dragonn » 06 sie 2018, 17:29

Cokolwiek odpalieleś albo odpal to jako administrator albo zmień uprawnienia do folderu C:\\Marlin-bugfix-2.0.x\
Tuchajbej
LUME PRO - mody: E3D Lite6 w bowden + Titan, silniki 42BYGHM809
tig33r
Posty: 273
Rejestracja: 15 lip 2017, 16:07
Drukarka: Hypercube Evolution
x 35

Re: Marlin 2.0 PlatformIO

Postautor: tig33r » 06 sie 2018, 17:31

Korzystałem z VS i 2.0 do kompilowania na sbase i nie miałem żadnych problemów. Nie musisz zmieniać środowiska w platformio.ini, wystarczy w run tasks wybrać build dla due. Swoją drogą dlaczego dla due nie używać arduino ide skoro flashuje przy tym płytkę?
Tuchajbej
Awatar użytkownika
Tuchajbej
Posty: 425
Rejestracja: 03 wrz 2017, 23:50
Lokalizacja: Prawie W-wa
Drukarka: HEvo/MK3/P3S
x 47

Re: Marlin 2.0 PlatformIO

Postautor: Tuchajbej » 06 sie 2018, 17:33

Hahahah Dragon mój mistrzu :D Dokładnie o to chodziło. Nie pomyślałem o tym w ogóle że na koncie administratora muszę i tak uruchamiać jako admin :D
Proszę nie zamykać bo pewnie coś jeszcze wyniknie.
HEVO Bumblebee :yahoo: MK3 :cool2: P3S na wylocie :wave:
Maciek ;)
Awatar użytkownika
Tuchajbej
Posty: 425
Rejestracja: 03 wrz 2017, 23:50
Lokalizacja: Prawie W-wa
Drukarka: HEvo/MK3/P3S
x 47

Re: Marlin 2.0 PlatformIO

Postautor: Tuchajbej » 06 sie 2018, 17:49

tig33r pisze:Korzystałem z VS i 2.0 do kompilowania na sbase i nie miałem żadnych problemów. Nie musisz zmieniać środowiska w platformio.ini, wystarczy w run tasks wybrać build dla due. Swoją drogą dlaczego dla due nie używać arduino ide skoro flashuje przy tym płytkę?

Gdy uruchomiłem w arduino ide to wysypało mi błędami :( zajrzałem co piszą na marlinfw i tak spróbowałem platformio. Pewnie ze wolałbym arduino ide.
Arduino ide sypie mi tym :
Arduino:1.8.5 (Windows 10), Płytka:"Arduino Due (Programming Port)"

Archiving built core (caching) in: C:\Users\mkose\AppData\Local\Temp\arduino_cache_544440\core\core_arduino_sam_arduino_due_x_dbg_d8c4a5f7e562ab394c4634f0d01e3e39.a
sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `HAL_clear_reset_source()':

C:\Users\mkose\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/CMSIS/Include/core_cmFunc.h:321: multiple definition of `cli()'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:C:\Users\mkose\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/CMSIS/Include/core_cmFunc.h:321: first defined here

sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `HAL_adc_get_result()':

C:\Users\mkose\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/CMSIS/Include/core_cmFunc.h:310: multiple definition of `sei()'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:C:\Users\mkose\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/CMSIS/Include/core_cmFunc.h:310: first defined here

sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `HAL_adc_start_conversion(unsigned char)':

sketch\src\HAL\HAL_DUE/HAL_Due.cpp:82: multiple definition of `HAL_clear_reset_source()'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:sketch\src\HAL\HAL_DUE/HAL.cpp:96: first defined here

sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `freeMemory()':

sketch\src\HAL\HAL_DUE/HAL_Due.cpp:85: multiple definition of `HAL_get_reset_source()'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:sketch\src\HAL\HAL_DUE/HAL.cpp:99: first defined here

sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `_delay_ms(int)':

sketch\src\HAL\HAL_DUE/HAL_Due.cpp:98: multiple definition of `_delay_ms(int)'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:sketch\src\HAL\HAL_DUE/HAL.cpp:111: first defined here

sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `freeMemory()':

sketch\src\HAL\HAL_DUE/HAL_Due.cpp:106: multiple definition of `freeMemory()'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:sketch\src\HAL\HAL_DUE/HAL.cpp:119: first defined here

sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `HAL_adc_start_conversion(unsigned char)':

sketch\src\HAL\HAL_DUE/HAL_Due.cpp:115: multiple definition of `HAL_adc_start_conversion(unsigned char)'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:sketch\src\HAL\HAL_DUE/HAL.cpp:128: first defined here

sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `HAL_adc_get_result()':

sketch\src\HAL\HAL_DUE/HAL_Due.cpp:122: multiple definition of `HAL_adc_get_result()'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:sketch\src\HAL\HAL_DUE/HAL.cpp:135: first defined here

sketch\src\HAL\HAL_DUE\HAL_Due.cpp.o: In function `HAL_clear_reset_source()':

C:\Users\mkose\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\system/CMSIS/CMSIS/Include/core_cmFunc.h:321: multiple definition of `HAL_adc_result'

sketch\src\HAL\HAL_DUE\HAL.cpp.o:sketch\src\HAL\HAL_DUE/HAL.cpp:81: first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Błąd kompilacji dla płytki Arduino Due (Programming Port).

Ten raport powinien zawierać więcej informacji jeśli w
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"
HEVO Bumblebee :yahoo: MK3 :cool2: P3S na wylocie :wave:
Maciek ;)
tig33r
Posty: 273
Rejestracja: 15 lip 2017, 16:07
Drukarka: Hypercube Evolution
x 35

Re: Marlin 2.0 PlatformIO

Postautor: tig33r » 06 sie 2018, 18:19

Awatar użytkownika
Tuchajbej
Posty: 425
Rejestracja: 03 wrz 2017, 23:50
Lokalizacja: Prawie W-wa
Drukarka: HEvo/MK3/P3S
x 47

Re: Marlin 2.0 PlatformIO

Postautor: Tuchajbej » 06 sie 2018, 18:35

W becie:
Arduino:1.9.0-beta (Windows 10), Płytka:"Arduino Due (Programming Port)"

Opcje projektu zmienione, przeładuj całość
In file included from sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/HAL.h:40:0,

from sketch\src\module\thermistor/../../inc/MarlinConfig.h:28,

from sketch\src\module\thermistor/thermistors.h:26,

from sketch\src\module\temperature.h:30,

from sketch\src\module\temperature.cpp:27:

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_WPORT" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:65:31: note: in definition of macro '_READ'

#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:117:24: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:127:27: note: in expansion of macro 'SET_OUTPUT'

#define OUT_WRITE(IO,V) { SET_OUTPUT(IO); WRITE(IO,V); }

^

sketch\src\module\temperature.cpp:1127:5: note: in expansion of macro 'OUT_WRITE'

OUT_WRITE(HEATER_0_PIN, HEATER_0_INVERTING);

^

sketch\src\module\temperature.cpp:1127:15: note: in expansion of macro 'HEATER_0_PIN'

OUT_WRITE(HEATER_0_PIN, HEATER_0_INVERTING);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_PIN" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:65:70: note: in definition of macro '_READ'

#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:117:24: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:127:27: note: in expansion of macro 'SET_OUTPUT'

#define OUT_WRITE(IO,V) { SET_OUTPUT(IO); WRITE(IO,V); }

^

sketch\src\module\temperature.cpp:1127:5: note: in expansion of macro 'OUT_WRITE'

OUT_WRITE(HEATER_0_PIN, HEATER_0_INVERTING);

^

sketch\src\module\temperature.cpp:1127:15: note: in expansion of macro 'HEATER_0_PIN'

OUT_WRITE(HEATER_0_PIN, HEATER_0_INVERTING);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_WPORT" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:77:33: note: in definition of macro '_WRITE'

volatile Pio* port = (DIO ## IO ## _WPORT); \

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:127:43: note: in expansion of macro 'WRITE'

#define OUT_WRITE(IO,V) { SET_OUTPUT(IO); WRITE(IO,V); }

^

sketch\src\module\temperature.cpp:1127:5: note: in expansion of macro 'OUT_WRITE'

OUT_WRITE(HEATER_0_PIN, HEATER_0_INVERTING);

^

sketch\src\module\temperature.cpp:1127:15: note: in expansion of macro 'HEATER_0_PIN'

OUT_WRITE(HEATER_0_PIN, HEATER_0_INVERTING);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_PIN" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:78:31: note: in definition of macro '_WRITE'

uint32_t mask = MASK(DIO ## IO ## _PIN); \

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:127:43: note: in expansion of macro 'WRITE'

#define OUT_WRITE(IO,V) { SET_OUTPUT(IO); WRITE(IO,V); }

^

sketch\src\module\temperature.cpp:1127:5: note: in expansion of macro 'OUT_WRITE'

OUT_WRITE(HEATER_0_PIN, HEATER_0_INVERTING);

^

sketch\src\module\temperature.cpp:1127:15: note: in expansion of macro 'HEATER_0_PIN'

OUT_WRITE(HEATER_0_PIN, HEATER_0_INVERTING);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:92:33: error: pasting "/* FAN1 header on board - PRINT FAN*/" and "_WPORT" does not give a valid preprocessing token

#define FAN_PIN 11 // FAN1 header on board - PRINT FAN

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:65:31: note: in definition of macro '_READ'

#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:117:24: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

sketch\src\module\temperature.cpp:1146:5: note: in expansion of macro 'SET_OUTPUT'

SET_OUTPUT(FAN_PIN);

^

sketch\src\module\temperature.cpp:1146:16: note: in expansion of macro 'FAN_PIN'

SET_OUTPUT(FAN_PIN);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:92:33: error: pasting "/* FAN1 header on board - PRINT FAN*/" and "_PIN" does not give a valid preprocessing token

#define FAN_PIN 11 // FAN1 header on board - PRINT FAN

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:65:70: note: in definition of macro '_READ'

#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:117:24: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

sketch\src\module\temperature.cpp:1146:5: note: in expansion of macro 'SET_OUTPUT'

SET_OUTPUT(FAN_PIN);

^

sketch\src\module\temperature.cpp:1146:16: note: in expansion of macro 'FAN_PIN'

SET_OUTPUT(FAN_PIN);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:94:33: error: pasting "/* FAN2 header on board - CONTROLLER FAN*/" and "_WPORT" does not give a valid preprocessing token

#define FAN1_PIN 12 // FAN2 header on board - CONTROLLER FAN

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:65:31: note: in definition of macro '_READ'

#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:117:24: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

sketch\src\module\temperature.cpp:1153:5: note: in expansion of macro 'SET_OUTPUT'

SET_OUTPUT(FAN1_PIN);

^

sketch\src\module\temperature.cpp:1153:16: note: in expansion of macro 'FAN1_PIN'

SET_OUTPUT(FAN1_PIN);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:94:33: error: pasting "/* FAN2 header on board - CONTROLLER FAN*/" and "_PIN" does not give a valid preprocessing token

#define FAN1_PIN 12 // FAN2 header on board - CONTROLLER FAN

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:65:70: note: in definition of macro '_READ'

#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:117:24: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

sketch\src\module\temperature.cpp:1153:5: note: in expansion of macro 'SET_OUTPUT'

SET_OUTPUT(FAN1_PIN);

^

sketch\src\module\temperature.cpp:1153:16: note: in expansion of macro 'FAN1_PIN'

SET_OUTPUT(FAN1_PIN);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:95:33: error: pasting "/* FAN3 header on board - EXTRUDER0 FAN*/" and "_WPORT" does not give a valid preprocessing token

#define FAN2_PIN 9 // FAN3 header on board - EXTRUDER0 FAN

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:65:31: note: in definition of macro '_READ'

#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:117:24: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

sketch\src\module\temperature.cpp:1160:5: note: in expansion of macro 'SET_OUTPUT'

SET_OUTPUT(FAN2_PIN);

^

sketch\src\module\temperature.cpp:1160:16: note: in expansion of macro 'FAN2_PIN'

SET_OUTPUT(FAN2_PIN);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:95:33: error: pasting "/* FAN3 header on board - EXTRUDER0 FAN*/" and "_PIN" does not give a valid preprocessing token

#define FAN2_PIN 9 // FAN3 header on board - EXTRUDER0 FAN

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:65:70: note: in definition of macro '_READ'

#define _READ(IO) bool(DIO ## IO ## _WPORT -> PIO_PDSR & MASK(DIO ## IO ## _PIN))

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:117:24: note: in expansion of macro '_SET_OUTPUT'

#define SET_OUTPUT(IO) _SET_OUTPUT(IO)

^

sketch\src\module\temperature.cpp:1160:5: note: in expansion of macro 'SET_OUTPUT'

SET_OUTPUT(FAN2_PIN);

^

sketch\src\module\temperature.cpp:1160:16: note: in expansion of macro 'FAN2_PIN'

SET_OUTPUT(FAN2_PIN);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_WPORT" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:77:33: note: in definition of macro '_WRITE'

volatile Pio* port = (DIO ## IO ## _WPORT); \

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:28: note: in expansion of macro 'WRITE'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:34: note: in expansion of macro 'HEATER_0_PIN'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:956:29: note: in expansion of macro 'WRITE_HEATER_0P'

#define WRITE_HEATER_0(v) WRITE_HEATER_0P(v)

^

sketch\src\module\temperature.cpp:1529:5: note: in expansion of macro 'WRITE_HEATER_0'

WRITE_HEATER_ ##NR (LOW); \

^

sketch\src\module\temperature.cpp:1533:5: note: in expansion of macro 'DISABLE_HEATER'

DISABLE_HEATER(0);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_PIN" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:78:31: note: in definition of macro '_WRITE'

uint32_t mask = MASK(DIO ## IO ## _PIN); \

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:28: note: in expansion of macro 'WRITE'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:34: note: in expansion of macro 'HEATER_0_PIN'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:956:29: note: in expansion of macro 'WRITE_HEATER_0P'

#define WRITE_HEATER_0(v) WRITE_HEATER_0P(v)

^

sketch\src\module\temperature.cpp:1529:5: note: in expansion of macro 'WRITE_HEATER_0'

WRITE_HEATER_ ##NR (LOW); \

^

sketch\src\module\temperature.cpp:1533:5: note: in expansion of macro 'DISABLE_HEATER'

DISABLE_HEATER(0);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_WPORT" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:77:33: note: in definition of macro '_WRITE'

volatile Pio* port = (DIO ## IO ## _WPORT); \

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:28: note: in expansion of macro 'WRITE'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:34: note: in expansion of macro 'HEATER_0_PIN'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:956:29: note: in expansion of macro 'WRITE_HEATER_0P'

#define WRITE_HEATER_0(v) WRITE_HEATER_0P(v)

^

sketch\src\module\temperature.cpp:1845:7: note: in expansion of macro 'WRITE_HEATER_0'

WRITE_HEATER_0(soft_pwm_count_0 > pwm_mask ? HIGH : LOW);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_PIN" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:78:31: note: in definition of macro '_WRITE'

uint32_t mask = MASK(DIO ## IO ## _PIN); \

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:28: note: in expansion of macro 'WRITE'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:34: note: in expansion of macro 'HEATER_0_PIN'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:956:29: note: in expansion of macro 'WRITE_HEATER_0P'

#define WRITE_HEATER_0(v) WRITE_HEATER_0P(v)

^

sketch\src\module\temperature.cpp:1845:7: note: in expansion of macro 'WRITE_HEATER_0'

WRITE_HEATER_0(soft_pwm_count_0 > pwm_mask ? HIGH : LOW);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_WPORT" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:77:33: note: in definition of macro '_WRITE'

volatile Pio* port = (DIO ## IO ## _WPORT); \

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:28: note: in expansion of macro 'WRITE'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:34: note: in expansion of macro 'HEATER_0_PIN'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:956:29: note: in expansion of macro 'WRITE_HEATER_0P'

#define WRITE_HEATER_0(v) WRITE_HEATER_0P(v)

^

sketch\src\module\temperature.cpp:1884:46: note: in expansion of macro 'WRITE_HEATER_0'

if (soft_pwm_count_0 <= pwm_count_tmp) WRITE_HEATER_0(LOW);

^

sketch\src\module\thermistor/../../inc/../pins/pins_DUE3DOM_MINI.h:88:33: error: pasting "/* HOTEND0 MOSFET*/" and "_PIN" does not give a valid preprocessing token

#define HEATER_0_PIN 13 // HOTEND0 MOSFET

^

sketch\src\module\thermistor/../../inc/../HAL/HAL_DUE/fastio_Due.h:78:31: note: in definition of macro '_WRITE'

uint32_t mask = MASK(DIO ## IO ## _PIN); \

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:28: note: in expansion of macro 'WRITE'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:940:34: note: in expansion of macro 'HEATER_0_PIN'

#define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING)

^

sketch\src\module\thermistor/../../inc/Conditionals_post.h:956:29: note: in expansion of macro 'WRITE_HEATER_0P'

#define WRITE_HEATER_0(v) WRITE_HEATER_0P(v)

^

sketch\src\module\temperature.cpp:1884:46: note: in expansion of macro 'WRITE_HEATER_0'

if (soft_pwm_count_0 <= pwm_count_tmp) WRITE_HEATER_0(LOW);

^

exit status 1
Błąd kompilacji dla płytki Arduino Due (Programming Port).

Ten raport powinien zawierać więcej informacji jeśli w
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"
HEVO Bumblebee :yahoo: MK3 :cool2: P3S na wylocie :wave:
Maciek ;)
tig33r
Posty: 273
Rejestracja: 15 lip 2017, 16:07
Drukarka: Hypercube Evolution
x 35

Re: Marlin 2.0 PlatformIO

Postautor: tig33r » 06 sie 2018, 20:06

A możesz podesłać cały folder, spróbuję skompilować u siebie.
Awatar użytkownika
Tuchajbej
Posty: 425
Rejestracja: 03 wrz 2017, 23:50
Lokalizacja: Prawie W-wa
Drukarka: HEvo/MK3/P3S
x 47

Re: Marlin 2.0 PlatformIO

Postautor: Tuchajbej » 06 sie 2018, 20:15

to czysty bugfix sciagniety wczoraj. jedyne co zmieniłem to nazwa plytki na due3dom mini.
HEVO Bumblebee :yahoo: MK3 :cool2: P3S na wylocie :wave:
Maciek ;)
Awatar użytkownika
zen
Posty: 146
Rejestracja: 26 lut 2017, 20:53
Lokalizacja: Poznań miasto doznań
Drukarka: Too many
x 8
Kontaktowanie:

Re: Marlin 2.0 PlatformIO

Postautor: zen » 10 sie 2018, 15:40

A czemu się męczyć z Arduino IDE, które nie powinno mieć w ogóle w nazwie "IDE" ? Jakiś konkretny powód?

Wróć do „Firmware'y i hosty”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 1 gość