High flash memory usage on STM32F030F4P6 #2391
-
So, I decided to make a new project with STM32F030F4P6.
d:/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Tenko-JobOmega\AppData\Local\Temp\arduino\sketches\4AC2DD8C349502A56E9A2F21471716DB/Firmware_Gauge.ino.elf section It's totaly wrong. A year ago I wrote another project for this MCU without any serious issues. What causes this problem? Is it toolchain issue or core issue? How can i fight it? My current code: #define OUT_A 9 #define DBG_RX 3 #define SENSE 0 extern "C" void SystemClock_Config(void) RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK) HAL_RCC_EnableCSS(); void setup() { digitalWrite(OUT_A, LOW); void loop() { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Ok, so it compiles with core 2.6.0 |
Beta Was this translation helpful? Give feedback.
I think you enable the "Optimize for debug" then you embed a lot of string.