Questions tagged [stm32ldiscovery]

77 questions
28
votes
4 answers

What are weak functions and what are their uses? I am using a stm32f429 micro controller

Wikipedia says: A weak symbol denotes a specially annotated symbol during linking of Executable and Linkable Format (ELF) object files. By default, without any annotation, a symbol in an object file is strong. During linking, a strong symbol…
Munir Ahmad
  • 391
  • 1
  • 3
  • 5
7
votes
1 answer

How to delay one clock cycle in STM32?

The question is as simple as the topic. How to delay exact one clock cycle in STM32? If the controller runs at 168MHz, is one clock cycle equal to 1/168MHz, which is 5.95ns?
richieqianle
  • 602
  • 2
  • 7
  • 20
5
votes
0 answers

failed to fetch `https://github.com/rust-lang/crates.io-index`

I'm following this https://docs.rust-embedded.org/discovery/03-setup/index.html while installing itmdump through cargo install itm --vers 0.3.1 , it throws an error error: failed to fetch https://github.com/rust-lang/crates.io-index Caused by: …
Muhammad Umer
  • 357
  • 3
  • 13
5
votes
3 answers

Auto baud rate detect for STM32L0

I can't get auto-baud rate detection to work on the STM32L0. I'm using the hardware abstraction layer (HAL). My initialization code is: /* USART1 init function */ void MX_USART1_UART_Init(void) { huart1.Instance = USART1; huart1.Init.BaudRate =…
Flying Swissman
  • 818
  • 2
  • 14
  • 39
4
votes
2 answers

Using PuTTY to print from STM32

I want to print messages from my STM32 Nucleo-L073RZ microcontroller. How should I go about it? Should I use UART? Where can I get the corresponding code? #include "stm32l0xx.h" #include "stm32l0xx_nucleo.h" #include "stm32l0xx_hal.h" #include…
Niteesh Shanbog
  • 167
  • 1
  • 1
  • 11
3
votes
1 answer

STM32cubeMX Firmware Package

I start generate code in STM32cubeMX, and i got this message "The Firmware Package(STM32Cube FW_F4 V1.11.0)or one of its dependencies requiredby the Project is not available in your STM32CubeMX Repository". Can enyone tell me how to throw in?
3
votes
1 answer

Cannot run STM32 L1 Discovery board

I have fresh STM32 L1 discovery board, and it seems to be broken. But I am not completely sure. When connecting board via USB to the Linux machine, board starts perfectly fine, and the demo works just as described by vendor. But I am unable to…
mucka
  • 1,286
  • 3
  • 20
  • 36
3
votes
1 answer

PLL clock configuration

I'm using STM32L152RB board and I'm trying to configure system clock to use PLL clock but the RCC_FLAG_PLLRDY flag is getting set so the program is stuck in while loop. please let what I'm doing…
Mustak U
  • 115
  • 2
  • 11
3
votes
2 answers

Stuck with basic programming of STM32L-Discovery

I've got a STM32L-Discovery Board, which has got a STM32L152R8 microprocessor. I'm quite stuck trying to make basic things work. I've looked the examples given by ST (the current consumption touch sensor and the temperature sensor), and I think they…
Deivad
  • 31
  • 4
2
votes
1 answer

Using Rust crates for an STM32 microcontroller board

I'm currently trying to learn Rust (for embedded specifically), coming from a background of C for embedded systems and Python. So far, I've been reading Rust Programming Language and Rust for Embedded, and read a few blog posts on the web. I want my…
Rafael Boy
  • 287
  • 2
  • 8
2
votes
0 answers

LIS2DW12 accelerometer tilt angle detection using STM32L496AG

I am using LIS2DW12 Accelerometer for tilt angle detection I can now get a interrupt trigger from the accelerometer when it crosses the threshold value given in the WAKE_UP_THS register in one direction(either clockwise or counter clock wise). Is it…
Prajin I R
  • 21
  • 1
2
votes
1 answer

flash a ST board with STLINK and Linux

I am trying to flash a board of ST (STM32 discovery Kit STM32L072) via the STLINK connector, from a Linux, in command line. To flash with the STLINK, you just have to copy-past the binary to flash into the USB reader (associated to the STLINK); For…
guitou
  • 121
  • 2
  • 7
2
votes
3 answers

How can i start the GDB server in stm32cubeide?

right now I am trying to program on the STM32G0-Disco-board with the program stm32cubeide on WIN10. This worked fine until it didn't. My problem right now is that I can't debug/run it anymore. This is the first day I used this program, which doesn't…
typ
  • 35
  • 1
  • 1
  • 4
2
votes
0 answers

Why we use FLASH.constrain() and RCC.constrain() in embedded RUST using STM32F30x?

I'm new to Rust. Currently I'm working on embedded rust using STM32F303 Discovery board. I am facing a lot of problems while accessing a registers and don't know How to access RCC, FLASH, TIMER and many more in order to complete the task. Can…
2
votes
3 answers

AWS freeRtos "failed to provision device certificate error:48"

I am new to AWS IoT and working with STM32L475 Discovery kit board and trying to run the AWS freertos demo for the board based on the AWS getting started guide.I followed all the steps provided in the AWS documentation but encountering the following…
Govind Kalyankar
  • 574
  • 1
  • 4
  • 17
1
2 3 4 5 6