Anything related to the STM32F4 series of microcontrollers. STM32F4 is a series of high-performance MCUs with DSP (Digital Signal Processor) and FPU (Floating Point Unit) instructions.
-3
votes
0answers
52 views
Which embedded device is more appropriate for TCP/IP connection [on hold]
I need to know which embedded platform is more appropriate for a TCP/IP connection, beagleBone or STM32F4, I know that Beagle is more easy to work with because it has an Ethernet interface also can be ...
13
votes
3answers
347 views
STM32F4 and HAL
So I've been experimenting a while with the STM32F407 (I'm new to ARM) and decided to write a simple app using the HAL libraries since it seems ST has discontinued the Standard Peripherals Libraries.
...
4
votes
3answers
291 views
Minimal code required to startup a STM32F4?
Which is the most efficient way/minimal code required to startup a STM32F4? The startup files that come from ST seem to have a lot of unnecessary code.
0
votes
1answer
45 views
STM32F411RE UART IRQ
I want to do RS-232 communication with a PC terminal using interrupt on the receiving for the STM32F11RE.
I've done polling using
...
1
vote
0answers
51 views
Context Switch without interrupt disabled?
I developing a program on ARM M4 where I don't actually want to disable interrupt even when doing a context switch. If any interrupt occurs during context switch, is it possible to handle it soon ...
5
votes
2answers
115 views
CMSIS vs HAL vs Standard Peripherals Library
So I'm switching from PICs to ARM and I bought an STM32F4 discovery board.
So far I understand that to program it you can either access all registers directly in memory (obvious way) and also there ...
1
vote
0answers
19 views
The right way of relocating vector table using vector table offset register for STM32F4 series.
The right way of relocating vector table using vector table offset register for STM32F4 series. I am working with HAL libraries previously there used to be a function called "NVIC_SetVectorTable" I ...
3
votes
3answers
251 views
STM32 USB host will not return from reset request
Note: I have edited this question from its original content since I was able to find a deeper cause/symptom for the problem. I have re-written it to focus on that instead.
I am using a pretty basic ...
0
votes
1answer
49 views
STM32 systick interrupt is not triggering
Please someone help me with my code. I am newbie and trying to turn off LED inside systick handler. I tried with GDB but systick handler is never triggered. What am I missing?
...
0
votes
1answer
61 views
AS5048A SPI - 13bits instead of 14bits resolution
I'm trying to make a driver for as5048a (spi) on STM32f405rg
This magnetic encoder is supposed to have 14bits of resolution :
and the read package shows that the 2 MSB are parity and error flags
So ...
0
votes
0answers
32 views
Setting up Input Capture on STM32F405xx To Measure Period/Frequency
I'm trying to setup Input Capture on Timer 9 CH2 on an STM32F405xx
I've tried to follow the instructions from the reference guide and only changing the input from CH1 to CH2:
For example, you ...
0
votes
1answer
115 views
Triangulation Vibration Sensor Impact Detection Position
I am working on a project to detect the position of an impact using three vibration sensors each one of them linked to a micro-controller(in my case STM32F4) .
Using ADC and UART ,I can plot with a ...
0
votes
1answer
53 views
Sending data from STM32F401 MCU to ESP8266 and getting response from ESP8266 to MCU
am working on an STM32f401 Nucleo board and ESP8266 wifi module. I am using Eclipse gcc-arm tool chain and cubeMx to generate code. I can transfer and receive data perfectly with USART/UART DMA.
Now ...
0
votes
0answers
39 views
Logging data using STM32F401 or STM32L4 nucleo board to SD card
I want to log data from sensor 24/7 and store it to SD Card in fatFs ( every day will be a file ) and the data from this day will be stored there.
I learn about SDIO and s little bit about fatFs but I ...
0
votes
1answer
39 views
stm32 f411re ADC + DMA
I would like to measure pin PC1 and compare it to Vref to get current voltage. This code below worked on L152re. I changed pin number, ADC1 address and DMA channel. It measures something but I am sure ...
0
votes
1answer
89 views
STM32F427 live firmware upgrade
I am trying to "read-while-erase" and "read-while-write" with my stm32f427 dual bank flash for firmware upgrade. what I need to know is how can the program dynamically figure out which bank it's ...
-3
votes
2answers
94 views
Generating 8 analog signals from microcontroller [closed]
I want to generate 8 analog independent signals from a microcontroller, such as a BeagleBone or STM32. In my research, I found that I can use an external multi-channel DAC and interface it with the ...
0
votes
1answer
71 views
redefine DCMI pins in STM32F4
I have a sample code for connecting an OV7670 to a STM32F407IGT6.
However, I'm trying to use a STM32F407VGT6 and in my sample code the STM32F407IGT6 doesn't use the default DCMI pins.
How can I ...
0
votes
1answer
107 views
STM32F4 clock behaves very strangely
I can not find a solution for why STM32F427ZIT6 clock changes during operation. I am using external 8 Mhz crystal.
Should I rather look for a error in software or hardware?
I have a little code, ...
0
votes
0answers
33 views
STM32F429 USB CDC Bulk data receive problem
I am trying to develop my own DisplayLink device with STM32F429 Discovery board. I use CDC as a template of it. Whole edited enumeration pass OK. But when I need to receive data from EP 1 (OUT Bulk) ...
0
votes
2answers
95 views
STM32F4 clock 60Mhz
I want to set my STM32F446 controller his clockfrequency to 60MHz.
I thought I could do it, but without results.
I am using an STM32F446 -nucleo board. I used STM32CubeMX to generate my code. After ...
1
vote
1answer
58 views
Using 320QVT TFT display module with stm32f407
I'm having a bit of trouble trying to get a small 320QVT TFT module up and running. The documentation available is quite vague, but I know the module used a SSD1289 TFT driver, and that 16 address ...
0
votes
2answers
124 views
STM32F407ZET6 and nordic nrf24l01+ communication with interrupt driven SPI
Currently working on STM32F407ZET6 MCU. I am trying to generate an interrupt based SPI communication with nordic nrf24l01+ chipset. The MCU is in Master mode. I am able to establish an SPI ...
3
votes
2answers
217 views
4V AD590 interfaced to 3.3V MCU
I am using an AD590 temperature sensor that is interfaced to an STM32f427 MCU.
It is a 2 pin sensor that must be connected to an ADC pin of the STM32f. But, the ADC590 needs a min of 4V to work and ...
0
votes
2answers
106 views
Disable interrupt in ISR on STM32F4
Is is possible to disable an interruption during its service routine to prevent it from happening again for some time?
For example:
...
0
votes
1answer
88 views
Strange ADC sampling frequency / clock frequency on STM32F401 board
I use a timer to trigger ADC sampling on STM32F401, and the interrupt service routine of ADC will toggle a GPIO pin so that I can measure the ADC sampling frequency using an oscilloscope (which should ...
1
vote
3answers
757 views
How do I use the printf function on STM32?
I am trying to figure out how to use the printf function to print to the serial port.
My current setup is STM32CubeMX generated code and SystemWorkbench32 with the STM32F407 discovery board.
I see ...
0
votes
1answer
126 views
setting stm32f4 SystemCoreClock to 100Mhz but cant get it (only get 57.6Mhz)
I'am triying to change the stm32f407 systeme core clock to be 100Mhz , to do this I need to set the source of the PLL to be HSE , and configure the PLL coefficient so as to get the right value of ...
0
votes
1answer
192 views
stm32f4 pull up resistor value
I'am working with Stm32f4 discovery board ,
i need to know the right value of the pull up resistor on the GPIO port
all there is on the datasheet is : week pull up
Thank you
1
vote
0answers
407 views
UART reception problem when SysTick Interrupt is enabled
I'm using STM32F411RE-Nucleo board and generating a project with Cube MX for System Workbench. The problem is that, HAL_UART_Receive function doesn't receive input ...
0
votes
1answer
289 views
Setting up SPI between a STM32F4-Discovery Board and a MCP4151 Digital Pot
I'm currently working on a project in which I'm trying to interface a MCP4151 Digital Potentiometer with the STM32F4-Discovery Board using the Mars Eclipse IDE. I have downloaded and included the ...
0
votes
1answer
86 views
FreeRtos stm32f4 stuck in vTaskDelay
hello i'am using FreeRtos API with stm32f4 microcontroller , the program gets stuck when it enters vTaskDelay , when I debug it I see that it is stuck in this line (2588 of tasks.c at function ...
0
votes
4answers
212 views
Connecting SIM900 to STM32F4 Nucleo
I'm trying to connect Simcom SIM900 to Nucleo-F411RE using the following configuration for USART1:
...
2
votes
1answer
207 views
STM32 UART reliability with high baud rate
I am using STM32F4 (bare metal with HAL library) as an HTTP Server. I don't implement TCP layer, because that is done for me by the WiFi232 D2 module - all I receive in the uC through UART is a string ...
2
votes
0answers
147 views
LTDC data starvation during simultaneous SD-RAM and NOR Flash access with STM32F429 rev 3
Application details:
SDRAM is used as the LCD frame buffer.
Memory for 2 LCD frame buffers are allocated(double buffering) in SDRAM. LTDC will be always accessing one of the frame buffer in the ...
1
vote
1answer
104 views
Calculating Timer Tick STM32F4
I'm trying to use the timer (TIM4) to log rising and falling edge times from an external sensor.
I need to set the timer so that it ticks every 1µs and has a period of 40ms (so counts 40, 000 ticks ...
3
votes
1answer
169 views
ADC works with pots but not with piezos
I have ADC on stm32f429 with 3 channels turned on(writing data with DMA). Though I suspect this question may be not STM32-specific, probably a general ADC question.
THE "ANSWER"
I found ...
1
vote
1answer
157 views
STM32 Audio class USB not recognized as audio device
I'm learning about USB classes using STM32F429ZI(on Discovery board). I already tried to implement Communications device class (CDC) and it worked well, now I tried to do some simple test with Audio ...
3
votes
2answers
1k views
stm32 ADC conversion using HAL
I am trying to learn how to use "new" HAL library from stm32.
When I try to do simple ADC conversion it works just one time, but then it stops converting. I suppose End of conversion flag does not get ...
0
votes
1answer
30 views
crypto benchmarks STM32L4
Can someone give me an indication on the performance (time) of ECDH executed on the STM32F4 board. The STM32F4 has hardware acceleration for ECC ...
-1
votes
1answer
107 views
STM32 SPI2 doesn't respond correctly
I have a problem with the SPI2 on stm32f4vg board , I have a code that is working perfectly for spi1 , but when I change the code to run on spi2, the code doesn't respond
here is the original code ...
1
vote
0answers
90 views
Retargeting printf in Keil on STM32F4-Discovery
I've found lots of ways on the internet to retarget printf to SWO (Single Wire Output) but none worked for me.
I'm using Keil µVision 5 which contains a "software component" to retarget printf but ...
4
votes
1answer
295 views
STM32F4 USB VCP, PC receive all 0x00
I'm a beginner in STM32F4 and I'm learning how to use the USB Virtual COM Port ("VCP") to transmit data from the microcontroller to a PC.
The virtual port is detected as "STMicroelectronics Virtual ...
3
votes
2answers
2k views
STM32F4 Cube HAL UART. Is it a bug or am I missing something?
I am using interrupt based UART IO (no DMA).
HAL_UART_Transmit_IT function sets EIE bit in ...
2
votes
1answer
146 views
How to send ADC results over USB to my PC
I'm a beginner in STM32F4 and I want to design a data-acquiring system to send ADC results over USB to my PC. But I'm completely confused with the STM32 USB library. My questions are:
Which USB ...
0
votes
1answer
106 views
How to count until a number with timer peripheral
I'm trying to use the TIM peripheral to count external pulses until a number and throw a interruption. I'm using STM32F429 and HAL library. I am initializing the TIM2 with this code:
...
1
vote
0answers
77 views
STM32F411 - I2C failure during heavy polling load
I have a STM32F411 communicating to 2 peripherals (an IMU - MPU6050 from Invensense, and a LED Driver - CAT3626 from ON Semi) over its 2 I2C buses (one peripheral per bus).
I'm running into a strange ...
1
vote
1answer
218 views
Pin value of a GPIO pin set as high impedance
I am using an STM32F4 discovery board and my intention is to set one of its GPIO pins at high impedance, which I have done as below:
...
0
votes
1answer
624 views
STM32F4 HAL - PWM Phase shifting channels on the same timer
I've configured my STM32F407VG (STM32F4Discovery) TIM4 timer using the following code:
...
3
votes
2answers
121 views
Designing system for multiple SPI and I2C slaves
I'm designing a system that has 2 SPI slaves and 3 I2C slaves. The master for all of the communication is STM32F429, which has 6 SPI and 3 I2C peripherals. I think I have two options: 1) use a ...