Skip to content

Commit f4e51c7

Browse files
committed
Enable stacktrace only for Santiago Leven
Former-commit-id: 5805c87
1 parent a9bf803 commit f4e51c7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

boards.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ composta.build.fpu=-mfpu=fpv5-sp-d16
108108
composta.build.float-abi=-mfloat-abi=hard
109109

110110
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
112112
composta.vid.0=0x2341
113113
composta.pid.0=0x0069
114114
composta.vid.1=0x2341

cores/arduino/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ void arduino_main(void)
9595
__DSB();
9696
__enable_irq();
9797

98+
#ifdef BACKTRACE_SUPPORT
9899
cm_backtrace_init(PROJECT_NAME, "RENESAS", "0");
100+
#endif
99101

100102
_init();
101103
initVariant();
@@ -112,10 +114,12 @@ void arduino_main(void)
112114
}
113115
}
114116

117+
#ifdef BACKTRACE_SUPPORT
115118
/* for printf compatibility */
116119
extern "C" __attribute__((weak)) int _write (int fhdl, const void *buf, size_t count) {
117120
Serial.write_raw((uint8_t*)buf, count);
118121
}
122+
#endif
119123

120124
#ifdef AZURE_RTOS_THREADX
121125
extern "C" {

0 commit comments

Comments
 (0)