Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [stm32l]

The tag has no usage guidance.

2
votes
1answer
1k views

LSE 32.768 kHz oscillator on STM32L433 won't start reliably.

I'm using a 32.768 kHz crystal FC - 12M on a board with STM32L433 in a LQFP48 package. There are two 10pF C0G load capacitors used. The problem is that on one of the boards (I have two of this ...
0
votes
1answer
125 views

STM32L073xx Internal Bootloader - Disabling Read Protection bricks device

I would like to continue what I started here about internal bootloader. Now I would like to add read protection to my uC. Connect uC via UART2 to PC Trigger jumping to internal bootloader by ...
1
vote
0answers
29 views

OpenOCD flash writing failure with STM32L071C8 MCU

I have designed custom-made PCB with STM32L071C8 MCU. I'm using OpenOCD 'master' branch and SWD interface via FT2232H to debug the MCU. I successfully did some RAM reading and Flash writing, erasing ...
1
vote
1answer
53 views

Using the GPIOs of an STM32 Discovery board

I would like to start learning how to program an STM32, because of this I bought the STM32L152C Discovery board. It's a very nice board, full of goodies, but I would like to use just part of them: ...
1
vote
2answers
157 views

STM32 USART synchronous mode receive does not work

I am using a STM32L052K6U6 to communicate with an SPI slave using the UART1 synchronous mode (configured with CubeMX, using the LL library). Setup code generated by CubeMX (I left out the Tx and Clk ...
-1
votes
1answer
80 views

Weird character from UART. STM32L100RC

I'm having problems communicating with UART on my STM32L100RC discovery board. I get character such as xþ when I'm sending the letter 'F'. I'm using Hercule to receive data. Hercule's configuration is ...
1
vote
1answer
68 views

Finding ADC pins from Init code

I am trying to figure out the GPIO Pins that are used for ADC input looking at the following ADC Initialization code for STM32L476RG. ...
0
votes
0answers
77 views

Multiple read ADC STM32

I'm trying to read multiple ADC value one after the other using the continuous scan method. I have fallowed quite a few tutorial and example, but nothing seems to work for me. I am using the ...
0
votes
0answers
42 views

How to reach ultra low power on STM32Lxx?

I'm having some problem reaching the said ultra-low power available for the STM32Lxx series. With no active register, the UC should consume around 10 uA, but I can't get it down from 1 mA. The ...
4
votes
3answers
390 views

How to debug current consumption with STM32 Nucleo board?

I'm trying to configure an STM32L011-Nucleo developement board to consume about 600 uA of current or so. It uses an STM32L011K4. The datasheet states that this should be possible if I drive the MCU ...
1
vote
1answer
113 views

STM32L073xx Internal Bootloader - Get Flash Size issue

I tried recently to develop custom app flasher (based on stm32loader python module) for STM32L073xx microcontrollers but I stuck at one point. This lib tries to obtain flash size from micro because ...
1
vote
2answers
64 views

The STM32L431 EXTCLK MCU pin 14 and 15 need to be conected or not

Is there a way to make the internal MSI (RC) clock recalibrate itself (automatically in hardware) onto the LSE 32.786kHz clock input, effectively reaching the same precision as a sealed-external ...
1
vote
1answer
41 views

ADC on STM32L100C

I've been reading a lot online to figure what is not working in my code, but it seems like the ADC conversion in my code never starts and I'm getting really desperate... No matter what I do, the EOC ...
0
votes
0answers
54 views

Initializing ADC causes LCD to not display anything

I have been having some trouble getting my ADC to work so I have decided to give it a try by manipulating the registers. I have a textbook which outlines the steps and I think I have it finished, but ...
0
votes
2answers
228 views

STM32L4's Temperature Calculation Equation shows improper results

While using STM32L4's ADC to measure its internal temperature sensor data, I am facing an issue. The equation provided in STM32L4's reference manual, seems to showing improper results. The equation ...
0
votes
1answer
149 views

COMP2 to trigger One-Pulse mode on STM32L1

I am trying to use the output of COMP2 to trigger the One-Pulse mode of a timer (in my example TIM4, but it's quite flexible if it needs to change to another timer) on the STM32L1 series. In the ...
0
votes
1answer
746 views

STM32 External Interrupt via GPIO cannot be triggered after waking up from STOP mode

I have a problem with a project based on an STM32L051. I want to use the stop mode and wake up on an external (GPIO based) IRQ. This all works great but after the MCU woke up once, no IRQs seem to ...
0
votes
0answers
428 views

Using stop mode in freeRTOS on a STM32L0 and waking up using EXTI interrupt

I want to make a low power device, running freeRTOS. There are 3 threads, which I planned to suspend normally into stop mode and resume execution depending on an EXTI interrupts. I intended doing so ...
0
votes
1answer
209 views

Range of the write protection registers on STM32 (WRP1AR etc)

I want to enable write protection on the flash pages occupied by the bootloader on an STM32L4 chip. I understand I must set the WRP1AR register to 0xFFXXFFYY where XX is the end page and YY is the ...
7
votes
2answers
1k views

STM32L MCU - SWD pin on board not matching processor pinout

I was doing my hardware hack project on an air quality monitoring device which uses STM32L476 processor. My only experiences with hardware hacking are IPcams or ...
1
vote
1answer
697 views

STM32L1xx HAL_GPIO_Init Problem

I am developing an application for a University project on my STM32L1DISCO board with the STM32L152RC MCU. I have configured the pins and generated the init code via STM32CubeMX. I am using Atollic ...
3
votes
1answer
161 views

Can't run code in Keil for STM32L433RCT6P on NUCLEO-L433RC-P

Recently at Embedded World 2018 in Nuremberg I got, for free, NUCLEO-L433RC-P with STM32L433RCT6P chip onboard. I want to broaden my knowledge in STM32 chips. Before, I did simple stuf on STM32F4. ...
0
votes
1answer
336 views

Placing a key variable in internal flash Memory

I am trying to place a variable named secret_key at location 0x08002000 in STM32Nucleo-board which has STM32L476RG on board with 1MB flash. Question 1: Why am i ...
2
votes
2answers
308 views

Rowley Crossworks STM32 Start from Reset

I am using an STM32F4 with the Rowley CrossStudio for ARM. It is not clear to me how to have the MCU start from int main() on reset (i.e. power up the device). I thought building it in release mode ...
1
vote
1answer
791 views

STM32L031 Nucleo USART Problem

I have a problem with STM32L031 Nucleo board USART communication. I am trying to send data to PC on USART periodically and catch the spesific character ('a') with Rx interrupt and toggle the onboard ...
1
vote
1answer
655 views

STML151RB I2C start condition sent but SB not set

I have a custom board with an STM32L151RB. I want to use I2C in master mode with standard peripheral library. I've started by copying chunks of code from demo project. The problem is that the start ...
1
vote
2answers
157 views

STM32L100RC and STM32L152RC disco boards fail on LL_FLASH_GetLatency() != LL_FLASH_LATENCY_1

I have stm32l100 and stm32l152 disco boards and am using stm32cubemx and sw4stm32 IDE. After creating default project for them in cubemx - I mean I go through board chooser and then leave everything ...
0
votes
0answers
499 views

ADC on STM32 Nucleo 64

I am trying to simply read the value of the PCO ADC on a Nucleo-L476RG Board. I connected a power supply to the PC0 Pin with 2 V and the grounds of the board and the powersupply. When I read the value ...
1
vote
2answers
216 views

ADS1234 and STM32L

I am attempting to use the SPI2 peripheral on the STM32L471RG microcontroller in order to communicate with the ADS1234 and wanted to run my thoughts past some of you more experienced firmware ...
1
vote
1answer
3k views

Interfacing HC-SR04 Ultrasonic sensor with STM32L

I'm trying to control this HC-SR4 Ultrasonic sensor by simply ON an LED when an object closer than 100cm is detected. I'm using TIM2 for the trigger signal (Pin PB10), and TIM4 to receive Echo signal (...
1
vote
0answers
136 views

Debugger hangs when reaching to Float or Delay

When I run this code, the debugger hangs once it reaches to a Float (in this case the variable 'Distance') or Delay, I mean it seems like it's processing, however it never goes through, and I have to ...
4
votes
2answers
373 views

Jitter of UART TX pin

I'm developing a small robot using the STM32L152C Discovery board. I'm currently trying to configure the board using the STM32CubeMX. I've never worked at this very-low level (my experience is much ...
1
vote
2answers
5k views

Is there any tool to read/write EEPROM of STM32L from the host?

I'm using STM32L152RTC6 (link to similar MCU line) with a built-in EEPROM (8k). I wonder if there's any tool that allows me to read/write the EEPROM from the host side, other than programming the MCU ...
1
vote
2answers
2k views

STM32L1 SPI to nRF24L01 Not Working

I am currently trying to get spi communication up and running between a stm32l-discovery board (uses STM32L152RCT6 mcu) and a nRF24L01 module. I have the module connected to the discovery board via ...
0
votes
2answers
2k views

STM32L-Discovery programming on Linux with Eclipse

my problem is following. How to configure Eclipse + ARM in order to code for this microcontroller? I installed Eclipse and ARM plugin for it but I can't understand what to do after that :(