Questions tagged [stm32ldiscovery]

77 questions
1
vote
2 answers

STM32 UART/USART receive issue(without interrupt)

I am trying to transmit and receive data via UART/USART on stm32L476 discovery board to terminal on PC. I am able to transmit the data to PC, but I am not able to receive any. My code is as follows: /* Includes…
user8398475
  • 61
  • 2
  • 7
1
vote
1 answer

Not working standby mode in the stm32l100

I'm tuning stm32l100 for a STANDBY mode. The MCU should woke up 2 times per second. For this I use RTC wakeup timer. But after how MCU has entered to the STANDBY mode it immediately wakes up. If instead the STANDBY mode I use a simple sleep-mode…
Serge Maslyakov
  • 1,410
  • 1
  • 17
  • 23
1
vote
0 answers

SD card using SPI initialization stm32f303 issue with CMD0

I am sending the correct command and I can see it on the scope.However, I don't get 0x01 response(I keep getting 0xff) from SDcard(SDHC)(SanDisk Ultra 40MB/s ...16GB) I am using the following code: uint8_t…
1
vote
2 answers

Speed up blinking leds after 2 seconds

In my ST32L c application I want to speed up the blinking LEDs. With the code below I can press the button and the LEDs will blink faster. When I release, the LEDs will blink normal. How can I check if a button is pressed for minimal 2 seconds and…
Mvz
  • 507
  • 3
  • 11
  • 29
1
vote
1 answer

How much second delay for this assembly delay function?

I need to help with this assembly delay function, Can any one help me calculate how much second delay is for this assembly delay function? It's coding for STM32L152-DISCOVERY board, here is the its page:…
user3435575
  • 31
  • 1
  • 8
1
vote
0 answers

STM32L-Discovery error message?

I'm trying to program a stm32l-discovery board and have come across this error that keeps appearing when I try to build my project. error: #29: expected an expression for (int i = 0; i <999; i++){ I'm using Keil uVision 4. Source: while (1)…
1
vote
2 answers

Interrupt service routine for watchdog timer on STM32 Discovery

I recently bought a STM32 Value line discovery kit to work with STM32 devices. I'm working on a project now which requires a watchdog. It's called IWDG in STM32. But my problem is that I need an ISR when the watchdog is triggered. Does anyone know…
Lars Jansen
  • 113
  • 1
  • 10
1
vote
1 answer

STM32F4 PLL Precision

Im trying to configure clocks on STM32F4 Discovery for precise time measurement. I have this configuration: int main(void) { NVIC_InitTypeDef nvici; GPIO_InitTypeDef gpioi; TIM_TimeBaseInitTypeDef…
Ryba
  • 681
  • 4
  • 13
1
vote
1 answer

Conflicting Achitecture profiles A/M Error using arm-none-linux-gnueabi-gcc

Sorry for my bad English. I have an Ubuntu on my PC, which I use to program my STM32L-DISCOVERY. Well, program successfully compiles, but I have an error while link the application. I am newbie in development for such devices. So, I use Eclipse as…
user2574232
  • 21
  • 1
  • 6
1
vote
1 answer

How to configure the GPIO pins on an STM32L152?

I got an STM32L discovery board that contains an stm32l152rb microprocessor. I try to program that board in assembly without any library at all. So far I succeeded in writing linker scripts and a basic routine that copies the .data section into the…
fuz
  • 88,405
  • 25
  • 200
  • 352
0
votes
1 answer

How to use I/O pins on the STM32L496G-Disco board using Zephyr

Hi I have a few sensors that I've wired up on a breadboard, and I want to connect one to a simple GPIO RX pin and another to a pair of UART RX/TX lines on a STM32L496G-Disco board. I'm utilizing Zephyr OS, and thus DeviceTree. However, the…
0
votes
2 answers

STM32 reset events handling

Is there a way to generate falling and rising events on the reset pin of STM32L0xx? The idea is to do a regular hw reset it when quick pressed when pressed and hold to load the factory settings. Thank you!
0
votes
0 answers

how to disable trust zone in STM32L562ve?

I am trying to enable secure boot in STM32L562ve and I enabled the secure boot via cube programmer(Option bytes - TZEN) with no application in flash memory. And now I can't connect the board.... how to disable trust zone in stm32L5 series? How to…
0
votes
0 answers

What exactly we want to achieve in delay function?

I am going through this discovery book and I have successfully completed it till chapter 8 Leds Again. Now in chapter 9 Clock and timers i was going through these for loop delays using function delay but I am not getting what actually we want to…
user15692170
0
votes
1 answer

Inexplicable "error: expected ')' before '*' token" error in Device header file when trying to compile STM32duino project using LoRaFi library

I'm trying to compile an example included in the LoRaFi library, for use with the SX1272 LoRa radio hat and the STM32 IoT Node Discovery kit. This is an STM32duino project. The error specifically points to the the IoT Node's device header, included…