diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index 4c2c597504..e2eed56940 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -690,7 +690,7 @@ struct EtbThread final : public PeriodicController<512> { } }; -static EtbThread etbThread; +static EtbThread etbThread CCM_OPTIONAL; #endif diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index 99aa566e39..cc7d5d2b84 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -705,7 +705,7 @@ void initEngineContoller(DECLARE_ENGINE_PARAMETER_SUFFIX) { #define RAM_UNUSED_SIZE 4000 #endif #ifndef CCM_UNUSED_SIZE -#define CCM_UNUSED_SIZE 2000 +#define CCM_UNUSED_SIZE 300 #endif static char UNUSED_RAM_SIZE[RAM_UNUSED_SIZE]; static char UNUSED_CCM_SIZE[CCM_UNUSED_SIZE] CCM_OPTIONAL; diff --git a/firmware/hw_layer/drivers/can/can_hw.cpp b/firmware/hw_layer/drivers/can/can_hw.cpp index c45d3a9d15..79247b14ad 100644 --- a/firmware/hw_layer/drivers/can/can_hw.cpp +++ b/firmware/hw_layer/drivers/can/can_hw.cpp @@ -162,8 +162,8 @@ private: CANRxFrame m_buffer; }; -static CanRead canRead; -static CanWrite canWrite; +static CanRead canRead CCM_OPTIONAL; +static CanWrite canWrite CCM_OPTIONAL; static void canInfo(void) { if (!isCanEnabled) {