Questions tagged [stm32f7]

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

164 questions
17
votes
5 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
  • 191
  • 1
  • 1
  • 6
16
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
  • 8,069
  • 15
  • 79
  • 141
11
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
  • 398
  • 2
  • 4
  • 14
10
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
  • 103
  • 1
  • 7
7
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
  • 398
  • 2
  • 4
  • 14
5
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
  • 1,092
  • 12
  • 32
4
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,451
  • 15
  • 33
4
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
  • 341
  • 1
  • 6
  • 16
3
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
  • 111
  • 2
  • 9
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
  • 386
  • 1
  • 12
3
votes
4 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
  • 8,069
  • 15
  • 79
  • 141
2
votes
0 answers

STM32F7x6 - Setting readout protection from code without power cycle

I am working on a custom battery powered board with a STM32F746 on which I would like to set the RDP option byte to level 1 from code. Basically, while booting the software checks if the option bytes are set correctly and if not it will reprogram…
2
votes
1 answer

STM32F746NG-Discovery : Program Stuck after first ADC read

I am trying to read ADC values from an arduino shield connected to my board. The Arduino shield is an already tested custom board which sends data when a contact between a sensor and a finger is detected. I developed a program using STM32Cube IDE to…
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
  • 1
  • 10
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
  • 196
  • 2
  • 12
1
2 3
10 11