STM32CubeMX (MCUs)

Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32CubeMX 6.16.1 released

We are pleased to announce that the minor version 6.16.1 of STM32CubeMX is available. What is new in 6.16.1: This release addresses and resolves the issues outlined below: Users of STM32CubeMX version 6.13.0 and later may encounter a HardFault except...

Aimen1 by ST Employee
  • 631 Views
  • 0 replies
  • 1 kudos

STM32CubeMX 6.16.0 released

We are pleased to announce that STM32CubeMX 6.16.0 release is available. What is new in 6.16.0: Added support for new microcontrollers across the STM32WBA, STM32N6 and STM32H5 series and the STM32WL3x product line. The related new boards include the...

Aimen1 by ST Employee
  • 1562 Views
  • 5 replies
  • 7 kudos

STM32F7 ADC with DMA and watchdog

I've been trying to use the ADC of an STM32F7 so that when the level exceeds a certain threshold it start to sample the input continuously. Here is the configuration. Then I have implemented the code as followsvolatile ITStatus adc1OutOfWindow = RESE...

0693W00000WKitNQAT.png 0693W00000WKitSQAT.png 0693W00000WKitXQAT.png
JVALL.1 by Associate III
  • 1036 Views
  • 1 replies
  • 0 kudos

USB Tx-state Busy

Hi,I have an application running on STM32F429ZIT6 using USB stack to communicate with PC client.MCU receives one type of message of 686 bytes every second and receives another type of message of 14 bytes afterwards with 0,5 secods of delay between me...

Resolved! New STM32CubeMX has some major bugs ! (6.7.0)

Hello, Updated CubeMX as well as H7 libraries, and now see problems with clock configurator, as well as some LL function calls in system clock init has no definition !STM32H743XI should have 480MHz clock...  And if we generate code, we get problems ...

0693W00000WKgF6QAL.png 0693W00000WKgEwQAL.png
Linas L by Senior II
  • 2494 Views
  • 7 replies
  • 0 kudos

Resolved! Incorrect code generation

Hello,I've created a new project and it seems like code wasn't generated as it should.Modified only clock configuration and added FREERTOS to my project.I think here tasks should be started, instead I have duplicate for header:Is it normal, have I mi...

0693W00000WKa7zQAD.png
KWoźn.1 by Associate
  • 1150 Views
  • 3 replies
  • 0 kudos

Resolved! STM32CubeIDE 1.11.0 and CMSIS V2

In a STM32 project using FREERTOS with CMSIS V2, there is not automatic generation of thread creation calls in main function, likedefaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);Is it supposed to be the programmer who...

JCama.1 by Associate
  • 1463 Views
  • 2 replies
  • 0 kudos

UART4 RX not working using Interrupt or DMA mode

I am using custom designed board having STM32H745BIT6 and 25MHz external crystal with LDO Only as Power Selection from RCC settings.I am trying to check UART4 with pins PC10 and PC11 and flow control disabled.So Transmission is working well using Pol...

NDham.11 by Associate II
  • 1206 Views
  • 2 replies
  • 0 kudos

Resolved! STM32H7 System Clock initialization error

STM32CubeIDEVersion: 1.9.0Build: 12015_20220302_0855 (UTC)Processor: STM32H7My issue is when i start debugging my project, it crashes while configuring my System Clock Config, but there is no real error. The debug just says "Target Lost" and tries to...

DFaul.2 by Associate
  • 4825 Views
  • 3 replies
  • 0 kudos

lwip tcp server implementation troubleshooting

void Tcp_Task(void const * argument)   {   /* USER CODE BEGIN Tcp_Task */   struct netconn *conn, *newconn;   err_t err, accept_err;   struct netbuf *buf;   void *data;   u16_t len;     LWIP_UNUSED_ARG(argument);   conn = netconn_new(...

0693W00000WKVIYQA5.png 0693W00000WKVIOQA5.png 0693W00000WKVHkQAP.png 0693W00000WKVHaQAP.png
ark2 by Associate III
  • 875 Views
  • 0 replies
  • 0 kudos

LWIP server recovery after cable unplug/replug

Hello!i am working with the STM32H747, i have a cubeMX generated project which uses LWIP for ETH connection and managment.I've encountered an issue - i have a LWIP tcp server, which connect clients and runs properly. when i disconnect the ethernet ca...

yuri CH by Senior
  • 2889 Views
  • 3 replies
  • 0 kudos