Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marlin will not compile error: 'MYSERIAL' was not declared in this scope #15

Open
kknox9713 opened this issue Sep 29, 2020 · 0 comments

Comments

@kknox9713
Copy link

I'm trying to compile Marlin 2.0 for my skr mini 3 and I keep getting the following.
In file included from Marlin\src\HAL\shared\backtrace\backtrace.cpp:28:0:
Marlin\src\HAL\shared\backtrace\backtrace.cpp: In function 'bool UnwReportOut(void*, const UnwReport*)':
Marlin\src\HAL\shared\backtrace../../../core/serial.h:68:40: error: 'MYSERIAL' was not declared in this scope
#define SERIAL_OUT(WHAT, V...) (void)MYSERIAL.WHAT(V)
^
Marlin\src\HAL\shared\backtrace../../../core/serial.h:94:27: note: in expansion of macro 'SERIAL_OUT'
#define _CHAR_1(c) SERIAL_OUT(write, c)
^~~~~~~~~~
Marlin\src\HAL\shared\backtrace../../../core/serial.h:92:27: note: in expansion of macro '_CHAR_1'
#define __CHAR_N(N,V...) CHAR##N(V)
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\shared\backtrace\unwmemaccess.cpp.o
^~~~~~
Marlin\src\HAL\shared\backtrace../../../core/serial.h:93:27: note: in expansion of macro '__CHAR_N'
#define _CHAR_N(N,V...) __CHAR_N(N,V)
^~~~~~~~
Marlin\src\HAL\shared\backtrace../../../core/serial.h:105:27: note: in expansion of macro '_CHAR_N'
#define SERIAL_CHAR(V...) _CHAR_N(NUM_ARGS(V),V)
^~~~~~~
Marlin\src\HAL\shared\backtrace\backtrace.cpp:37:3: note: in expansion of macro 'SERIAL_CHAR'
SERIAL_CHAR('#'); SERIAL_PRINT(*p, DEC); SERIAL_ECHOPGM(" : ");
^~~~~~~~~~~
Marlin\src\HAL\shared\backtrace../../../core/serial.h:68:40: note: suggested alternative: 'MSERIAL'
#define SERIAL_OUT(WHAT, V...) (void)MYSERIAL.WHAT(V)
^
Marlin\src\HAL\shared\backtrace../../../core/serial.h:94:27: note: in expansion of macro 'SERIAL_OUT'
#define _CHAR_1(c) SERIAL_OUT(write, c)
^~~~~~~~~~
Marlin\src\HAL\shared\backtrace../../../core/serial.h:92:27: note: in expansion of macro '_CHAR_1'
#define __CHAR_N(N,V...) CHAR##N(V)
^~~~~~
Marlin\src\HAL\shared\backtrace../../../core/serial.h:93:27: note: in expansion of macro '__CHAR_N'
#define _CHAR_N(N,V...) __CHAR_N(N,V)
^~~~~~~~
Marlin\src\HAL\shared\backtrace../../../core/serial.h:105:27: note: in expansion of macro '_CHAR_N'
#define SERIAL_CHAR(V...) _CHAR_N(NUM_ARGS(V),V)
^~~~~~~
Marlin\src\HAL\shared\backtrace\backtrace.cpp:37:3: note: in expansion of macro 'SERIAL_CHAR'
SERIAL_CHAR('#'); SERIAL_PRINT(*p, DEC); SERIAL_ECHOPGM(" : ");
^~~~~~~~~~~
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\shared\backtrace\backtrace.cpp.o] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant