Page 1 of 1

STM32L010FXX compiling Error

Posted: Sun Feb 04, 2024 7:40 pm
by ASHISH
Hi,

It would be appreciated if someone help me

I selected STM32L010F4PX MCU for low cost and battery powered in my projected.
I facing issue, code not getting compile, I fallow this--> https://github.com/stm32duino/Arduino_C ... me-ov-file

Code: Select all

#include "STM32LowPower.h"
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  // Configure low power
  LowPower.begin();
}
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  LowPower.deepSleep(1000);
  digitalWrite(LED_BUILTIN, LOW);
  LowPower.deepSleep(1000);
}
Error compiling for board Generic STM32L0 series.
Arduino_STM32L010F4P_issue.jpg
Arduino_STM32L010F4P_issue.jpg (92.47 KiB) Viewed 612 times
It would be appreciated if someone help me

Re: STM32L010FXX compiling Error

Posted: Mon Feb 05, 2024 10:19 am
by fpiSTM
Hi, the log is enough clear that the code can't fit to the Flash nor the RAM.
Unfortunately, depending of the mcu you used, the one with small flash and/or RAM require to do some customization.
Ex:
https://github.com/stm32duino/Arduino_C ... tes-of-ram