Questions tagged [stm32ldiscovery]
77 questions
0
votes
2 answers
How to operate DAC at update speed of 1MSPS?
This is my code for DAC using DMA. I want to generate a triangular wave of frequency 8kHz with DAC operating at update rate of 1MSPS. I am using CUBEMX and system work bench.I am using timer trigger for DAC.
I am working on stm32L476 discovery…

user8398475
- 61
- 2
- 7
0
votes
2 answers
C code modification from stm32F to stm32L
I'm trying to learn and master embedded C, so I was just gonna test a code that I found on Github, which is built for STM32F4 discovery board. The board that I'm actually working on is STM32L152. when I tried to build/run the code (obviously it…

lightworks
- 21
- 1
- 9
0
votes
1 answer
How does delay work on the stm32l152RC?
I just bought an stm32l152RC and was wondering how the delay works.
The system clock is 16Mhz.
Code:
static volatile uint32_t TimingDelay;
void Delay(__IO uint32_t nCount);
int main(void) {
Config_Systick();
char *RCCp = (char*)…

Youssef Sakuragi
- 136
- 10
0
votes
1 answer
Migrating NUCLEO152RE to STM32L073
I have a code on NUCLEOL152RE i want to migrate this code to STM32L073RZ
What are the step i have to be done to migrate this code from NUCLEO152RE to STM32L073.
0
votes
1 answer
Reading file from flash for STM32L476G-DISCO
I am new to embedded systems and have been trying to port over a MP3 conversion program to an ARM-based STM32L476G-DISCO development board. I'm also using the free System Workbench software based on Eclipse. I've been successful to the point that I…

sam
- 61
- 2
- 14
0
votes
1 answer
How to find address of registers in STM32L4x6
I am using NUCLEO-L476RG board.
I am trying to toggle an LED present in the board. I have to set the register value to 0x01 to enable clock to Port A.
Please help me in finding address of the register "AHB2 peripheral clock enable register…

User323693
- 261
- 2
- 5
0
votes
2 answers
USART communication on STM32L476G Discovery
I have two boards: a NUCLEO-F411RE and a STM32L467G Discovery.
I need to make a Virtual Com connection between my STM32L467G Discovery and my PC.
For the NUCLEO : The USART2 is connected to ST-Link, so i can communicate with my PC with USART on USB.…

Alexandre Chirouze
- 19
- 2
0
votes
0 answers
STemWin STM32F746G-DISCO with widgets library
I am using new board from STM32 and I added simple page from GUIBuilder from software included to library. When I run my code I click for example on slider widget I have some error. Slider changed his value, but when I click in other part of screen…

MarCovy
- 17
- 9
0
votes
1 answer
Why do I get this Type conversion error
I get this compiler error
../include/BlinkLed.h:46:68: error: conversion to 'uint16_t {aka short unsigned int}' from 'int' may alter its value [-Werror=conversion]
When I pass the pin as u16 type on GPIO_SetBit/GPIO_ResetBits functions,
If I call…

TonyP
- 5,655
- 13
- 60
- 94
0
votes
0 answers
32F429IDISCOVERY board hard fault/default handler
I'm trying to implement a GOCR algorithm to 32F429IDISCOVERY board. The GOCR itself works very well on PC but on the discovery board I'm still having some issues that makes it unstable and unusable. Sometimes the algorithm works fine, everything…

Calleb
- 33
- 7
0
votes
1 answer
STM32F407 TIM8 complementary
I can't figure out why my code doesn't work! I've worked with TIM1 and everything works fine but when I change to TIM8, PC6 and PC7 are always on and the complementaries always off. Please help me out and happy holidays!
/* Includes…

co2ark5
- 45
- 1
- 3
- 12
-1
votes
1 answer
Can we use GPIO_PinAFConfig function to make a pin as output on STM32L1?
I'm using stm32l100rc board. I need to make a pin output/input several times so can I use GPIO_PinAFConfig function to do that? or do I have to initialize whole GPIO_InitTypeDef structure for it.

Priyank
- 1
- 1
-1
votes
1 answer
Auto detect budrate serial stm32
IHello :) I have a STM32L031K6 and i use CubeMx; I want some auomatiser my reception function is adding automatic detection of transmission speed (baud rate) how I can do.
i not find a code example online how to do it :/
Usart.c…

Ibrahim
- 21
- 4
-1
votes
2 answers
STLINK cannot detect my STM32VL discovery
I'm working on a debian 6.0 installed on virtualbox 4 hosted by Windows7, and I'm trying to get my STM32VL work using STLINK project that allows programming and debugging STM32 on Linux.
I followed their tutorial and installed all needed…

Thierno Barry
- 123
- 1
- 3
- 10
-2
votes
1 answer
PRINTF prevents to enter in low power mode
i am testing the low power mode in my bl072z lora board, i call the low power mode function and when i wake up from this state (after a timer set to 20 seconds) the led blinks, everything ok, but if i print a message using PRINTF instead the blink…

jg_spitfire
- 35
- 4