Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
It would be great if the STM32CubeProgrammer would do proper error handling for J-Link debug probes instead of crashing.Issue:Every times I try to the connect to a STM32 target that is not powered, or not properly connected the GUI pops up three error messages that need to be close separately and on the next connect it pops up another error message and gets stuck. So that the program needs to be completely restarted. Preferred behavior:STM32Cubeprogrammer show only a single pop up or only log a warning message and recovers from this situation in a way that that allows it to connect to a STM32 target again. This is no regression and has been observed since j-link probes are supported.The last time it has been observed is on a Windows 11 PC with intel CPU, targeting a STM32G4 MCU with STM32Cubeprogrammer v2.21.0, J-Link HW version V11.00(latest FW Apr 1 2025)
Hello,I am working with the STM32WL55CC (48-pin package). When I imported the official STM32CubeWL example projects from ST, I noticed that they provide both SINGLE CORE and DUAL CORE versions. But the board that these examples are listed under STM32WL55JCIX, which itself is a DUAL CORE device.However, when I create a new project in STM32CubeIDE for the same device (STM32WL55JCIX), CubeIDE always generates a Dual-Core project structure (with CM4 and CM0+ folders). There is no option to generate a Single-Core project, even though the example projects clearly include one.Also, the file structure of the official examples is very different from the structure generated by CubeIDE. Following the tutorials, example projects contain folders like Application/, Utilities/, and files like se-identity.h, But I am not able to find "se-identity.h"Since I am developing for the STM32WL55CC (48-pin) variant, I am having trouble understanding how to properly port the example code (which i
Im using STM32F411E-Discovery (MB1115D) for my project and i need to power it from an external supply instead of USB. I have a external 5V supply but not sure how plug it in, should i inject 5V directly into 5V pin and ground to GND on 25x2 header?
Dear all!i'm try to set up STM32H562RIT6 project, i use STM32cubeMX6.4, but it seem didn't support, i try to instal H5 package but still can't find MCU. some one know how to fix it, pls help me
As shown in the figure, the title of the window bar seems to have become garbled, even though its content was originally in English. I thought it was due to the software defaulting to a font that only supports Western characters, but changing all the available fonts did not solve the garbled text issue. Please help me; this is very important to me. Thank you so much!If there are similar problem cases, please send me the solutions along with them
Hi All,I have been working with the STM32H7R7 MCU for a while. I used the getting started manual of the application notes for Eclipse, but I could not set up the right debug environment for the STM32H7R7 deviceI used the cubemx to generate the boot, appli and ext memory. I used exactly the same ioc file (except the setting of the cmake vs cubeide), however I could not flash and debug the device without the right json file.I tried to build by myself, but I was not lucky enough to be succesfull. Also I have not found any examples on the web.Could somebody help me with a json file, environment for debug and flashing? Thank you very much in advance
Hi. I'm looking for a programmer for SPC564L60L5. The best would seem SPC5-UDESTK but it is not available for sale. Or maybe StellarLINK It will be ok for full programming and debugging support for this chip. Or maybe some other suggestions of a programmer who would support SPC564L60L5? Thank you for your help Best regards Christopher
Hello, Using Modbus master and slave communication, where Modbus master working fine, I have issue with slave device communication. Using HAL_UARTEx_ReceiveToIdle_IT() for receiving modbus frame, and HAL_UART_Transmit_IT() to transmit response. Currently doing only read for testing purpose. Issue: LPUART does not wakeup on receive interrupt. Here is the information below During Init() #define LPUART1_EXTI_ENABLE_IT() (EXTI->IMR1 |= EXTI_IMR1_IM28) LPUART1_EXTI_ENABLE_IT(); __HAL_RCC_WAKEUPSTOP_CLK_CONFIG(RCC_STOP_WAKEUPCLOCK_HSI); __HAL_RCC_HSI_ENABLE(); And here I will go to sleep mode if no rx/tx going on. So I will maintain the state busy until rx to tx process is complete. Once it complete, it will go to sleep mode. Here below is sleep mode logic //Preparation for next receive data RS485_RX_ENABLE();//Its macro to receive RX data on line. __HAL_UART_FLUSH_DRREGISTER(&hlpuart1); HAL_UART_AbortReceive(&hlpuart1) HAL_UARTEx_ReceiveToIdle_IT(&a
I am using the STM32 NUCLEO-G474RE control board and the NUCLEO-IHM08M1 inverter board for a motor-control application. I want to run a 6-step (trapezoidal) commutation algorithm, so I need to generate PWM signals from the control board to the driver IC on the power board(NUCLEO-IHM08M1).The driver IC (L6398) truth table specifies:HIN = 0 and LIN = 0 → Low-side ONHIN = 1 and LIN = 1 → High-side ONBut the STM32 timer provides complementary PWM outputs, where each channel only gives PWM + its inverted output, so it does not match the L6398 input logic. With complementary channels, the outputs are only HIGH or LOW for PWM—they cannot give “both HIGH” or “both LOW” on the same phase simultaneously as required by the driver.Therefore, I need guidance on how to generate the correct 6-step commutation sequence for the IHM08M1 board using the NUCLEO-G474RE, given that the L6398 requires both HIN and LIN to be controlled independently.
Hello, The datasheet doesn't seem to mention the function the tab on the back of the IC. Can I connect it to GND to thermally conduct the heat out? Thanks
When sliding the screen in TouchGFX, some widgets may experience rendering issues causing flickering. What could be the root cause, and are there any solutions?The images are all in the external QSPI Flash. Could this be the reason?
I'm working with an STM32F411 and trying to run two I2S master-receiver interfaces (I2S1 and I2S2) at the same time, each receiving data from a pair of PDM microphones using DMA circular transfers.However, I found a very strange and extremely hard-to-debug issue:Observed abnormal behaviorWhen only one DMA is enabled, both I2S1 and I2S2 work correctly.When both I2S + DMA are enabled at the same time, the following happens:If I2S1 has no microphone connected, it correctly receives all zeros.If I2S2 does have a microphone connected, then I2S1 suddenly starts receiving non-zero data, even though no microphone is connected to I2S1.It looks like I2S1 is receiving data that actually belongs to I2S2’s DMA buffer.Sometimes the behavior changes depending on the order of calling HAL_I2S_Receive_DMA().Both DMA buffers are allocated as global arrays (4 × 512-word buffers).I also tried disabling JTAG on PA15 (I2S1_WS), but the issue still exists.DMA configI2S1 RX → DMA2 Stream2I2S2 RX → DMA1 Stream3
Hello everyone, I’m new to STM32 and I’m currently stuck with using timers.I’m working with an STM32F303RE, and the goal of my project is to generate 6 signals at 100 kHz (high time between 100 and 500 ns), each phase-shifted by 60°. These signals will be used to phase-shift power commands, in order to limit current spikes by staggering their switching times. For now, I’m focusing on generating just a single 100 kHz signal with a longer high time so I can easily observe it on an oscilloscope (precise timings are not important at this stage). To generate the signal, I thought about using the combined PWM mode of Timer 1. If I understand correctly, this mode allows the output to go high when the timer reaches CCR1, then go low when it reaches CCR2, and remain low until the ARR is reached or the timer restarts. This method has the advantage of potentially generating 2 (or 3?) signals using TIM1 and CCR1–6, and makes it easy to handle phase shifts. I have already tested
STM32 MCUs hide surprisingly useful hardware features that can save you CPU cycles, lower power, make multi-core life easier, and fix intermittent bugs — if you know they exist. This article reveals 5 “hidden” STM32 features (with concrete examples and code) that even experienced MCU engineers often forget, and exactly how to use them safely in production. Feature 1 — Fast-mode Plus I²C (FM+, up to 1 MHz) Fast-mode Plus (FM+) is an I²C mode that supports communication speeds up to 1 MHz, which is faster than Standard mode (100 kHz) and 2× faster than normal Fast-mode (400 kHz). Why does FM+ exist? Standard 400 kHz I²C couldn’t keep up with: High-speed sensors High-refresh displays Real-time control loops Large configuration registers in ICs Interrupt-driven or polling-heavy systems FM+ allows faster transfers without switching to SPI. Why is FM+ “special” in STM32? Most STM32 MCUs have: Dedicated FM+ pins (because they need stronger current capability) Hardware fil
Hi, I need a little explanation about what is wrong behind my reasoning..I am using STM32F411. reading, two inputs of ADC in scan mode over circular DMA triggered via TIM2 update event.TIM2 is triggering ADC at 100KHz, so I have 50Khz sample rate per adc input. At input of both ADC channels I connected signal generator feeding 1Vrms sine @20KHz.Everything works ok, I am using printf of both channels over (USB-CDC) as and I can see two sinusoide signals on serial plotter. I am using this serial plotter:https://web-serial-plotter.atomic14.com/ Now the problem and confusion starts here:If I change only TIM2 frequency to 10KHz, I am getting 10X lower sample rate also (now 5KHz pre channel, all checked with Logic Analyzer), but I still can see clear 20KHz sine at serial plotter, without degradation and this contradicts Nyquist theorem...How is this possible and what I am missing?
Hello,I recently updated my CubeMX version from v6.14.1 to the latest, and am no longer able to open the .ioc file. Selecting "continue", results in attempting to unzip DB.6.0.141.tar.bz2 where it hangs until failing.Selecting "migrate" results in the following error, "Range [14, 2) out of bounds for length 2".My team is seeing this issue on Windows and Linux.
So i'm trying to install X-CUBE-MEMS1 in the IOC file of a STM32N6-DK board. The problem i can't seem to install it? All the tabs are greyed out and have little red cpu marks by them. Is X-CUBE-MEMS1 supported on STM32N6 processors? When i go to the github page it also doesn't like there there's drivers for to many chips inside of it?* https://github.com/STMicroelectronics/X-CUBE-MEMS1/tree/main/Drivers
Hello! I am designing a wide input range flyback converter using the altair04-900 for my formula student team.For testing the switching behaviour, I simulated the ALTAIR04-900 using the schematics in the datasheet of figure 4-7. figure 4-6 shows results comparable with the values specified on the datasheet- with Idss(off) being 104uA instead of 80uA. Simulating figure 7 I made the following assumption: the IC should actually switch. My reasoning: Icc has the value of the operating current as stated in the datasheet. However the simulation results show discrepancies (reference see „simfigure7“); Icc has the expected value, but voltage at ZCD never goes above arming threshhold, therefore the IC should not be able to switch. My explanation: Some kind of brown-out, as Vzcd is below the internal clamping voltage as stated in the datasheet. Also notable: Vdc above 2.79V on COMP pin gives a converging error. Instead, I used a close value of 2.79Vdc. For further testing I altered figure 7 (ref
I've just received a brand new DK from Mouser and I've been trying to get the stock AI demo up and running. The camrea is connected, power is provided via a short USB-C cable on the 2nd USB connector (not the ST-Link one) and the jumpers changed over.When I launch the AI demo via the touchscreen, the camera feed appears but there appears to be noise on the display. The camera stream appears for a few seconds before the screen greys out.Video attached.
If on a STM32H747 the Cortex-M4 (BCM4 or BOOT_M4 Bit) is disabled by software, it is impossible to reactivate it with the STM32CubeProg v2.18.0 because the checkbox disappears in the user interface. But this happens only if you do a power cycle and reconnect to the target.
Hi,I've recently been trying to get an LRUN application up and running on the NUCLEO-N657X0-Q board. Similar to the posts in https://community.st.com/t5/stm32cubeprogrammer-mcus/stm32n6570-dk-unable-to-erase-external-flash/td-p/757897, I cannot access the flash for erasure, with errors indicating to verify flash memory protection. I currently have the BOOT0 jumper on 1-2 (for 0) and BOOT1 on 2-3 (for a logical 1), which should be putting me into the Development boot mode. For external loaders, I have MX25UM51245G_STM32N6570-NUCLEO selected. I've tried both full chip erase and sector erase, both giving me errors that tell me to verify flash memory protection.Please advise, I'm not sure what I'm doing wrong. This is my first time attempting to flash the memory.EDIT: I should've mentioned, I'm using STM32CubeProgrammer 2.20.0. I've tried this on both Windows 11 and Ubuntu 24.04EDIT #2: I have also attached the verbose log file after I hit "full chip erase" and a single
I aim TO drive a mipi display screen on STM32MP257F-EV1, so I have to understand the DRM framework.After flash the new firmware, I found that the modetset always shows errors, so I want to confirm whether the support in this aspect is OK? But watching your previous video, it can drive LVDS screen, so I feel very strange, is there anything else I need to pay attention to? STM32_Programmer_CLI -c port=usb1 -w ./flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp257f-ev1-ca35tdcid-ostl-m33-examples-optee.tsv root@stm32mp2:~# modetest -M stm failed to open device 'stm': No such file or directory as you can see, all are failed. root@stm32mp2:~# modetest trying to open device 'i915'...failed trying to open device 'amdgpu'...failed trying to open device 'radeon'...failed trying to open device 'nouveau'...failed trying to open device 'vmwgfx'...failed trying to open device 'omapdrm'...failed trying to open device 'exynos'...failed trying to open device
The first case concerns the DAC, by setting "Output Buffer" = Disable in CubeMX, it is enabled in code generation instead, i had to add "DAC1->MCR = 0x03" in the initializations. /** * @brief DAC1 Initialization Function * @PAram None * @retval None */ static void MX_DAC1_Init(void) { /* USER CODE BEGIN DAC1_Init 0 */ /* USER CODE END DAC1_Init 0 */ LL_DAC_InitTypeDef DAC_InitStruct = {0}; /* Peripheral clock enable */ LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_DAC1); /* USER CODE BEGIN DAC1_Init 1 */ /* USER CODE END DAC1_Init 1 */ /** DAC channel OUT1 config */ DAC_InitStruct.TriggerSource = LL_DAC_TRIG_SOFTWARE; DAC_InitStruct.WaveAutoGeneration = LL_DAC_WAVE_AUTO_GENERATION_NONE; DAC_InitStruct.OutputConnection = LL_DAC_OUTPUT_CONNECT_INTERNAL; DAC_InitStruct.OutputMode = LL_DAC_OUTPUT_MODE_NORMAL; LL_DAC_Init(DAC1, LL_DAC_CHANNEL_1, &DAC_InitStruct); LL_DAC_DisableTrigger(DAC1, LL_DAC_CHANNEL_1); /* USER CODE BEGIN DAC1_Init 2 */ /*
Hi, I started a new project with STM32U031C6. When I enabled Independent watchdog (IWDG), STM32CubeIDE generated the following line in the MX_IWDG_Init function: __HAL_RCC_IWDG_CLK_ENABLE();When compiling the project, an error is generated: undefined reference to '__HAL_RCC_IWDG_CLK_ENABLE'I could not find such a function either in the drivers included by STM32CubeIDE in the project or in the repository in the STM32CubeIDE installation directory.This function should enable the APB peripheral clock to the Independent Watchdog (IWDG), but I couldn't find anything for this purpose anywhere in the Reset and Clock Control (RCC) registers.Does this mean that the APB peripheral clock is always active for the Independent Watchdog (IWDG) and should not be enabled? In other words, is this function unnecessary and can I comment it out?I would be grateful for any help
HiI have seen mention of STM32Cube_FW_N6_V1.3.0 being released soon, and including important fixes to demos. Is there an expected released date?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.