Questions tagged [stm32f3]

For question involving the STM32F3xx series of microcontrollers.

33 questions
0
votes
1 answer

STM32 NUCLEO64: PWM has no output

I'm using STM32F303 NUCLEO64. I used CubeIDE to auto generate the code. The program is running Coz I can see the printf() is updating via SWO. I have added 1 sec delay after GPIO and TIM3 initalization. And I have started PWM by using this…
0
votes
0 answers

I am getting two stack trace errors in CubeIDE when trying to debug

I am getting the two following errors: enter image description here Also having this in the static stack analyzer: The info is 'Local cost uncertain due to inline assembler, verify at runtime' enter image description here I could not find anything…
0
votes
1 answer

Can STM32F303 on-chip I2C be used, to connect to STM32F3DISCOVERY on-board gyroscope (I3G4250D or L3GD20)?

The STM32F3DISCOVERY board has an STM32F303VC microcontroller, which has built-in SPI and I2C support, and a gyroscope which supports both SPI and I2C. Per the board's user manual and schematic, the gyroscope is connected to the microcontroller's…
0
votes
1 answer

Setting registers using embedded rust

So... I've been following the embedded rust book... and I'm currently reading about registers. Now, the book does suggest that I use an STM32F303VC discovery to avoid issues, but I couldn't find one, due to which I got a Nucleo F303RE instead. the…
DS3a
  • 99
  • 1
  • 7
0
votes
0 answers

How to properly configure an stm32 with lmt86?

I'm implementing an stm32 which reads data from an LTM86 sensor and transmits the converted temperature in a CAN bus. My problem is related to the ADC configuration because the voltage value provided by the ADC is different from that measured on the…
Gi.17
  • 11
  • 1
  • 2
0
votes
2 answers

STM32 SPI Data Packing

I can't get the SPI on my STM32f3 discovery board (Datasheet) to work with gyroscope sensor (I3G4250D) on the register level. I know I'm sending data since I'm in full duplex and receiving dummy bytes from sensor using 16 bit data packing but when…
0
votes
1 answer

STM32 I2C Only Transmits Once

I'm using stm32f3 Datasheet as reference for register level programming instead of HAL. I'm pretty sure I set up everything correctly since I am actually able to transmit bytes of data through I2C peripheral however it fails to send a byte when I…
0
votes
1 answer

XGZP6859D Pressure Sensor with Stm32f302R8

I want to create an API to get value from XGZP6859D pressure sensor using the stm32f302r8 nucleo board, Here's its datasheet http://cfsensor.com/static/upload/file/20210110/XGZP6859D%20Pressure%20Sensor%20Module.pdf. I wrote all the register in the…
Japy
  • 31
  • 6
0
votes
0 answers

STM32F3 Can't get the UART to work in this particular case

I am having trouble making a very simple transmission between two STM32F3 Discovery boards. Let me explain what I'm doing. I have Board-A connected via i2c to an LCD 20x4 and Board-B connected via i2c to a Qrobot 3D Gesture Sensor, the goal is to…
0
votes
2 answers

Why is my led(stm32f3-discovery board) is not glowing after applying delay?

Is there any mistake I am making in applying delay the delay? This is the code I am working with to blink led 3 and 4 after with a delay. use cortex_m_rt::entry; use stm32f30x_hal as hal; use hal::delay::Delay; use hal::prelude::*; use…
user15692170
0
votes
0 answers

Problem sending data to SPI1->DR as master

I try to send data from master to slave using SPI, I'm really new to this and I dont know what im doing wrong I dont know if its something with my init configuration or my understanding from spi proccess. if someone know or can guide me over cause…
Try2prog
  • 161
  • 10
0
votes
1 answer

How do I turn on LED while pressing and releasing the push button once and then turn it off by pressing and releasing it again?

I am trying to turn on LED by pressing and releasing the button once and turn it off by pressing and releasing it again and so on. I wrote a bunch of code together but I'm not sure if it sounds right. I mean I don't know if it's my breadboard or…
zRage4
  • 39
  • 2
0
votes
1 answer

How to do a adc conversion every 1us with Nucleo-F303K8?

Im using the STM32 Cube IDE. What I tried now is enable MSM in TIM2 and output_compare_no_output on Channel 1 and select "Reset" as the Trigger Event. Then I went to ADC1 and enabled Regular_Conversion_Mode, set Number_Of_Conversions to 1 and the…
le_lemon
  • 107
  • 1
  • 11
0
votes
1 answer

GDB don't stop on breakpoints and continue

I am a beginner in embedded programming so to learn I'm trying to work with a minimalist program. I have the following program I try to execute. My environment: arm-none-eabi-gcc (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch…
Anthony
  • 2,014
  • 2
  • 19
  • 29
0
votes
1 answer

STM32: simple SPI transfer

I am working with a STM32F3DISCOVERY board and I'm trying to dive a bit deeper into the abstractions of the HAL. I made a simple version of a function that transmits data over SPI, sadly it does not work (at least the DAC I'm sending it to does not…
chmanie
  • 5,016
  • 3
  • 21
  • 28