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

Debug the special purpose CONTROL register in STM32H7

I am using STM32H7, I find in assembly a special-purpose register called "CONTROL", which I assume it is 3 bits long according to this doc. MSR CONTROL, r4 After debugging and the ARMv7m documentation, I think "CONTROL" register is just a…
Hamdim
  • 19
  • 6
0
votes
2 answers

MPU subregions security for STM32H7

I am trying to understand the STM32H7 MPU example, In this example, only one region has been created for all the memory address space 4GB. The subregion option is activated which means, it will be divided into 8 subregions starting from 0x0. And SRD…
Hamdim
  • 19
  • 6
0
votes
1 answer

SMT32H7 (H745/H755): ADC "internal Error" with HAL

I'm using an STM32H755 (on NUCLEO-Board) with CubeIDE and trying to set up an ADC with HAL. Without any changes to the default ADC and clock setup, the ADC goes into "error internal" state when trying to read values. Any Ideas why? I didn't touch…
DaveR
  • 21
  • 2
0
votes
1 answer

STM32H7 | Portenta H7 Data missing during DMA transfer (ADC to Memory)

I'm currently working on STM32H747XI (Portenta H7). I'am programming the ADC1 with the DMA1 to get 16bits data at 1Msps. I'm sorry, I can't share my entire code but I will therefore try to describe my configuration as precisely as possible. I'm…
0
votes
1 answer

Defining cores STM32H7

I am currently trying to program my PortentaH7 using the registers in the STM32H747 datasheet. So far I was only trying to access one core (M7) and now I want to try using the two cores at the same time. There are a lot of exemples on how to use…
0
votes
0 answers

STM32CubeIDE: What is the correct method to import drivers and middleware from example projects to the current project?

When we are importing an example project to the STM32CubeIDE, it probably uses .cproject and .project files present in the project directory to import required drivers and middleware. For example, here's a list of source files for an example project…
vb000
  • 81
  • 1
  • 5
0
votes
1 answer

Pinging Cortex-M7

I am currently making my first dual-core microcontroller project. I want to use the STM32H745BI. So I bought the STM32H745I-DISCO to develop my project on. One part of the project is making a webinterface to communicate with the machine. So I…
Marijn
  • 24
  • 2
0
votes
1 answer

STM32H747 Register implemented ADC with DMA

I'm using the H747 on a Arduino Portenta H7. I'm trying to implement the ADC and DMA together. The ADC should run in continous mode and scan over the 2 channels. void ADC_Init (void){ /******Enable ADC Voltage regulator******/ ADC1->CR&= ~(1<<29);…
jephan
  • 1
  • 1
0
votes
1 answer

GCC: include math.h function in bare-metal software on ARM (arm-none-eabi-gcc)

I am working on a bare-metal free standing software on a STM32H753. I'm not using neither the libc nor the crt. Here is the link command line: arm-none-eabi-gcc -T"xxx.ld" -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -ffreestanding -nostdlib…
Guillaume Petitjean
  • 2,408
  • 1
  • 21
  • 47
0
votes
2 answers

How does STM32 demo USB-DFU boot loader check if user code is loaded?

STM32 HAL demo USB-DFU boot loader contains this code: /* Test if user code is programmed starting from address 0x0800C000 */ if (((*(__IO uint32_t *) USBD_DFU_APP_DEFAULT_ADD) & 0x2FFC0000) == 0x20000000) { /* Jump to user application */ …
0
votes
2 answers

Why PC is loaded with address containing undefined instruction? - STM32H745

I have a problem enabling the MPU on the STM32H745 MCU. I wanted to just disable MPU, set region and then enable it. However, HardFault showed up. I thought it was a matter of wrong region settings. But after commenting, I noticed the problem occurs…
0
votes
2 answers

STM32H743VI jumps randomly in a nonflashable state

we are using a STM32H743VIT6 on a custom board with a JLink debugger. Out of the blue the processor jumps in a state where it isn't possible to flash the ECU anymore. The board is running but nether JMem nor our IDE (uVision) are able to access or…
Yamira
  • 15
  • 7
0
votes
1 answer

STM32H7 problem after changing the linker script file in order to store data into DTCM RAM

I am using STM32H755ZI MCU. This MCU has 1MB RAM which 512KB of it Can be directly accessed by M7 Core. I must store 45000 float samples the size of which will be around 180KB. My first problem is that after storing around 12000 samples my program…
0
votes
1 answer

STM32H723 - Problem with Serial RAM in memory mapped mode

I’m testing a 32Mb serial QUAD SPI RAM (ISSI – ISS66WVS4M8) with the nucleo – H723ZG development board. It works fine if I use all the QUAD SPI commands but my need is to use it in memory mapped mode. When i use the memory mapped mode configuration…
MatD
  • 97
  • 1
  • 8
0
votes
1 answer

STM32H7 and timer-triggered DFSDM conversion - how to?

For the last two evenings I have been trying to set up timer-triggered DFSDM conversion on STM32H7A3 MPU with no luck. Googling I hound no single complete example, perhaps because DFSDM is more advanced topic. Objective: fill the filter buffer with…