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
4
votes
1 answer

using EXTI Line for software interrupt

I'm using STM32F4 and I want to generate a software interrupt. the question is how do I know in the interrupt handler if the interrupt was generated by software or by the pin connected to the EXTI line?
Samer.M
  • 121
  • 2
  • 10
4
votes
1 answer

How to make UART communication using ST-Link V2?

I have an STM32F417IG mcu connected with my PC. I use CoIDE and an ST-Link\v2 ISOL, to program and debug. I am looking for a way to connect serially to the target via the same setup. My motivation is that i want to send input to the board while I am…
3
votes
1 answer

DFU bootloader immediately jumping to application in STM32F405RG

I am trying to immediately jump to the DFU bootloader via software on the STM32F405RG, but instead it is doing a software reset and the RCC_FLAG_SFTRST flag is thrown. The program continues to repeatedly execute the code for jumping to bootloader…
3
votes
2 answers

FatFS - Cannot format drive, FR_MKFS_ABORTED

I am implementing a file system on SPI flash memory using a w25qxx chip and an STM32F4xx on STM32CubeIDE. I have successfully created the basic i/o for the w25 over SPI, being able to write and read sectors at a time. In my user_diskio.c I have…
Jonathan Just
  • 49
  • 1
  • 8
3
votes
1 answer

Loopback SPI in STM32F411RE

I am trying loopback in SPI in STM32F411RE, using the STM32 HAL Library. The output in the serial terminal is distorted (Just boxes) I have connected the MOSI, MISO pins of the micro-controller. Could someone help me point out the problem.…
3
votes
2 answers

Why is memory aliasing needed?

I'm confused with this architecture design by ST Microelectronics. Take for example STM32F407VG. Program is loaded in flash at address 0x08000000. That address is mapped to address 0x00000000 because after reset the processor looks first at…
3
votes
3 answers

Failing to receive data from UART in DMA mode

I am trying to receive 8 bytes from my pc on my NUCLEO F446RE stm32 board. Transmitting to the pc works. The problem is, I am unable to receive data using DMA. I saw an example with almost the same code and it has worked for the person. If I use the…
Knee Caps
  • 181
  • 2
  • 9
3
votes
1 answer

STM32F103RB and STM32F4 with STM32 Arm Programming for Embedded Systems

I want to buy the book STM32 Arm Programming for Embedded Systems The examples of this book are done with STM32F4 (ARM) But I have a board which is STM32F103RB (ARM) Does the code done for STM32F4 compile and execute as well as if I copy them…
Dev
  • 463
  • 3
  • 12
3
votes
1 answer

Interrupts Not Working When I Jump to Application (STM32)

Update: Maybe the better question to ask is how should I go about debugging this problem? I'm using VS Code with OpenOCD debugger. I always clean build. The best I can do once I JumpToApplication() is see what addresses the debugger stops at when I…
mbards
  • 43
  • 3
  • 10
3
votes
1 answer

How to configure my CAN filter in list mode?

I have written some code to transmit/receive CAN messages and I am having some issues with my filter. Firstly I'm going to say that I understand mask mode and have managed to get it working with the following configuration: uint16_t id = 0x12; //…
FeraTaTa
  • 31
  • 1
  • 5
3
votes
1 answer

STM32F4 EXTI interrupts interfere with each other

I am working with STM32F407VGT6 MCU and I am having problem with external interrupts (EXTI). I have configured two pins as EXTI and they are PE7 and PE15. They are connected to HALL sensors driver and are detecting toot edges of trigger wheel. Ones…
MMM
  • 33
  • 1
  • 6
3
votes
3 answers

What can cause an ARM MemManage exception with all bits in the MMSFR register zero?

I'm working on Ethernet code on an STM32F429 ARM Cortex M4 device and running into a situation where I'm getting an MemManage exception where the cause is proving very difficult to track down. From what I understand, the MemManage exception is…
mpthompson
  • 81
  • 8
3
votes
2 answers

Openocd how to write option bytes to STM32F4

I have two boards with a STM32F437 (IGH6 7BA4S VQ PHL 7B 542) processor. We program these with openocd and a jtag, however lately one card stopped working. It is no longer possible to program the card and one of the differences we have found is that…
Heneer
  • 313
  • 6
  • 17
3
votes
1 answer

STM32 HAL Nucleo F446RE Quadrature Encoder

I have a problem with the quadrature encoder mode on timer TIM3 of my STM32F446RE / NUCLEO-F446RE: TIM3 counts on every rising edge on the first signal. The CNT register counts up and I read the value with 1 Hz and then I set the register to…
Max3579
  • 41
  • 4
3
votes
0 answers

What can make the system impossible to debug?

I am currently programming an embedded system, which works with a GPS modem. I do not have any problem debugging the software as long as I do not activate the GPS module. As soon as I do it, I cannot use any break point anymore nor stop the program.…
Indri
  • 61
  • 2
1
2
3
35 36