Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
..
I'm working on a project using a STM32H747XIHx dual core processor. I believe I have the latest STM32CubeIDE and STM32CubeMX tools. How do I configure CubeMX to generate GPIO initialization code for my I/O signals?
STM32CubeMX version 6.7.0CubeMX initializes USART1 peripheral on NUCLEO-C031C6 by default.But USART2 is actually connected to ST-LINK VCP wire.
The usb fs works fine for me, but when I try the usb hs, it gives me error_handler(). I don't know how I have to put it to make it work.My configuration:I use stm32cubeide.I don't know if my configuration is correct respect to pull up and pull down, I think that yes, but it doesn't work.Thank you
If I include mx_chip wifi driver in my own project it never compiles. I am doing everything they are doing in Nx_TCP_Echo_Client example project. Now gave up on this. What dees "Check that this file is included by the driver source and not compiled directly" mean.Kindly help.
Trying to configure Dual regular simultaneous mode on STM32F746ZG Nucleo 144.Failed all the attempts. Really not getting any sample code and application notes. please help me on this. tried in cube mx. but don't know how to do the dual mode. please help me on this.
Hello , I am using STM Cube IDE for I2S communication between NUCLEO-F401RE and CUI MEMS microphone namely CMM-4030DT-26354-TR . I am current facing a problem to set a clock frequency for SCL pin of Nucleo board. The SCL clock frequency range for Microphone is between 1 - 3.2 Mhz. In the STMCubeIDE , I am not able to decrease the value of Multiplier (N) less than 100 of PLL and increase the value of prescaler(R) more than 7 .I am totally baffled for the configuration of I2C SCL frequency. Even I used HSE(External Oscillator of 8Mhz ) , I got the same problem. I don't get SCL frequency less than 14.28Mhz(for N = 10 and R = 7). The frequency I want is 1 Mhz for effective communication with Slave. In a nutshell, I am unable to set the desired SCL frequency of 1Mhz for MEMS Microphone for STM32F401RE-Nucleo Board.
STM32CubeMx version 6.7.0STM32Cube_FW_U5_V1.1.1STM32Cube_FW_U5_V1.1.1\Projects\B-U585I-IOT02A\Applications\USBX\Ux_Device_HID_CDC_ACM\Ux_Device_HID_CDC_ACM.iocCopying the ioc file to a new location, double clicking and clicking "generate code" shows the same problem
This is really a basic question, but nevertheless I haven't found an answer.I am confused primarily about visualization of PB8 and PG10 pins inside CubeIDE MX.When I create new project I would expect PB8 and PG10 looking "yellow" and also being defined as PB8-BOOT0 and PG10-NRST (second picture from web). The problem is that they don't look yellow, but grey (first picture from my new project). I also can't choose BOOT0 or NRST function for those pins.Am i wrong, if I assume that because they are grey, they are in their reset state and their reset state is: PB8-BOOT0 and PG10-NRST. Therefore there will not be any functional problem, as I want to have PB8-BOOT0 and PG10-NRST functionality. And the color mismatch is just some MX bug/new feature?
Hello,I start on STM32F107RC microcontroller.I installed SMD32CubeIDE v1.11.2.I created a new project with this µC, and I'm using FreeRtos.Bellow some basics configurations: I'm using as JTAG probe the PEMicro Multilink FXI installed requiered plugins: I created the launch configuration:Then I start the program. The first break is done into the "main()" like indicated into the laungh configuration.I can debug step by step (F5, F6...). I can set breakpoint to the main core functionIf I place a breakpoint into the main function, the debug stop on this breakpoint and I can resume the debug...BUT as soon as the osKernelStart() is called, If I click on "Suspend" to make a pause, all is ok, the soft stop on the "IDLE" task, I can resume (F8) debug step by step (F6) etc...Now, I try to place a breakpoint into a function called from a created task (GpioTask in my case). I get error.Sometime when I place the breakpoint, sometime, It break on the placed breakpoint, but I can't resume t
Hello,I'm new to using this ecosystem and I'm having trouble finding resources on how to get my ethernet working so that I can connect to AWS IoT. I'm not really sure what is platform specific or not in some the examples I found so I was wondering if there was a easy place to find this information.
Hello everyone and hope you all are doing well.I've been using STM32WB55 microcontroller with IKS01A3 expansion board for my latest project and while setting it up with shipped example project and ST Sensor App went flawlessly I ran in some weird errors while I was trying to start my new project from CubeMX configuration file. Compared to the default configuration of .IOC I included Vbat and Vref from ADC1, used auto resolver to resolve all the clock issues and then generated code. First I was met with error in file app_entry.c where on line:config_param.DeviceID = (uint16_t)DeviceID;config_param didn't have member named 'DeviceID'.I went to the config_param definition and added (uint16_t)DeviceID declaration inside of config_param and that fixed the problem but all the other errors were related to macros and I'm not sure why they are here and should I just start fixing them or is there a deeper configuration problem with my project?Macros in question are:#define CFG_BLE_LS_SOURCE #def
Hi, I am trying to use SDIO with DMA and TIM1 PWM with DMA on STM32F407VETx.After generating code with STM32CubeMX v6.6.1 I get these settings:with these settings SDIO with DMA works, but TIM1 PWM with DMA fails.After an update generating code with STM32CubeMX v6.7.0 I get these settings:with these settings TIM1 PWM with DMA starts working, but SDIO with DMA fstarts failing.How do I make both DMA work? What IRAM1/IRAM2 do I need to set?
STM32 community,I am the junior graduate electronics engineer who is taking over an important R&D project and need advice on ensuring the functionality of an existing circuit that is crucial for our company. Unfortunately, the lead engineer who developed the firmware for this circuit has departed as part of a dispute, leaving us without access to the source code. We do have access to the electronic design files such as schematics and board layouts.The device is using a STM32F103RCT6 mcu and I was not involved in the original development process, but am now being thrown into the cold here :\We already have other PCBs built but do not have the firmware loaded on these. We have an upcoming opportunity where this piece of equipment will not be in use during production and we would like to seize this opportunity to create a backup copy of the existing firmware in order to ensure we can continue to use and maintain the equipment in the future.I would like to mention that I already have e
I am developing a STM32 project with STM32G030K6T6 ADC channels but when I start setting the MCU, it allows only 8 ADC convertions (the datasheet describes there are 12 and the system configuration allows to add up to 12 channels) . However, I need all the 12 channels. How can I use them?
Hi,I have a project with an IOC configuring an STM32H733. In the IOC I configured the SPI6 in Full-Duplex Master. I also configured the BDMA channel 0 to serve requests of SPI6_TX. The project is pretty old and when I configured it like this I only enabled the BDMA channel 0 global interrupt (I did not really need to enable SPI6 global interrupt). Recently I wanted to make modifications to my IOC and I had to migrate the project to the STM32CubeMX V6.7.0 with STM32Cube FW_H7 V1.11.0. With this migration now it seems that the STM32CubeMX forces the SPI6 global interrupt to be enabled and I cannot disable it (it is grayed out). After some testing, I figured that this automatic force is caused by enabling BDMA for this SPI. I tried to find an answer without success in the release notes of the STM32CubeMX. I would like to know why the new version of IOC now forces the SPI6 global interrupt to be enabled. Can someone help me and shed some light on this? Thank you!
Using CubeMX to create a new project on the STM32L0X0 series. I need two UARTS, which this part offers. However, in CubeMX, when I try to enable the SWD, it creates a conflict is the SYS tab for "System Wake-Up 3". When I roll over this, it says it conflicts with "USART2: Asynchronous Mode" . I'm not sure what System Wake-Up 3 is; I don't see any reference to multiple instances of wake-ups in the reference manual. I also don't see a GPIO conflict; the SWD interface only uses PA13 and PA14 which nothing else needs. What am I missing?
I am using stm32l4r board to run some tests and i am generating my code with stm32cubemx, I am having an issue with the octospi parameters after investing with my colleagues and checking the documents we discovered it is a problem related to the delay block but i did not know how to fix it
I'm using NUCLEO-H755ZI-Q and I want to use USART3 on both M7 and M4 cores. The initializer is set to M7 as shown in the screenshot below. However, I can only get USART working on M7 but not on M4.On the other hand, If I set the initializer to M4, then USART only works on M4 but not M7. It seems like HAL cannot work without an initializer. I would like to know the correct way to use HAL that can work on both cores. Thanks!
How to interface SD card with STM32h743z1 nucleo borad ? Is there any working example? I generated code with cubeMx 5 and failed at the very first step.. I tried various threads regarding SD card and nothing helped me.card initialization itself giving an error. While digging i noticed the program is looping arround a Delay(2);Also when i measured the CLK at the SD card pin, it shows only 20Khz..MY application is to store 12 Channel adc values in every sec (1sample per second).
I've noticed that there does not seem to be a trigger output selection for LPTIM. Is there a default operation I am missing?I've tried making LPTIM as the source trigger for TIM5 for the STM32F410 in the CubeMX IDE but can't seem to get it to work.If this is possible, is there an example setup I can refer too?
I am using stm32f405 mcu and stm32cubeide.I'm beginner with cmsis v2 of rtos.i'm setting deferred interrupt task. so I want to set priority of deferred task.but I can't select "osPriorityISR".please help me.
From the block diagram of TIM15 I think it should be possible to configure both channels to input capture using the outputs of the analog comparator as input signals, activate the XOR block and select the resulting tim_ti1f_ed/TIM1_ED signal as the source signal for the slave mode controller. I am able to configure both channels to use the comparator output as input and set it to external clock mode 1.But CubeMX doesn't let me select TI1_ED as the trigger source:Is that a bug in Cube or did I misread the reference manual? In other words: to be able to select TI1_ED (or also T1FP1) as a trigger source, CubeMX falsely requires a a pin to be configured as TIM15_CH1. It doesn't seem to know that the input can be a completely internal signal.
Hi, i need to find a mcu with 2 usb, min 512k of total ram and min 1024k of flash.When i put RAM and flash on selector, the result is mcu without USB, but you can see on list many mcu with 2 USB.The result is worst if you put on selector directly 2 usb ( without flash and ram )... the mcu showed are different.Its a selector bug ?Sorry for my english !Regards
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.