Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
2answers
70 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
0answers
24 views

How to return to STM32L4's RUN mode from STOP2 mode?

I am working on STM32L432KB's Power saving modes and currently testing STOP2 Mode. After reading reference manual I made the code below to Enter and Exit from STOP2 Mode. My Goal is to enter Stop2 ...
0
votes
1answer
43 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
0answers
75 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
115 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
812 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
275 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
102 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. ...
2
votes
2answers
192 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 ...
0
votes
1answer
170 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 ...
1
vote
1answer
435 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 ...
0
votes
1answer
476 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 ...
1
vote
1answer
330 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 ...
0
votes
0answers
62 views

stm32l152 as I2C slave not acknowledging address

Im using two stm32l152 discovery boars. One is configured as master and the other as slave. I have acknowladge enabled on both of them, but when the master sends the address the slave doesn't send the ...
1
vote
2answers
129 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 ...
1
vote
2answers
170 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 ...
0
votes
0answers
360 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
1answer
1k 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
119 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
276 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 ...
0
votes
0answers
50 views

Interrupts not working stm32l4 nucleo [duplicate]

I have my main application flashed in the start address memory(0x08000000) it download a new firmware(blinking led) ,flash it to (0x08080000) then jump to it after pressing a button. the jumping works ...
1
vote
1answer
656 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 ...
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 ...
1
vote
2answers
4k 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 ...
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 :(