Questions tagged [stm32f3]

Anything related to the STM32F3 series of microcontrollers. STM32F3 is a series of of mixed-signal MCUs with DSP (Digital Signal Processor) and FPU (Floating Point Unit) instructions.

Anything related to the STM32F3 series of microcontrollers. STM32F3 is a series of of mixed-signal MCUs with DSP (Digital Signal Processor) and FPU (Floating Point Unit) instructions.

See STM32F3 series page on ST website.

41 questions
24
votes
0 answers

Switch from JTAG to SWD with bitbang sequence on STM32F103VB

I am trying to switch from JTAG to SWD without any external devices. Why? Because I would like to use the SWO pin to send a stream of logging information to another device. To accomplish this without using an external debugger, I have connected the…
Heneer
  • 489
  • 7
  • 12
11
votes
4 answers

Getting fast performance from a STM32 MCU

I am working with the STM32F303VC discovery kit and I am slightly puzzled by its performance. To get acquainted with the system, I've written a very simple program simply to test out the bit-banging speed of this MCU. The code can be broken down as…
K.R.
  • 591
  • 7
  • 15
8
votes
4 answers

Interrupt latency on a STM32F303 MCU

I’m working on a project that involves a STM32 MCU (on the STM32303C-EVAL board to be exact) that has to respond to an external interrupt. I want the reaction to the external interrupt to be as fast as possible. I have modified a standard peripheral…
K.R.
  • 591
  • 7
  • 15
5
votes
1 answer

STM32F3 Discovery + GNU ARM plugin + OpenOCD - cannot load the binary onto the board

I'm using the GNU ARM plugin for Eclipse with Open OCD as a debugger. This is on Windows 10 x64. The problem I'm facing is the following error when trying to debug or run the sample program: Error in final launch sequence Failed to execute MI…
Violet Giraffe
  • 343
  • 1
  • 3
  • 12
4
votes
1 answer

HAL + DMA + UART = STM32 crash

I'm currently working on a project which involves communication between a STM32F303RE (Nucleo board) and a classic GSM/GPS SIM808 module plus other peripherals. I want to use the DMA + UART of the STM32F303 to receive the data from the SIM808…
Rascafr
  • 81
  • 1
  • 6
4
votes
2 answers

Vref_cal on STM32F3xx ADC

Is there a function to read the Vrefint_cal in Cubes HAL libraries? I'm using the F3xx. I'd like to measure the supply voltage of the micro. The formula given in the reference manual is: \$ \Large VDDA = 3.3V \times…
Tomas Svitil
  • 375
  • 4
  • 14
3
votes
0 answers

Verify Total conversion time of ADC1 STM32F303

I am using ADC1 channel1 of STM32F303 in Time triggered mode. TIM1 is used to generate update event and is used as trigger source for ADC1. Time Trigger comes at 1kHz. I want to verify the total conversion of ADC. In F3 reference manual, it is…
rinky
  • 31
  • 2
3
votes
1 answer

Changing flash latency from 0 to 1 even with enabled prefetch slows execution on STM32

I have put all clock configuration to its default state, so an internal oscillator is running at 8 mhz. I have a delay loop using inline assembly as follows: // Delay a certain number of cycles using glorious inline assembly. void delay(uint32_t…
hak8or
  • 1,070
  • 11
  • 23
2
votes
2 answers

STM32F3 I2C hangs on busy flag (interrupts)

I am using two STM32F303K8 Nucleos and hooked up the SDA/SCL (GPIO B PIN 6 & 7) pins to 3.3V across roughly 4.7K resistors to 3V3. When I check the voltage on the pins, both are 3V3 so it's not locking up and it's sitting idle yet the I2C (or HAL at…
nurtul
  • 41
  • 1
  • 5
2
votes
1 answer

STM32F3 - diffrence between PWM1 and PWM2

Can anyone explain to me wht is the difference between PWM1 and PWM2 in STM32F3 timer configuration? It is mentioned frequently in documentation, however I can't find the difference between these two settings. Code example for setting PWM1 OC mode…
Em Ka
  • 167
  • 3
  • 17
2
votes
1 answer

STM32: Difference between HAL_xxx_Init() and HAL_xxx_MspInit()

When using the HAL (Hardware Abstraction Library) for any of the STM32 micro controllers: For a given peripheral, why do you have to call an HAL_...init() , as well as a HAL..._MspInit() - why are several 'inits' separated?
m00wn
  • 342
  • 2
  • 7
2
votes
3 answers

Why does setting up some GPIOs cost so much memory?

I'm trying to write a library for my hobbyish purpose and it's almost ready for a smoke test. The only thing that annoys me is a called-once fuction : (Note: all uppercase phrases are macro constants) { /////////// Interface clock…
Long Pham
  • 1,260
  • 1
  • 11
  • 21
2
votes
1 answer

STM32F303K8 Nucleo Restart ADC For Continuous Scans (Using Interrupt?) STM22CubeMX

I have a project generated from CubeMX for my STM32Nucleo F303K8. My IDE is SystemWorkbench. I am using a total of 8 Analog inputs split between two ADC's ADC1: 1, 2, 4, 12. ADC2: 1, 2, 3, 4. I am not sure how to properly read these. I am using DMA…
Chris
  • 81
  • 1
  • 4
2
votes
1 answer

STM32F3 I2C communication with Arduino

I am trying to implement the Inter-Integrated Circuit (I2C) of STM32F3 Discovery Board to communicate with 2 slaves (arduino) in my project. However, I cannot send any data to arduino. Here is my coding: void I2CInit(I2C_TypeDef* I2Cx){ …
Leonard1995
  • 31
  • 1
  • 7
2
votes
1 answer

stm32f3 DMA not sending data array properly

I have a peculiar problem with STM32F303 DMA. I am using libopencm3, but I hope you'll clearly see what is happening - it's all just functions to set the control registers. I am sending data from a const array to a DAC - but it is sending the data…
MightyPork
  • 553
  • 3
  • 14
1
2 3