Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
After enabling USE_NEWLIB_REENTRANT in FREERTOS (pic.1) I get error notification in LWIP (pic.2) and also after I try to compile this settings (pic3). This error info disappear when I manually put in 1 in the fieldwith red error text (pic.2 > RTOS Dependency).Should there be a number 1 or some other number and is it some kind of bug? (CubeIDE Version: 1.12.1, CubeMX 6.8.1)
I'm porting an active application project from F4 to F7 (The customer had to change as of the problem to get F4 MCUs).The current project that was generated with CubeMX used FreeRTOS 10.3.1 as this is the version that the CubeMX support.Now, when I ported the project to F7 I found out that CubeMX use an older version of FreeRTOS (10.2.1).I was able to manually upgrade to 10.3.1 but then I lose the option to keep update and generate the project code from within CubeMX.My question is, can I somehow upgrade the version that CubeMX is using? After all, in the F4 version it is already included.
The CubeMX correctly allows selection of up to 28 conversions, but generated code fails when set above 16. The libraries sequencer scan length definitions end at LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS and ADC_SQR1_L_4 is not found in the libraries but exists in the STM32L1x programming manual. I should make it clear that I am using the LL (not HAL) drivers. The HAL implementation may work fine.
Hello, I am try to write the data for memory address in EEPROM using standard protocol I2C. we are trying in data write to memory Address and Driver IC read to operates the Sensorless BLDC motor. so I am working in this method. But am put in the data's for properly in the function but address was can't write properly. I attach my output waveform./* USER CODE BEGIN PV */uint8_t EE_buff[5]= {0x03,0x50}; // REG_ADD - 0X03 EECTRL , SIdata, eewriteuint8_t DEV_BUFF[5]= {0x02,0xB6}; // REG_ADD - 0x02 devctrl, enprogkeyuint8_t phres_buff[5]= {0x20,0x39}; // REG_ADD - 0x20 motorparameter 1, phase resistanceuint8_t IS_buff[5]= {0xCF}; // REG_ADD - 0x23 ISDEN, ISDThr, rvsdren, rvsdrthruint8_t IPD_buff[5]= {0xF0}; // REG_ADD - 0x2A IPD_EN IPDCURTHR[]uint8_t OPL2_buff[5]= {0xF8}; // REG_ADD - 0x26 OPENL2CLS_THruint8_t Oplcur_buff[5]= {0xC0}; uint8_t ana_buff[5]= {0x02}; // ADD - 0x2B Analog_mode speed pin/* USER CODE END P
I have a project with STM32H743ZI, lwIP, noOS. I've read the document with the suggested settings for MPU, linker file, lwIP head placement and applied the changes to CubeMX generated code.Additionally, I have set the MEM_ALIGNMENT to 32 bytes and added a cache cleaning in the low_level_output function: static err_t custom_low_level_output(struct netif *netif, struct pbuf *p) { uint32_t i = 0U; struct pbuf *q = NULL; err_t errval = ERR_OK; ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT] = {0}; memset(Txbuffer, 0 , ETH_TX_DESC_CNT*sizeof(ETH_BufferTypeDef)); for(q = p; q != NULL; q = q->next) { if(i >= ETH_TX_DESC_CNT) return ERR_IF; Txbuffer[i].buffer = q->payload; Txbuffer[i].len = q->len; const size_t cacheLineSize = 32; uintptr_t beginAddrRounded = ((uintptr_t) q->payload) & ~((uintptr_t) (cacheLineSize - 1)); uintptr_t endAddr = ((uintptr_t) q->payload) + q->len; uintptr_t endAddrRounded = ((endAddr % cacheLineSize) == 0) ? endAd
HiI need to do some unit testing. As of 2023 What is the easiest way forward? Which tool is best integrated with CUBE ide?There are 2 use cases:Unit tests running on STM32 (here I just know of Tessy/Hitex, not open source)?unit tests running on a windows machine(like google test)?Thx
Hi,I would like to check a probable bug in STM32CubeMX, but for that I need a new installation, which doesn't load data from the previous installation. Xubuntu, VERSION="22.04.2 LTS (Jammy Jellyfish)" How to remove all files generated by STM32CubeMX?
I have a project with a STM32H7 part generated with CubeMX, but I want to copy the code to RAM after reset and then run it from RAM, because I want to change the flash where the code is running. How can I do this?I noticed there is a linker file STM32H723ZGTX_RAM.ld generated. I've used this in the build settings instead of the STM32H723ZGTX_FLASH.ld, but looks like it is still running the code from flash. Do I have to change or add something else or in the startup code?
The installer for the latest CubeMX is broken on Linux, as the resulting directory structure lacks permissions in the jre/ subdirectory:cassiopeia:/opt/cubemx# ll total 150384 drwxr-xr-x 8 root root 4096 Jun 23 16:00 db/ drwxr-xr-x 2 root root 4096 Jun 23 16:00 help/ drwxr-x--- 7 root root 4096 Dec 12 2022 jre/ drwxr-xr-x 2 root root 4096 Jun 23 16:00 olddb/ drwxr-xr-x 3 root root 4096 Jun 23 16:00 plugins/ -rwxr-xr-x 1 root root 153956002 Apr 19 15:31 STM32CubeMX* drwxr-xr-x 3 root root 4096 Jun 23 16:00 third_parties_plugins/ drwxr-xr-x 2 root root 4096 Jun 23 16:00 Uninstaller/ drwxr-xr-x 4 root root 4096 Jun 23 16:00 utilities/Unfortunately, it's not just the top directory, but lots and lots of files and directories further down as well. And no,chmod -R a+rx jreis not an acceptable solution.Also, the installer is unable to display the license agreement:──────────────────────────────────────────────────────────────────────────────── STM32CubeMX License agreement ──────────────
Hello, I am work with STM32G030F6p6 Microcontroller for I2C communication with DRV10983 Driver IC to controll sensorless BLDC ceiling Fan. For I2C communication ,I need to configure my I2C using STM32CubeMX respecting information in the driver, then I can generate the code and manage my communication using HAL library. I can update the motor parameters and operation settings by writing to registers for create in frame format in my code. so I am attach frame format in my code and I attach DRV motor parameters registers. so whether I need to transmit(I2C) the data Bytes or Frame format to communicate with DRV10983 driver IC. If you know anyone please help us.
How to setup so Device Manager puts in list?
Hello everyone, I am currently trying to test an sd card by writing and reading data from it. I have uploaded a copy of my main.c which contains my test function and some configuration. I've also uploaded the bsp drivers for the sd card. As of right now whenever I call f_mount it returns FR_NOT_READY despite me calling BSP_SD_INIT and FATFS_LinkDriver prior to this. If you have any questions or need more information please do not hesitate to ask.
Posted on May 20, 2017 at 16:58While working on a project based on STM32F202VG, I experienced intermittent and unexplainable problems with USB used with CDC class.Sometimes everything was working perfectly, but after power-cycling the board or the PC, opening the COM port failed with a Windows 'Incorrect parameter' error.After an in-depth analysis, I discovered a difference between correc' and incorrect initialization.The two sequences are identical up to a certain point. Then, there is a difference in a setup packet from the board to the PC.See the transcript from Device Monitoring Studio:GOODControl Transfer (UP), 2017-05-14 18:15:21,8528439 +0,0001177. (1. Device: STMicroelectronics Virtual COM Port (COM13)) Status: 0x00000000Pipe Handle: Control Pipe 00 00 00 00 00 00 00BADControl Transfer (UP), 2017-05-14 18:14:31,2491097 +0,0001700. (1. Device: STMicroelectronics Virtual COM Port (COM13)) Status: 0x00000000Pipe Handle: Control Pipe 80 64 06 2B 3E 50 1BThe only dif
It has been an issue since at least STMCubeIDE v1.2.In Pinout & Configuration -> GPIO, when changing the USER LABEL name, the input is ver slow with 1~1.5s delay between characters.You can enter a complete name with high speed with your keyboard, but the software will put the actual character once every second. It makes editing pin names very annoying to do. Backspacing characters is slow as well.
Good morning,I add a Custom Hid Device do my STM32H503 Project. In the USBD_Custom_HID_GetReport function, I gethid_event->ux_device_class_hid_event_report_id == INFO_GET_FW, but how can I send some Bytes back to the PC?Something like USBD_CUSTOM_HID_SendReport(SendBuffer, 2)... I can not find any example?Best, Klaus
Whenever I run cubemx (6.8.1) the GUI gets corrupted after a few operations. As you can see in the enclosed image. Any thoughts?My system info:OS Name Microsoft Windows 11 ProVersion 10.0.22621 Build 22621Other OS Description Not AvailableOS Manufacturer Microsoft CorporationSystem Manufacturer ASUSSystem Model System Product NameSystem Type x64-based PCSystem SKU SKUProcessor AMD Ryzen 9 7950X 16-Core Processor, 4501 Mhz, 16 Core(s), 32 Logical Processor(s)BIOS Version/Date American Megatrends Inc. 0420, 8/10/2022SMBIOS Version 3.5Embedded Controller Version 255.255BIOS Mode UEFIBaseBoard Manufacturer ASUSTeK COMPUTER INC.BaseBoard Product ROG CROSSHAIR X670E EXTREMEBaseBoard Version Rev 1.xxPlatform Role DesktopSecure Boot State OffPCR7 Configuration Elevation Required to ViewWindows Directory C:\WINDOWSSystem Directory C:\WINDOWS\system32Boot Device \Device\HarddiskVolume1Locale United StatesHardware Abstraction Layer Version = "10.0.22621.1413"User Name RALLYTRONICS\Joh
..
Hello,GPIO-STM32C0xx_gpio_v1_0_Modes.xml from STM32Cube_FW_C0_V1.0.1 is incomplete. Function definitions from PA15 to PB5, PB8 to PC14 and PD0 to PD3 are missing.Any chance for revised file?Thanks
Hello,while all other stm32 eaders provide RCC_CFGR_SWS_HSE|HSI|PLL, these definitions are missing in stm32g0b1xx.h from STM32Cube_FW_G0_V1.6.1Please add in the next revision.Thanks
Hi, I'm having trouble getting around the USB port stuck issue on the STM32F407VGT6, so I'm looking to get to know the STM32H743VIT6. The problem is that I believed that the clock of this STM32H743VIT6 was 480MHz, but the generator says it has to be below 200MHz. Is this correct?
Hi everyone, my name is shekhar. I have to interface Dp83620 with STM32 in RMII mode. CubeMx supports only LAN8742. Can I get support for dp83620 driver code for STM32 in RMII mode? Thank you.
STM32CubeMX sets Timer 2 CC1E bit in the CCER register even when I select "Channel 1 Output Compare No Output"For Output Compare No Output Channel 1 I select "Frozen (Used for timing base)".I discovered this when trying to use the TIM2_ETR pin as a source for the clock. The input clock is killed when the HAL libraries set CC1E.Is this a bug in the cube or am I just getting the setting wrong?
When I create a new project in CubeMx 5.3.0 for the STM32H745-DISCO board with or without default peripheral initialization and configure, for example, pins PA8 and PF8 as GPIO_Output, they appear on the list of GPIO pins, but the function MX_GPIO_Init() in main.c generated by CubeMx doesn't have any initialization code for those pins and the corresponding ports. CubeMx generates the correct code for GPIO pin initialization for single-core MCU's, such as the H743, but it seems like it doesn't work for the dual-core MCU's such as H745.
I'm using STM32CubeIDE 1.11.2 and STM32CubeMX Version: 6.7.0.I have a question regarding the implementation of the SDIO SD card in 4 bit mode on a stm32F407 cardI am using the following configurationSDIO Global interrupt, SDIO_RX and SDIO_TX DMASDIOCLK clock divide factor 5 Unfortunately it doesn't work. The f_mount function returns an error (Error SD card) On the other hand if I replace SDIO_BUS_WIDE_4B by SDIO_BUS_WIDE_1Bline hsd.Init.BusWide = SDIO_BUS_WIDE_1B; as shown the program works.
Have STM32H7B3 Discovery Kit.Used CubeMX to create IAR project.Integrated USB_Host_Library.Have USB mouse connected to OTG HS port.Find that USB initialization eventually triggers a configASSERT(pxUnblockedTCB) in source tasks.c function xTaskRemoveFromEventList.Observe the following sequence:USBH_Process is called for switch case HOST_IDLEUSBH_Process is called for switch case HOST_DEV_WAIT_FOR_ATTACHMENTUSBH_Process is called for switch case HOST_DEV_ATTACHEDUSBH_Process is called for switch case HOST_ENUMERATIONwhich calls USBH_HandleEnumwhich in switch case ENUM_IDLE calls USBH_Get_DevDescwhich calls USBH_GetDescriptorwhich calls USBH_CtlReqwhich in switch case CMD_SEND calls osMessageQueuePutwhich calls xQueueSendToBackwhich checks listLIST_IS_EMPTY is pdFALSEwhich calls xTaskRemoveFromEventListwhich calls listGET_OWNER_OF_HEAD_ENTRY which returns NULLwhich triggers configASSERTIt would appear the "if" at step #11 is contradicting the configASSERT at step #14.Suggestions?Edit: wha
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.