File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ composta.build.fpu=-mfpu=fpv5-sp-d16
108
108
composta.build.float-abi=-mfloat-abi=hard
109
109
110
110
composta.build.board=SANTIAGO_COMPOSTA
111
- composta.build.defines=-DF_CPU=48000000 -DNO_USB
111
+ composta.build.defines=-DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT
112
112
composta.vid.0=0x2341
113
113
composta.pid.0=0x0069
114
114
composta.vid.1=0x2341
Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ void arduino_main(void)
95
95
__DSB ();
96
96
__enable_irq ();
97
97
98
+ #ifdef BACKTRACE_SUPPORT
98
99
cm_backtrace_init (PROJECT_NAME, " RENESAS" , " 0" );
100
+ #endif
99
101
100
102
_init ();
101
103
initVariant ();
@@ -112,10 +114,12 @@ void arduino_main(void)
112
114
}
113
115
}
114
116
117
+ #ifdef BACKTRACE_SUPPORT
115
118
/* for printf compatibility */
116
119
extern " C" __attribute__((weak)) int _write (int fhdl, const void *buf, size_t count) {
117
120
Serial.write_raw ((uint8_t *)buf, count);
118
121
}
122
+ #endif
119
123
120
124
#ifdef AZURE_RTOS_THREADX
121
125
extern " C" {
You can’t perform that action at this time.
0 commit comments