From d228bc7ff9f56ea4e280f1d6900d1a49ebe28fea Mon Sep 17 00:00:00 2001 From: klassents Date: Thu, 26 Sep 2024 11:24:08 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B0=20=D1=81=D0=B0=D0=BC=D0=BE=D0=BC?= =?UTF-8?q?=20=D0=B4=D0=B5=D0=BB=D0=B5=20=D0=BA=D0=BE=D0=B4=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82,=20=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=BE=20=D0=B1=D1=8B=D0=BB=D0=BE=20=D0=B2=20=D0=B1=D1=83=D1=82?= =?UTF-8?q?=D0=BB=D0=BE=D0=B0=D0=B4=D0=B5=D1=80=D0=B5.=20=D0=B2=D1=81?= =?UTF-8?q?=D0=B5=20=D1=81=D0=B2=D1=8F=D0=B7=D0=B0=D0=BD=D0=BD=D0=BE=D0=B5?= =?UTF-8?q?=20=D1=81=20=D0=BF=D1=80=D0=B5=D1=80=D1=8B=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=D0=BC=D0=B8=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C?= =?UTF-8?q?=20=D0=B2=20=D1=80=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/arduino/board.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cores/arduino/board.cpp b/cores/arduino/board.cpp index a8b8703..4b06378 100644 --- a/cores/arduino/board.cpp +++ b/cores/arduino/board.cpp @@ -8,7 +8,7 @@ void pre_init(void) { // set irq vector to ram region - write_csr(mtvec, 0x020000c0); + write_csr(mtvec, 0x02000000); HAL_Init(); @@ -35,8 +35,10 @@ void post_init(void) // print text if Serial is enabled extern "C" void ErrorMsgHandler(const char * msg) { +#ifdef HardwareSerial_h if(Serial) Serial.println(msg); +#endif }