Questions tagged [stm32f4]

STM32 F4 controllers are entry-level ARM Cortex-M4 MCUs from ST Microelectronics.

The STM32F4xx series is an ARM Cortex-M4 based 32-bit microcontroller. Its datasheet can be found here.

533 questions
3
votes
0 answers

php json_encode trailing zeros should not be removed

I have somewhat interesting case. We have embedded devices out there, pushing JSON data to our server. We use a checksum for data in sending, so device calculates the checksum over out payload and then sends a JSON data POST message. When there are…
jake9xx
  • 41
  • 3
3
votes
1 answer

Random HardFaults - STM32F4 - FreeRTOS

I have a board with STM32F4 running FreeRTOS (3 tasks on it), and i'm getting a HardFault every 15-50 min of use. My hardware: 3 Encoders, 6 Analog In, 10 digital in and 3 PWM output for DC motors. At start, I thought was some StackOverflow, than I…
3
votes
0 answers

STM32F4 : Change data fetching in DMA2D. Is it possible?

I have some data (in an array) to be displayed on a LCD. To do that I am using the DMA2D peripheral included in my STM32F4 microcontroller. The data I am trying to display are A4 formatted. Thus, every byte in my array (to be displayed) is used to…
vionyst
  • 487
  • 2
  • 6
  • 14
3
votes
2 answers

Function HMAC_MD5 : Return succes but no value

I have got some problems trying to programm the HMAC_MD5 code. I am working in C on a STM32F4 microprocessor. Here is my (updated) code: RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_HASH, ENABLE); static uint8_t static Challenge[16] =…
Indri
  • 61
  • 2
3
votes
3 answers

HAL drivers erase/read/write flash on STM32F4 nucleo

uint32_t PAGEError = 0; FLASH_EraseInitTypeDef EraseInitStruct; EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS ; EraseInitStruct.Sector = FLASH_SECTOR_0; EraseInitStruct.VoltageRange =…
Alex M.
  • 351
  • 2
  • 5
  • 12
3
votes
2 answers

Right formula for calculating temperature sensor using STMF401RE Nucleo?

I'm using STM32F401RE Nucleo board to measure the ambient temperature. After the sampling process, I receive a digital value from ADC_CHANNEL_TEMPERATURE and I want to convert this digital value into C°. I searched on the internet for this and I…
BL_
  • 821
  • 1
  • 17
  • 23
3
votes
1 answer

FreeRtos how to store function address while context switching

I using freertos on my project. My code is stuck in hardfault handler, I want know last executed function address or last executed line address for debugging.How to debug code when PC is pointing Hardfault handler.
3
votes
2 answers

stm32F4 pwm input capture of high frequency signal approx. 2MHz?

I want to measure the frequency of a PWM signal. To do that, I'm using STM-F401RE and its Timer_Input_Capture function. The problem is: the input signal has a quite high frequency (approx. 2MHz) and, the STM-F401RE controller has only a 80MHz…
BL_
  • 821
  • 1
  • 17
  • 23
3
votes
1 answer

STM32 - How to trigger interrupt after a certain PWM ON time?

I'm new to ARM MCUs (STM32F411), and I have been trying to find my way around the peripherals using STM's HAL library and STM32Cube. I've already configured my board in order to use some peripherals: Timer 2 for running an interrupt with a certain…
starscream
  • 741
  • 2
  • 11
  • 23
3
votes
1 answer

Building OpenSSL Library on ARM Cortex M4 based STM32F4 controller in an RTOS environment

I am looking at the feasibility of developing an embedded bluetooth application with openSSL-FIPS support on STM32F407 microcontroller(which is ARM Cortex M4 based). The application doesn't run on generic OS like Linux, Windows or andriod but it…
Jinu
  • 69
  • 1
  • 6
3
votes
1 answer

STM32F4 Encoder count is changing when it should not

I am currently using the STM32F4 with the STM32F429ZI Nucleo-144 Board. I am looking to use this microcontroller to evaluate the position of a rotary encoder via a quadrature encoder interface. Looking at the documentation, this is done with the…
Seidleroni
  • 1,044
  • 3
  • 15
  • 31
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?
2
votes
0 answers

"No target connected" in ST-Link Debugger after accidentally removing USB connected to computer without safely ejecting

I am using the Nucleo STM32F446RE board and programming in C in the program Keil for a homework project. Before I start writing the code for any project I would always press the 'configure flash tools' option, go into the 'target' tab change my…
Zianne
  • 29
  • 5
2
votes
0 answers

pyserial Serial.read() returns b''

I'm try to reproduce the result of benchmarking at here I use STM32F429 Nucleo-144 board and Ubuntu 20.04 with VMWare on Windows10. When I run benchmarks.py in terminal, Serial.read() returns empty bytes, b''. Here is the snippet of the code: import…
2
votes
1 answer

STM32 Virtual COM Port appears as Device in DFU Mode on Windows 10

So, my knowladge in embedded development is quite bad and now I am trying to receive some data from PC inside my MCu STM32F429IGT6 which is on WaveShare Core4X9I dev-board and send it back via USB Virtual COM Port. I realized how to set up…
1 2
3
35 36