Questions tagged [stm32f7]

ARM Cortex-M7 based 32 bit MCU family from ST-Microelectronics. Relative of the STM32F4 family.

131 questions
13
votes
4 answers

STM32 - How to enable DWT Cycle counter

I am using the STM32F7-Discovery board and have been stuck at trying to enable the DWT cycle counter. From what I've seen online this should suffice for enabling it: CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; DWT->CYCCNT = 0; DWT->CTRL |=…
KenQueso
  • 151
  • 1
  • 1
  • 6
10
votes
1 answer

STM32 internal clocks

I am confused with the clock system on my STM32F7 device (Cortex-M7 microcontroller from STMicroelectronics). The reference manual does not clarify the differences between these clocks sufficiently: SYSCLK HCLK FCLK The reference manual reads in…
K.Mulier
  • 6,430
  • 9
  • 58
  • 110
9
votes
2 answers

Measuring clock cycle count on cortex m7

I have been measuring clock cycle count on the cortex m4 and would now like to do it on the cortex m7. The board I use is STM32F746ZG. For the m4 everything worked with: volatile unsigned int *DWT_CYCCNT; volatile unsigned int…
G. Johnsson
  • 93
  • 1
  • 6
6
votes
4 answers

How to change the UART baud rate after running on STM32 board?

I'm using STM32F746ZG and use five UARTs. All UARTs are working fine. Can someone tell me the procedure to change the baud rate on the USART once it has already been initialized? I'm using USART6 and initialized with 9600 baud rate. After booting,…
Hans
  • 170
  • 3
  • 12
4
votes
3 answers

How can I change the start address on flash?

I'm using STM32F746ZG and FreeRTOS. The start address of flash is 0x08000000. But I want to change it to 0x08040000. I've searched this issue through google but I didn't find the solution. I changed the linker script like the…
Hans
  • 170
  • 3
  • 12
3
votes
1 answer

Unit testing on STM32

I am looking for advice on how to do unit testing on my STM32F7 platform. What have people done in the past? What horror stories do you have? What would you do differently? What is problematic with my current plan? My Setup STM32 Nucleo-144 with a…
mprat
  • 2,321
  • 12
  • 31
3
votes
3 answers

Intentional receive complete UART DMA interrupt after specified timeout

I have configured a UART to receive in DMA mode where the size of the buffer is around 64 bytes. So, basically, the HAL_UART_RxCpltCallback() DMA receive complete interrupt will only fire when 64 chars are received. Is there a way in STM32 through…
Akay
  • 946
  • 8
  • 23
3
votes
1 answer

implementing LWIP multicast on STM32F7 + FreeRTOS?

I have a client/server LWIP program that works correctly with unicast communication however I want to use multicast features so I used IGMP library did the following: 1- in lwipopts.h: #define LWIP_IGMP 1 //allowed IGMP 2- in…
Kalkhouri
  • 301
  • 1
  • 4
  • 15
3
votes
1 answer

ST Micro HAL, stm32f7xx_hal_crc.c How to solve [Warning] dereferencing type-punned pointer will break strict-aliasing rules

In STM32Cube_FW_F7_V1.3.0 and still in STM32Cube_FW_F7_V1.11.0 I get the following warning when the compiling the stm32f7 HAL library with -Os or -O2. Note: -O1 compiles without warnings. [Warning] dereferencing type-punned pointer will break…
iamJP
  • 396
  • 1
  • 12
3
votes
3 answers

Does STMicro wrongly interpret the term "shadow register"?

I use the STM32 family of microcontrollers, more specifically the STM32F7 series. Currently I'm investigating the use of general-purpose timers. About double buffered registers. Microcontrollers sometimes make use of double-buffered registers. In…
K.Mulier
  • 6,430
  • 9
  • 58
  • 110
2
votes
2 answers

STM32F745 - HAL_FLASH_Program not writing to flash permanently

I am using HAL_FLASH_Program() to program an uuid into a specific address. I can verify that it writes successfully by reading from the same address. However, if I power cycle the MCU, the memory at that address returns to the original value. If I…
cuckoo
  • 79
  • 9
2
votes
0 answers

Problems with SD-Card and FatFs (Mounting, Opening Files)

I've got some problems with the FATFs library and the STM32F7 Series. I want to connect a SD-Card (32GB, SanDisk, FAT32) with the F746G-Discovery-Board to save some data on it. (at first .txt-Files, later read .csv Files to visualize some measuring…
Melissa123
  • 55
  • 7
2
votes
1 answer

Issue with frequency limitation on the Timers on STM32F7

I'm having issues setting the timers on the STM32F7 dissovery board to 500 Khz. I seem to top around around 370kHz for some reason. 'm toggling a GPIO pin with a scope to the input and simply changing the Period on the timer to monitor what's…
MaskedAfrican
  • 180
  • 1
  • 11
2
votes
1 answer

How to the same DMA Stream with different DMA channel on the Cortex-M7(STM32F746)?

I want to use SPI2 and UART4 peripherals with DMA but, as I see DMA1-SPI2-Tx and DMA1-UART4-Tx uses the same dma stream. SPI2_TX - DMA1_Stream4 (channel 0) UART4_TX - DMA1_Stream4 (channel 4) Is there any way to use the same DMA stream for the…
erenbasturk
  • 394
  • 2
  • 8
2
votes
4 answers

STM32F7 + FatFs = FR_NOT_READY

I am now using CubeMx 4.23.0 and FW package for STM32F7 1.8.0 MCU is STM32F746 on Core746i board. Everything is generated by CubeMx automatically. main.c: SCB_EnableICache(); SCB_EnableDCache(); HAL_Init(); SystemClock_Config(); …
ub0baa
  • 65
  • 1
  • 9
1
2 3
8 9