Questions tagged [stm32l]
32 questions
7
votes
2 answers
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 wifi routers with UART consoles available. But, after some probing and trying, I was…

Jimmy.D
- 137
- 2
- 9
4
votes
3 answers
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 at 8 MHz and keep it in sleep mode for most of the…

Roman Matveev
- 2,942
- 7
- 32
- 75
4
votes
2 answers
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 more about algorithms), therefore I started doing…

Alexis
- 263
- 1
- 10
3
votes
1 answer
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.
All the jumpers on the board are placed…

Lazyboy
- 525
- 1
- 5
- 19
3
votes
1 answer
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 revision) the LSE oscillator won't start until I touch…

pkuhar
- 473
- 4
- 12
2
votes
0 answers
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 on the MCU via the OpenOCD so the OpenOCD…

Mercury Avangburg
- 119
- 1
- 1
- 10
2
votes
1 answer
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 Flag always remain to 0 and I am currently out of…

Nathaniel Brochu
- 99
- 7
2
votes
1 answer
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 TrueSTUDIO as the IDE.
The problem is that the…

Rishabh Kumar
- 21
- 1
- 2
2
votes
3 answers
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 would have done this, but that seems not to be the…

Biff
- 181
- 5
1
vote
1 answer
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: for instance I don't want to use the LCD which uses…

RawCode
- 85
- 7
1
vote
1 answer
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.
// DMA for ADC1
RCC->AHB1ENR |= RCC_AHB1ENR_DMA1EN; // DMA1
// Wait a bit
nop(); nop(); nop(); nop();…

ajeebx
- 165
- 1
- 8
1
vote
2 answers
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 pin config as those pins do what they should):
…

Fr4nky
- 107
- 1
- 8
1
vote
2 answers
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 oscillator? the slow speed clock (LSE) cannot be fed…

Ashkan
- 39
- 4
1
vote
1 answer
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 start page.
My question is quite simple, but the…

Bitgamma
- 145
- 9
1
vote
1 answer
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 LED when microcontroller receives any of it.
Here…

Batu92k
- 65
- 10