diff --git a/platformio.ini b/platformio.ini index 7ef14d5..07dd907 100644 --- a/platformio.ini +++ b/platformio.ini @@ -42,7 +42,7 @@ framework = mbed upload_protocol = stlink #upload_protocol = jlink -debug_tool = jlink +#debug_tool = jlink # Custom upload tools (overwrites upload_protocol) #upload_command = st-flash write $SOURCE 0x8000000 diff --git a/src/ext/ext.cpp b/src/ext/ext.cpp index 4efdbce..3326682 100644 --- a/src/ext/ext.cpp +++ b/src/ext/ext.cpp @@ -8,6 +8,11 @@ #include +// necessary for PlatformIO debug session +void std::__throw_bad_alloc() { + while (1) {} +} + // we use code to self register objects at construction time. // It relies on the fact that initially this pointer will be initialized // with NULL ! This is only true for global variables or static members of classes