Questions tagged [stm32f7]

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

164 questions
2
votes
2 answers

FreeRTOS task priority and stack size

I have STM32F746ZG Nucleo-144pin board and generated the codes using STMCubeMx. I chose the FreeRTOS which is version 10.0.0 offered by CubeMx and the toolchain is SW4STM32. I made two tasks and the following is my function. My code here: void…
Hans
  • 398
  • 2
  • 4
  • 14
2
votes
1 answer

What is the difference between data, instruction, and flash CCM RAM on the STM32

Page 14 of this STM32F7 architecture overview document shows memory addresses for: FLASH-ITCM (unkown size on the F730 I'm using) DTCM-RAM (64KB) ITCM-RAM (16KB) What is the difference between these? A lot of examples show data going into DTCM. …
RobC
  • 502
  • 4
  • 17
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
  • 412
  • 4
  • 10
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
  • 95
  • 2
  • 10
2
votes
1 answer

Set DHCP options using LwIP in C

Where can I change the configs of the dhcp options when sending a dhcp request with the LwIP library? I need to set option 53 (DHCP message type (discover)), 61 (client identifier), 12 (host name), 60 (vendor class identifier) and 55 (parameter…
MasterRem
  • 112
  • 10
2
votes
1 answer

STM32 - Dangers of using Data Watchpoint and Trace (DWT)

Looking at the code that is required to initialize Data Watchpoint and Trace (DWT) on STM32F7: DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; DWT->LAR = 0xC5ACCE55; DWT->CYCCNT = 0; DWT->CTRL |=…
MajesticRa
  • 13,770
  • 12
  • 63
  • 77
2
votes
1 answer

STM32 Toggle PIN when target halted

I am using the STM32F7 series of microcontrollers and it would be most helpful to have some GPIO change value (either toggle, pulse, high-z, ...) whenever the core is halted by the debugger attached to the JTAG interface. Is anyone aware of such a…
Arne
  • 1,111
  • 2
  • 11
  • 22
1
vote
0 answers

Using the LSE clock of an STM32

I have been testing for weeks a circuit with a STM32G030F6P6TR, which has no high speed clock, as it is a TSSOP20 encapsulation. Only an LSE or clock bypass can be configured. I have tried with STM32Cube to configure the micro (I'm a newbie, I come…
Anto
  • 313
  • 1
  • 3
  • 13
1
vote
0 answers

How to debug IACCVIOL where all registers have been cleared?

I'm developing a complex and intricate app for STM32F746. I stumbled upon the following hard fault and I'm not sure how to find the origin of the problem : 16:05:51.832 HardFault : ExceptionFrame { r0: 0xffffffff, r1: 0xffffffff, r2: 0xffffffff, r3:…
Magix
  • 4,989
  • 7
  • 26
  • 50
1
vote
2 answers

Generic function typedef in C - how to get rid of initialization warning?

I'm experimenting with generic-like code and I have a function like this (a lot of not relevant code removed): typedef uint8_t (*struct_converter_t)(void *, char *); void convert_struct( struct_converter_t converter, // this is a function …
Kamil
  • 13,363
  • 24
  • 88
  • 183
1
vote
2 answers

Multiple definitions error in STM32CubeIDE?

I have been following along with this documentation for interfacing a digital camera module with an stm32f746g-disco board: Link to documentation The part I am following specifically is pgs 60-74. Everything ran fine up until page 68, after…
beyonson
  • 23
  • 1
  • 8
1
vote
0 answers

I have a problem reading ADC with DMA on STM32 F767zi. When I look into the buffer, all I see are zeros, and I do not know why?

The size of my buffer is 4096 and I want to fill the buffer with the adc values that are read. #define ADC_BUF_LEN 4096 uint16_t adc_buf[ADC_BUF_LEN]; I am using this function to start the reading process of the ADC using…
Kevin Le
  • 11
  • 1
1
vote
2 answers

Change Address STM32F722 Program

I'm very inexperienced in STM32 programming and want to ask about firmware installment with ST-Link-Utility. I've a flight controller that must be flashed with custom firmware. The firmware provided by developer now is compiled as hex file and has…
rajadaudz
  • 11
  • 3
1
vote
1 answer

STM32F767ZI nucleo board not connecting with USB

I am new to using the STM32 nucleo board. I have bought an STM32F767ZI nucleo board. I installed the STM-link utility V4.6 version and stm-link009 drivers. When I connect the micro-USB port of nucleo to my computer, its not getting detected. The COM…
Jayaram
  • 21
  • 2
1
vote
1 answer

Read data from USB Virtual COM in STM32 Nucleo-F767ZI [Ubuntu]

I have written a program to stream data through USB port CN13, using this video. I am not able to see the data on the USB Virtual COM Port. When I connect the ST-LINK and Virtual COM port, there is only one USB Device, ST-LINK, getting recognized…
Sourabh Misal
  • 23
  • 1
  • 7
1
2
3
10 11