STM32L010FXX compiling Error

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
ASHISH
Posts: 1
Joined: Sun Feb 04, 2024 7:26 pm

STM32L010FXX compiling Error

Post 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 421 times
It would be appreciated if someone help me
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32L010FXX compiling Error

Post 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
Post Reply

Return to “General discussion”