Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
66 views

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 ...
-1
votes
1answer
136 views

STM32F303 Microcontroller open drain GPIO, Can it reach / be pulled up to 5 Volts?

I hope you are all doing well... :). I'm working on a project with pulse width modulation however I need my logical high output to be 5V. However, as my Vdd is 3.3V, the output high level is ...
2
votes
3answers
229 views

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)...
0
votes
1answer
122 views

DS18S20 Temp sensor HAL Library

I am using stm32f303k8t6 nucleo board and Keil V5 IDE. I want to measure temperature with DS18S20 sensor over one wire interface. I have downloaded the HAL library from https://github.com/nimaltd/...
1
vote
1answer
184 views

stm32f303 ADC continuous conversion mode multi-channel does not auto start new sequence

I am using a STM32F303v with 2 ADC regular channels in cotinuous mode with a DMA and would like continuous conversion to take place in order to enable a stream of data. Base on the setup of my DMA ...
0
votes
1answer
151 views

FLASH Programming

I want to write a halfword data to a certain memory location. I am using the following code to write but the data is not appearing in flash memory location if i check. ...
0
votes
1answer
233 views

Cannot read accelerometer values from MPU6050 Interfaced with STM32F303RE

I m working on a "self-balancing robot" with STM32F303RE.I m using STCubeMX to generate the MCU configuration code and then I added the main() to get the values from MPU6050 from the following code : ...
0
votes
0answers
317 views

MPU6050 Interfacing with STM32

I m trying to interface MPU6050 Gryo+Accelerometer to STM32F303RE but I can't figure out how to program it using the HAL Drivers and CubeMx.Can some suggest some literature or material which I can ...
0
votes
2answers
177 views

Configuring ADC in STM32F3

I'm trying to enable an ADC converter. I'm using STM32F3 Discovery with SPL Library. I measure voltage on PA1 pin. I don't know why it doesn't work. What have I missed? The value of 'value' variable ...
0
votes
1answer
376 views

unable to get the usart on the stm32f3discovery to work

I have been trying to get the usart working on the stm32f3 discovery board for a while. I am using a 3.3V FTDI basic from sparkfun for the purpose. So far, I haven't got a peep from the program. The ...
0
votes
0answers
337 views

User USB is not recognised on stm32f3 discovery

I am trying to use the virtual com port on the stm32f3 discovery board to communicate with my computer. I have been using the ST Link USB for programming. I have to use the User USB in order to use ...
2
votes
1answer
366 views

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 ...
0
votes
1answer
1k views

Why will HAL_SPI_Receive() not read the L3GD20H gyro on my STM32F303 Discovery board?

I have an STM32F303 discovery board for which the mems gyro L3GD20H is connected to the SPI1 peripheral by default, that is the Sclk, MISO and MOSI are connected to pins PA5, PA6 and PA7 respectively. ...
0
votes
2answers
537 views

Using SPI to communicate between stm 32 f4 and stm32 f3

I want to use an SPI bus to transer a message between an STM32F4 discovery and a STM32F3 Discovery, using an half-duplex channel. Master is F4, slave is F3 and the communication is MOSI type. When I ...
6
votes
4answers
2k views

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 ...
11
votes
4answers
2k views

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 ...
4
votes
1answer
3k views

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 ...
0
votes
1answer
128 views

STM32F373 Input Capture

I am having an issue trying to get Input capture to work on one of the stm32f373 pins (PB0, TIM3 CH2 ). The reason why i'm stuck with this pin is because m doing this on my own personalized board with ...
2
votes
1answer
2k views

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 ...
0
votes
0answers
154 views

Is my I2C address setup correct?

Here is the code: ...
4
votes
1answer
3k views

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 ...
1
vote
1answer
2k views

Why should I connect Vbat pin of stm32f37x to VDD when there is no battery?

I'm using a STM32f373x and with no battery. The product specification on page 77 says it should be connected to VDD. I have made a test with Vbat pin left open and the micro is working. Why I should ...
0
votes
1answer
335 views

STM32F303VC I2C works in Debug mode only [closed]

I am interfacing HDC1000 with STM32F303VC. My I2C code works in Debugging mode only. Other Blinky and UART code works properly. Write works perfectly but, Read function code stuck here: ...
5
votes
1answer
1k views

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 ...
0
votes
2answers
2k views

STM32F303RET's core is always halted after programming

I have an STM32F303RET MCU with Eclipse, Cross ARM GCC and HAL library environment. I am using an STM32F4Discovery board as SWD programmer. My problem is when I download the hex file to the MCU I got ...
-2
votes
1answer
718 views

DAC Signal to AC?

I am producing a sine wave signal from STM32F3 through DAC. but since micro-controllers can not produce negative output so my output limits to positive half only. but in my application i need signal ...
2
votes
1answer
293 views

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 ...
0
votes
3answers
228 views

a microcontoller pin stuck permanently at 0

Is it possible in general to have a pin of any uC stuck at 0, including when the power is off? Particularly I'm interested in stm32f3
0
votes
1answer
483 views

stm32f373vb produces a short circuit after some time

I designed a custom board with stm32f373vb lqfp 100. I made the soldering from the 4-th attempt. It was easy, when you know the technique and have a microscope. Anyway I checked the pins with the ...
0
votes
1answer
1k views

Resolve SWD Communication Failure

I have developed a board with stm32f373VB and I'm trying to test the PCB with ULINK/2 and uVision V4.70.0. I got a SWD Communication Failure, and I can't program the uC. And here is the layout: Any ...
3
votes
1answer
1k views

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: ...
2
votes
1answer
2k views

ARM CPU burning hot within 30s after voltage regulator failure

I have an STM32F3 DISCOVERY board (3V CPU, http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF254044), and I accidentally dropped a 25V lead on a wire that I didn't think was connected to the ...
2
votes
1answer
6k views

DMA between GPIO and SRAM on STM32

Here I am trying to move the data at the SRAM location 0x20000010 into the ODR register of ...
1
vote
2answers
293 views

Sendingdata on display

I have 132x65 dot matrix LCD. I am using STM32f303 controller in my application. I got success in displaying the normal 5x7 fonts on LCD. Now I what I want to do is to display 13x16 custom sized ...
0
votes
1answer
384 views

Incorporate TTF file in C

I have migrated from a 16x2 alpha-numeric display to a 128x64 graphical in existing project. With that in mind, I am planning on using a larger font instead of the "easy" 5x7. How do I integrate TTF ...
0
votes
1answer
525 views

STM32F example for opamp follower mode

Does anyone have an STM32F example for opamp follower mode (ideally STM32F3 Discovery)? I can get the PGA working but cannot find out how to connect it in simple follower mode.
1
vote
2answers
1k views

STM32F3 Discovery 5V output

I want to use a STM32F3 GPIO (3.6V) to drive another device using 5V input. Which is the correct way to do so? I know that is possible to use the open drain mode on the GPIO, but I'm not sure if I ...
1
vote
1answer
555 views

NT75451 LCD with STM32

I am using STM32F303VCT6 microcontroller for my application. My question is: Are there any libraries for the GLCD NT75451 which may help me display geometric shapes on the screen? FYI : LCD interface ...