Questions tagged [stm32h7]

For questions about programming the STM32 H7. The STM32 H7 is an ARM Cortex-M7F MCUs (sometimes with optional ARM Cortex-M4F coprocessors) from ST Microelectronics. (Please also add a language tag!)

48 questions
6
votes
1 answer

Why does D2 RAM work correctly even when clock is disabled?

TL;DR: documentation states I have to enable a specific memory region in the microcontroller before I can use it. However, I can use it before enabling it, or even after disabling it. How is this possible? I'm currently developing an application…
wovano
  • 4,543
  • 5
  • 22
  • 49
2
votes
0 answers

How to use openocd to debug stm32h745-disco board?

I am using a dual core board stm32h745-disco, which contains cortex-m7 and cortex-m4. When I used openocd to set up the gdb server for the board, $ openocd -f tcl/board/stm32h745i-disco.cfg Info : The selected transport took over low-level target…
Spencer
  • 31
  • 1
2
votes
2 answers

How to manage devices that cannot access d-cache in ARM

I'm using an SPI device with DMA enabled in an STM32H7 SoC. The DMA periph. cannot access d-cache, so in order to make it work I have disabled d-cache entirely (for more info. about this, see this explanation). However, I would like to avoid…
Dan
  • 2,452
  • 20
  • 45
2
votes
1 answer

I get an Error when setting PCROP STM32H7 (STM32H743)

Goal I'm trying to set a PCROP area on my STM32H743VI microcontroller, but I'm getting the error code HAL_FLASH_ERROR_OB_CHANGE when executing HAL_FLASH_OB_Launch() and my PCROP area is not set. The relevant part of the code I'm using should be the…
Dugnom
  • 342
  • 1
  • 5
  • 12
2
votes
1 answer

ST-LINK error on STM32CubeProgrammer: Problem occurred while trying to connect

On STM32CubeProgrammer trying to connect to ST-Link module on STM32H7B3LI, I get this: ST-LINK error (DEV_CONNECT_ERR) Error: Problem occurred while trying to connect I already tried installing the firmware here but it doesn't help:…
1
vote
0 answers

STM32H723 HSE frequency for usb + ethernet at 550MHz

Is there a HSE frequency that will provide the desired target frequencies for a 550MHz cpu clock, usb, and ethernet? Using STM32CubeIDE I've plugged in an 8MHz HSE and 550MHz cpu core but this is showing a 110MHz click into USB. Shouldn't this be…
Chris Morgan
  • 1,277
  • 1
  • 13
  • 33
1
vote
0 answers

VSCode: How to define unique includePaths for each core (sub-directories) in STM32h7 dual-core project within same git repo?

I have a git repository for a STM32 H7 dual-core project. Opening the repo-level folder my structure looks like the following: PARENT DIRECTORY (STM32H755) ├── .git ├── .vscode │ └── c_cpp_properties.json │ ├── CM4 │ ├── Core │ │ ├── Inc │ …
1
vote
2 answers

How could I have known ETH won't work with AXI SRAM? Is it the same for SDMMC2? STM32H745

A while ago I wrote my own ethernet driver for fun, and most of the time was spent banging my head on the keyboard because it wasn't working - as is tradition. Problem ended up being that ethernet simply couldn't read from or write to AXI SRAM. I…
TrisT
  • 639
  • 6
  • 19
1
vote
0 answers

stm32h743 webserver how download text file from browser

I have set up an STM32H743 nucleo webserver which works OK by presenting a small webpage on a browser (I am using LWIP+CubeIDE). I can give the webserver simple commands via CGI (see below) and thereby print something to the serial…
1
vote
0 answers

ST-LINK server preventing debugging. 'Info : stlinkserver already running, exit'

Just trying to build and run / debug the default, unedited STM32 project you get when you open STM32CubeIDE. After telling me I needed the download the ST-Link server for it to work, I did, then updated the board when prompted. It now gives me 'Info…
mady1028
  • 11
  • 2
1
vote
0 answers

LED Blinks "Too" Fast @ NUCLEO-H755ZI-Q

Hi! According to the STM32H755ZI's manual RM0399, §9.5.6 (pg. 377), the default clock should be 64 MHz (HSI) after reset. Since the same code worked perfectly on other devices like e.g. a NUCLEO-F303K8, I expected the (red) LED to blink with 1 Hz.…
0
votes
0 answers

Issues while writing into an External NOR while XiP from a different section of the same External NOR

I am working on a custom PCB with STM32H753 microcontroller and an External NOR flash memory to which I am accessing via FMC interface @ 0x60000000. I have a secure boot (SBSFU) running on the internal flash of the uC and my application executes on…
Sreedhar
  • 33
  • 1
  • 4
0
votes
0 answers

Flickering LTDC display on STM32H735G-DK with double buffering and DMA2D

I have connected a 800x480 pixel display via LTDC to a STM32H735G-DK discovery board. In principle it is running and showing the pictures correctly. The problem is, when putting the decoded picture into the double buffer, the currently shown picture…
peter
  • 1
  • 2
0
votes
0 answers

Setting up http server on STM32H750B-DK with LwIP and FreeRTOS

I am trying to set up an http server on STM32H750B-DK (on STM32CubeIDE) with LwIP. When I program it without implementing FreeRTOS I call the function MX_LWIP_Process in while function in main: * Function given to help user to continue LwIP…
AK16
  • 1
0
votes
0 answers

Unable to debug the Application using STMCubeIDE with break points - ST Link

Our total Flash is divided between Boot Loader and application, and their linker scripts will look like below: Boot Loader starts at 0x08000000. The application starts at 0x0804C000. I'm able to debug the Boot Loader code step by step with…
1
2 3 4