Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Hello, updating STM32CubeMx to the last version with the last firmware version FW_1.28.1I have under vscode using makefile a compilation I was not having before /Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld:STM32F411CEUx_FLASH.ld:56: syntax error /* ****************************************************************************** ** ** File : LinkerScript.ld ** ** Author : STM32CubeMX ** ** Abstract : Linker script for STM32F411CEUx series ** 512Kbytes FLASH and 128Kbytes RAM ** ** Set heap size, stack size and stack location according ** to application requirements. ** ** Set memory bank area and size if external memory is used. ** ** Target : STMicroelectronics STM32 ** ** Distribution: The file is distributed “as is,” without any warranty ** of any kind. ** ***************************************************************************** ** @attention ** ** <h2><center>&copy;
Is there any difference if I create two freertos tasks by hand in my code or if I do it using the cubemx interface?Things like preventive checks, checks that the stacks do not overlap or are too big compared to the available memory?
The USB code for STM32H523 and STM32H533 generated by CubeMx v 6.12.1 (from STM32CubeIDE 1.16.1) does not work. It is missing a call to HAL_PWREx_EnableVddUSB() inside HAL_PCD_MspInit() The example code in:STM32Cube_FW_H5_V1.3.0\Projects\NUCLEO-H533RE\Applications\USBX\Ux_Device_CDC_ACM\Core\Src\stm32h5xx_hal_msp.chas it manually added:Can this be fixed in CubeMx, please.
Good morning , I have a problem on stm32: USART3 is impossible to put into available: the schematics of my nucleo 144 tell me however to use usart 3: I wanted to do it manually by turning directly the pins of PD9 and PD10 into tx nd rx but it doesn't want to turn on the usart3. I think I am missing something.
I am using a STM32 part on a Nucleo dev board. When I am looking and the main page in CubeMX I get an overview of the processor and its pins but I do not have a handy mapping to know which Nucleo pins are connected to which processors pins.Could we have an optional overlay to the existing diagram to show which Nucleo pins are connected to which processor pins. This would save me some time trying to track this down through the schematics.Many Thanks
ST-LINK_gdbserver has been a very important part of my Arduino development with ST micros. I've used it extensively with the STM32L071 and am wanting to use it with the STMU073. But I need to upgrade it for the newer micro. So I've upgraded my CubeMX and my CubeProgrammer.However, ST-LINK_gdbserver is nowhere to be found! Could someone please tell me where to find it? I've looked everywhere (I think) and done lots of searching. Any help would be appreciated!TIA
****Preliminary concern block START****Hello,Please help me understand any setting or IOC file change that can help me instruct STM32CubeMX to generate code which:A. Includes the Files from the GCC folder instead of RVDS folder (so that the code can be compiled using ARM / Keil Compiler version 6)?I currently have to modify the STM32CubeMX generated code for MDK-ARM V5.27 (or V5) to:Use MDK ARM compiler version 6Manually modify the generated UVPROJX file so as to:STOP using files PORT.C and PORTMACRO.H available in folder ..\Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM4F (path with reference to the UVPROJX file location) (note the word RVDS in folder path)Add path to the above two files which are instead available in folder Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F (note the word GCC in folder path)I am afraid that as soon as I regenerate code with help of the IOC file and STM32CubeMX, the UVPROJX will again start using folde
Hi amazing communityI am working with the evaluation board stm32f429disco 1 (the new on with display)I am working on the usb host function to read a txt file and then making custom bootloader for a project .I have found this amazing demo project working perfectly working https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32F429I-Discovery/Applications/USB_Host/FWupgrade_StandaloneThe point is that i want to work with cube mx for generating the code for other peripherals. Is there a way to create the ioc file starting from this project ?Is it possible that ST provides a ioc file for the usb host for this evaluation board? Thanks a lot for the help and support
Hello everyone,I’m currently working on configuring the memory mapping for the STM32G431KB3U and ran into a bit of a roadblock. I was expecting to find a memory management section under the Tools tab in STM32CubeMX, but I didn’t see anything there.Additionally, I’ve searched through the documentation for the STM32G431KB3U, but I couldn’t find any information regarding whether this feature is available or not.Could anyone clarify if memory management configuration is supported in STM32CubeMX for the STM32G431KB3U? Any insights or guidance would be greatly appreciated!Thank you!
CubeMX 6.12.1 STM32Cube_FW_F3_V1.11.5 on Linux Fedora 40---New "Basic" Makefile project generated .LD file missing RAM symbol and won't compile with this error: /usr/lib/gcc/arm-none-eabi/14.1.0/../../../../arm-none-eabi/bin/ld:STM32F303RETx_FLASH.ld:56: syntax error collect2: error: ld returned 1 exit status Diff against another project suggested these patches. Appears RAM string was somehow empty. Now it builds diff --git a/STM32F303RETx_FLASH.ld b/STM32F303RETx_FLASH.ld index 83b6f3a..0075b8c 100644 --- a/STM32F303RETx_FLASH.ld +++ b/STM32F303RETx_FLASH.ld @@ -53,7 +53,7 @@ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ -_estack = ORIGIN() + LENGTH(); /* end of RAM */ +_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */ /* Generate a link error if heap and stack don't fit into RAM */ _Min_Heap_Size = 0x200; /* required amount of heap */ _Min_Stack_Size = 0x400; /* required amount of stack */ @@ -144,7 +144,7 @@
hello every one, I have one STM32F407ZTE board with DP83848 as PHY. I want to use STM32cubeMX as initialization code generator. STM32F4 version is 1.27.1. I try with and without RTOS v2, but I can get ping.
Hello, I have designed my PCB with STM32F103CBT6 and a 16MHz crystal oscillator. When I generate code with CubeMX with the clock configuration like the one of the attached images, 'SystemCoreClock', a global variable shows it's 36MHz while it should be 72MHz. Also, the led blink interval should wait 1000ms while it does only 500ms. It seems the clock is not running properly. As you can see in the last image, I set breakpoints at Error_Handler(), but I couldn't catch any error there so I assume the config was okay. Here is what I did:generate the code with the settings shown in the imagescopy all files under 'Core' folder and paste on PlatformIO project src folderadd the following two lines in the while loop HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin); HAL_Delay(1000); I use PlatformIO to build/upload/debug on ubuntu 24.04.I would appreciate if someone could guide me how to debug this. I'm a noob at electronics but I have a logic analyzer, 4ch 100MHz oscillosco
Hello Everyone, I am trying to run SDIO 1 bit mode with FATFS on a custom board but facing some issues.1) CUBEMX Version -> 6.1.22) API_VERSION -> STM32Cube_FW_L4_V1.16.0 3) IDE STM32CubeIDE4) Schematic of SD card connection is attachedI need to run SDIO 1 bit mode as I don’t have IOs leftThese are the tutorials and videos I followed but I am not able to get them to work. https://community.st.com/s/question/0D50X00009XkWt5SAF/solution-to-fix-stm32f4xxx-stmcubemx-firmware-v118-sdio-fatfs-dma-not-working-issuehttps://www.youtube.com/watch?v=I9KDN1o6924The following attached document contains the steps I followed. But it seems I am not able to get it working :\No matter what I do, I always get this response -> f_open() always return (FR_NOT_READY)Can someone please help me out here and provide some guidance? :(
In CubeMX, why are some chip pins shown in dashed boxes?
I am using STM32CubeMX and need to setnBoot0, nBOOT0_SEL, and BOOT_LOCK. (Stm32G031 series is being used and Pattern 11 is being used)I have difficulty connecting with the STM32Cubeprogrammer program,so I would like to process it with the CubeMX program if possible,but I would like to inquire about how to modify the register. Please let me know!! please.
Hi all,I'm starting to just get the hang of STM32 using a Nucleo-L476RG board.Discovering I2C, I'm finding the STM32CubeMX generates the I2C1's SDA/SDL pins for this board at PB7/PB6, not at all where they are according to the schematic (should be PB9/PB8). I've repeated the 'new project' steps a few times to cancel out me using an incorrect nucleo board.Connecting up a sensor to PB7/PB6 (using physical pins on rows CN7/CN5, I2C works just fine.All documentation I've found using this nucleo board, shows STM32CubeMX generating SDA/SDL on pins PB9/PB8.Am I doing something wrong here, or might this be an issue in the STM32CubeMX version (6.12.1.202409122256 I'm using?Thanks!
Hi! allI may not be at the right place but since I can't even start on the CubeMx, here it is.I'm a long time user of Microchip PIC product but since this is my first attempt to use the STM32 I suspect I will have some big time to understand all it's new setup. After looking several video on simple program, I downloaded the CubeMx 6.12.0 and I try those. But as soon as I try to push the blue "generate code" button at top far right, nothing happen. Same thing with the icon on top center "myST" login, nothing happen. I'd like to be able to use the STM32 board for larger and more memory space, so if someone can help me on this one so I can move on to the programming section, that will be great.I have the Nucleo-144 F429ZIT and STM32F4VE, and several smaller boards but never use them so far.My goal is to talk to the STM32F4VE to "full test " the internal W25Q flash memory.I also have the "St-Link V2" for those who don't have the link.P.S. The board is not yet connected, is this a pro
Hi, I'm experiencing some issues on Linux with code generation in MX. The system I'm running is:STM32CubeMX version 6.12.1Pop!_OS (Ubuntu based) version 22.04Generating code for a Nucleo-H755ZI-Q [although I doubt this matters] Specifically, when clicking the "Generate Code" button in MX, nothing happens and the following Java error is logged in the background: 2024-09-24 19:39:38,855 [ERROR] ProjectManagerView:732 - com.teamdev.jxbrowser.ObjectClosedException: Attempted to use a closed object.You're trying to call a method of a closed object. Usually, it happens when youcall the `close()` method of an object (or its owner) prior to calling methodsof that object.Another common cause of this exception is working with cached DOM or JavaScriptobjects. For example, if you navigate to another web page and try to calla method of a DOM or a JavaScript object from the previous page, you will getthis exception.It's also possible that the native Chromium process has crashed. In th
Good morning, in the user manual "STM32 Nucleo-144 boards" is written that the HSE clock is linked to a 8 MHz oscillator. But when I enable the HSE clock in the .ioc file, the value is 25 MHz. I don't understand if the HSE clock is 8 MHz or 25 MHz. Thank you
Hi there,I would like to customize the linker script generated by CubeMX.Right now, any changes to the linker file get overwritten when I generate code from CubeMX.Is there a way I can accomplish this? Thanks!
Hello,I use CubeMx to generate a Makefile project.However, whenever I regenerate the code, it overwrites the linker script (STM32H743ZITx_FLASH.ld in my case).Is there anyway to prevent CubeMx from doing this?Thanks,Dominic
CubeMX is mostly intended for (or mostly used by) noobs. Noobs are most likely to want to skip an HSE for any reason whatsoever, as it adds complexity to a learning process. So it would be nice if CubeMX would accept HSI as a solution for USB clock source and simply warn the user that this setup is not USB compliant and would not receive certification. A noob is likely to breadboard a bare mcu chip, not a professional design team. A noob is least likely to buy an expensive evaluation board that would already include an HSE (as opposed to engineering students enrolled at expensive colleges). It seems ST has set minimum requirements on its clientelle.
Hi,I am using an STM32F746-Discovery Kit with a Prophese GenX320 event-based camera.I am using the demo applicaiton provided by Prophese as a skeleton for my code. The application takes captured events from the camera and displays them on the STM's screen. I am trying to manipulate the application, so that events may also be sent via USB to my laptop - via CDC.I am having trouble intialising the HAL PCD driver, and am gettting an "undefined reference to to HAL_PCD_Init" error.I think my files are in the correct place and in the project path.
I am in work with a product firmware with STM32G030k8 with additional EEPROM M24C04 I coudlnt ble to instal the driver files . Is this the righ tway am doing,can any one please address this?I am not able to hightlight or install Thanks.
Hi Guys,is it possible to configure a peripheral in CubeMX without assigning all the pins (usually) required for that peripheral. This is a quite typical scenario, if a peripheral is used other than originally intended.E.g. I like to use I2S for efficiently and precisely generating the DATA signal for WS2812's or similar addressable LEDs. In this scenario only the I2S_SD line is required and I don't want to "lose" the additional pins by configuring them as I2S pins. But if I give one of the I2S pins another function, it will automatically disable the peripheral.Is there a way around this except for configuring the peripheral manually?Cheers,D.Frejek
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.