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
I am unable to change the project name in STM32CubeIde, if i change it and try to open it i get error windows cannot find the file. They are all linked files, may be that is causing the issue, what changes i have to do avoid this error. The project is generated using MCSDK and after generation i am trying to change the project name in CubeIde.
I have a bunch of following warnings:c:/programs/ARMtools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.stm32/STM32F1xxxx/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_gpio.h: In function 'void LL_GPIO_SetPinMode(GPIO_TypeDef*, uint32_t, uint32_t)': c:/programs/ARMtools/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.stm32/STM32F1xxxx/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_gpio.h:343:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 343 | register uint32_t *pReg = (uint32_t *)((uint32_t)((uint32_t)(&GPIOx->CRL) + (Pin >> 24))); |in several LL headers.Can this please be fixed in some suitable way? One way to do that might be to replace the 'register' specifier by a macro, which would be defined based on the __cplusplus standard preprocessor macro and its value. A simple version would be to add#if __cplusplus >= 201703L #define register #endifto each header where this occurs, but I am not a C++/build-environment specialist so don't know whether thi
I am running STM32CubeMX2 (1.1.1) on a Mac (Tahoe 26.6.2) and I did (with some difficulty) get it installed and running. I configured a MCU (STM32C552CEUx) and generated an STM32CubeIDE project. No problem.I went back and copied the .ioc2 file, renamed it, and went to configure a different system. Everything was going fine until I tried to configure some new pins after adding middle ware (FreeRTOS and basic_stdio). I could not select pin functions in the graphic mode, table mode, or through activating the associated peripheral (I2C2) and updating the GPIO there. So, I closed CubeMX2 and restarted. Now I get the splash screens showing fine, but when they go away, I just get the spinning timer in the upper-left of an empty screen. In file, I can click Close Window which it will dutifully do, but then I have nothing. In view, Reload and Force Feload do not seem to do anything. Any thoughts as to how to debug this would be greatly appreciated.
Hello!I'm using an STM32H747 MCU on a custom board. We typically flash the STM32 from a Jetson using stm32flash over UART, and this process has worked reliably on over 50 boards.However, I recently discovered that a couple of boards from a new manufacturing batch, using the same MCU, are experiencing issues with the CM4 core failing to boot.To investigate, I used STM32CubeProgrammer to inspect the flash memory directly and found a consistent gap. The CM4 firmware starts at 0x08100000, but the region from 0x08100040 to 0x081002F0 remains erased every time the firmware is programmed using stm32flash.Interestingly, the memory regions before and after this gap appear to be programmed correctly, and the same issue occurs consistently on the affected boards.So far, i have found two MCU’s where this problem occurs and both have the same chunk of memory missing. I am able to fully flash successfully using the JTrace. Its just when we try to flash with the stm32flash tool that this fails.I was
ProblemOur team builds a product UI on TouchGFX 4.26.0. A growing number of our developers use Apple Silicon (arm64) macOS machines, but we can only build inside a Linux x86-64 container. The reason is that all host-side TouchGFX artifacts we depend on are shipped as Linux ELF x86-64 or Windows only, there is no macOS build. These are the four files we need macOS versions of: touchgfx/lib/linux/libtouchgfx.atouchgfx/3rdparty/libjpeg/lib/linux/libjpeg.atouchgfx/framework/tools/imageconvert/build/linux/imageconvert.outtouchgfx/framework/tools/fontconvert/build/linux/fontconvert.out Items 1, 2 are what we statically link; items 3, 4 are standalone CLI tools we run at build time. We already have the matching framework/include headers from the 4.26.0 release, so nothing else is needed on our side.Expected / requestedA macOS (Darwin) build of exactly those four artifacts, ideally as universal binaries (arm64 + x86_64). These are the same portable C++ sources you already compile for Linux and
Board / softwareSTM32N6570-DK (MB1939), STM32N657X0H3Q STM32Cube FW_N6 V1.4.1, ThreadX + USBX from the package (not X-CUBE) STM32CubeIDE, load-and-run development flow (ELF downloaded into internal SRAM by the debugger; no FSBL, no XIP, no external loader) USB2_OTG_HS configured as Host_HS on CN17, internal HS PHY OTGPHY2 clock = RCC_USBPHY2CLKSOURCE_HSE_DIRECT, 24 MHz HSE crystal CPU 600 MHz, AHB 200 MHz USBX: UX_MAX_DEVICES 8, UX_APP_MEM_POOL_SIZE 98304, USBX_MEMORY_STACK_SIZE 65536, only the CDC-ACM class registeredWhat worksA USB 2.0 mass-storage device (HP, VID 0x03F0 / PID 0x2003) enumerates reliably and repeatedly:[usb] idVendor : 0x03F0[usb] idProduct : 0x2003[usb] bcdUSB : 0x0210[usb] bMaxPacketSize0 : 64[usb] speed : HIGH[usb] state : ADDRESSED[usb] -- interface 0 class 0x08 (mass storage) 0x06/0x50[usb] ep 0x81 BULK IN mps 512[usb] ep 0x02 BULK OUT mps 512UX_DEVICE_ENUMERATION_FAILURE here is e
I found an ADC regression on `STM32H563RG` after upgrading from `STM32Cube FW_H5 v1.5.1` to `v1.6.0`.Setup:- MCU: `STM32H563RG`- Old package: `STM32Cube FW_H5 v1.5.1`- New package: `STM32Cube FW_H5 v1.6.0`- CubeMX: `6.17.0`Symptom:- I sample multiple external channels on `ADC2`, including `ADC2_INP0`.- Before the upgrade, `ADC2_INP0` measured correctly.- After the upgrade, `ADC2_INP0` no longer reflects the actual GPIO input voltage, while the other ADC2 channels still behave correctly.This is not a sampling-time or rank-order issue. The problem follows `ADC2_INP0` specifically.The regression appears to come from a change in the LL helper for Channel 0 GPIO switch control.In older FW_H5 code, `LL_ADC_EnableChannel0_GPIO()` always set `ADC1->OR.OP0`, regardless of the ADC instance passed in.In FW_H5 v1.6.0, that helper was changed to set `ADCx->OR.OP0` instead. On STM32H563, that breaks `ADC2_INP0`.What fixes the problem in my testing is:- still enabling Channel 0 GPIO switch cont
When training a standard model (e.g. `mobilenetv2_a035`, `pretrained: True`) for image classification on a custom dataset with 2 classes, training crashes at the first epoch:ValueError: Arguments `target` and `output` must have the same rank (ndim).Received: target.shape=(None,), output.shape=(None, 2)I’m working with: Windows, Python 3.12, TensorFlow/Keras 3My minimal user_config.yaml to reproduce the error:model: model_name: mobilenetv2_a035 input_shape: (224, 224, 3) pretrained: Truedataset: class_names: [class_a, class_b]training: dropout: 0.3 My analysis is the following:1. `get_mobilenetv2()` (`image_classification/tf/src/models/mobilenetv2.py`) correctly builds a binary head when`num_classes == 2`: `Dense(1, activation="sigmoid")`.2. `api.get_model()` saves the freshly built model and sets `cfg.model.model_path`.3. Because `model_path` is now set, `ICTrainer.prepare()` (`tf/src/training/ic_trainer.py`) calls `change_model_number_of_classes(self.model, self.num_classes)`.4.
Hi everyone, I am encountering an issue with the STM32G0B1RCTB microcontroller, specifically related to the "errata" concerning its dual-bank memory architecture.My project uses firmware structured as follows: a bootloader located at the beginning of the flash (0x08000000), an application located at 0x08006000, and a CRC data section—generated during the post-build process to ensure firmware integrity—placed at the end of the flash (0x0803F000).I need to keep the prefetch feature enabled; however, due to a known issue inherent to this microcontroller, the system crashes once the firmware exceeds a certain size.To resolve this, I decided to modify the option bytes to set the device to "single-bank" mode, which would allow me to keep the prefetch feature enabled.However, when the microcontroller resets (triggered by `FLASH->CR |= FLASH_CR_OBL_LAUNCH;`) to apply the new option bytes, the bootloader executes correctly (as it is located at the start of the flash), but the jump to the app
I am not sure but if this is a minor issue or should be fixed when working with STM32U083CCT6 MCU and those line is inside stm32u0xx_hal.c file.Note: I can not add picture or drag it i dont know why. * @brief Configure the Flash prefetch and the Instruction cache,* the time base source, NVIC and any required global low level hardware* by calling the HAL_MspInit() callback function to be optionally defined in user file* stm32g0xx_hal_msp.c. In the automatic generated comment lines it state that it was in stm32g0xx_hal_msp.c. If those kind of minor issues should be reported somewhere else , i use that place if i come accross the same situation again.(I am working with stm32u0xx by the way via CubeMX selection and code generation)
Are the 4 MSbits of the M24M04E-F slave address completely fixed at 1010? So incompatible with another I2C peripheral on the same bus sharing the same 4 MSbits slave address, yes? Is there a clever way around this? (I know it can be changed on the M24M02E-F.)
I am noticing a particular issue while measuring the internal temperature sensor using ADC on an STM32H743. Since my Vref tends to vary with temperature, I am internally sampling the Vref to measure the correct reference to the temperature sensing unit. In the main codeblock that calculates the temperature from the ADC values, I am using the built-in calibrated values for 30C and 110C. Please see below. My ADC is setup in the following way. static void MX_ADC3_Init(void){ hadc3.Instance = ADC3; hadc3.Init.Resolution = ADC_RESOLUTION_16B; hadc3.Init.ScanConvMode = ADC_SCAN_ENABLE; hadc3.Init.EOCSelection = ADC_EOC_SINGLE_CONV; hadc3.Init.LowPowerAutoWait = DISABLE; hadc3.Init.ContinuousConvMode = DISABLE; hadc3.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV4; // 64 MHz / 4 = 16 MHz // --- CRITICAL POLLING SEQUENCE CORRECTIONS --- hadc3.Init.NbrOfConversion = 2; hadc3.Init.DiscontinuousConvMode = ENABLE/*DISABLE*/; // Pauses sequence after each rank hadc3.Init.ExternalTrigCon
Hello,I am attempting to run the OpenAMP_TTY_echo_CM33_NonSecure example following this guide Modify, rebuild and reload the firmware but run into the following error when attempting to run the example.IDE ErrorError in final launch sequence: Failed pre launchFailed pre launchFirmware remoteproc load failed, please: 1. make sure that /lib/firmware on your target has space 2. make sure that /lib/firmware has write access > you can open a Console View for this..Serial Terminal Logs[ 82.376063] remoteproc remoteproc0: powering up m33[ 82.378336] remoteproc remoteproc0: Image is corrupted (bad magic)[ 82.381610] remoteproc remoteproc0: Boot failed: -22Run configuration I have attempted to use the .elf file as suggested here https://community.st.com/t5/stm32-mpus-software-development/error-using-cubeide-ro-run-an-example-application-for-the/m-p/721825 but get the a similar IDE error with the followin
Hello everyone! I am following the tutorial on st wiki on how to work with STM32MP257F-DK board. Everything was going pretty good, until the “Develop on Arm® Cortex®-M33” part. This is a really important part for me, because the main reason I chose this MPU is because of the additional low-power cortex M33 and M0 co-processors. The part where I am stuck is “Modify, rebuild and reload the firmware for A35-TD flavor”. I have successfully built the “*_sign.bin” file and populated the board with it by using the “Run_Configuration” button. However past 78% the process stops and shows an error that states:“Error in final launch sequence:Failed pre launchFailed pre launchFirmware remoteproc load failed, please: 1. make sure that /lib/firmware on your target has space 2. make sure that /lib/firmware has write access > you can open a Console View for this..”In the STM32MP2 system a log of these messages are displayed:“[ 2321.306087] remoteproc remoteproc0: powering up m0 [ 2321.307
We used to define STM32 pinout in STM32CubeMx since it's aware of all the possiblilities of the MCU.Then we manually need to transfer the pnout into Altium Designer Schematic. And to keep those in sync when design changes.So we want to automate that step if possible.Thus the question: How can I Import pinout generated from STM32CubeMx into Altium Designer Schematic.
Page 47 Figure 15. GND Plane: GND plan instead of GND planeGuidelines for oscillator design on STM8AF/AL/S and STM32 MCUs/MPUs - Application note Can’t attach a screenshot for some reason
I have many timers working on out H743VIT6 board, so only have Tim2, 5, 12 and above available.I have many forms of of timer triggered DMA working, but in this case as the system is near to max capacity, I need a DMA event scheduled for 52uS in the future WITHOUT using IRQs which are not time-stable enough for the purpose.So I found that timer 16 in table 98 of the RM0433 manual is show connecting to timer 2, but in CubeMX timer 15 shows no trigger source!So I though I would set up timer 5 to count down 52uS and trigger its DMA stream to write a half word to CR1 of Timer 15, that was setup to pace its own DMA stream. Now I can get tier 15 triggering and DMA transfering it I enable it via the end of event cllback for timer 5, but DMAing to CR1 of an diabled timer doesn’t seem to work.It’s a very complicated problem! // Arm one amplitude bank, started by a TIM5 countdown delay to trigger DMA write to enable a target timer with DMA streamHAL_StatusTypeDef ArmOneBank(uint32_t *pwm_values,
MCU: STM32MP215DAN3 (custom board, STM32MP2 series)STM32CubeMX versions tested: 6.17.0 and 6.18.1 — identical crash in bothSTM32Cube FW_MP2: V1.3.1Steps to reproduce:Open a working project where SDMMC1 is the boot device (A35 ROM + A35S(TF-A_BL2) runtime context checked) In SDMMC1 Mode and Configuration: uncheck A35 ROM and A35S(TF-A_BL2) In SDMMC2 Mode and Configuration: check A35 ROM and A35S(TF-A_BL2) (making SDMMC2/eMMC the new boot device instead of the SD card) Save project, click Generate CodeResult: Code generation crashes with the following exception, reproducible 100% of the time with this exact configuration: java.lang.NullPointerException: Cannot invoke "javax.swing.table.TableModel.getRowCount()" because "RifIPExtraTableModel" is null at com.st.microxplorer.mcu.rif.RIFService.getExtraTableModel(RIFService.java:341) at com.st.microxplorer.codegenerator.McuDataModel.getRIFInfo(McuDataModel.java:824) at com.st.microxplorer.codegenerator.McuDataModel.initMcuData(McuDa
Board: custom STM32N657Z0H3Q (not a Discovery/Nucleo)Flash: Macronix MX25U12835F, 16 MB, Quad (x4), 1.8 V, no DQSTools: STM32CubeProgrammer 2.22.0 and 2.23.0, LinuxWe need to program the external XSPI NOR flash (FSBL + application) using only USB serial boot / DFU, with no ST-LINK connection.This is a product requirement, not a bring-up convenience. On our board, entering development boot requires BOOT1 = 1, and BOOT1 (PA6) is wired as DCMIPP_PIXCLK and actively driven by an on-board FPGA. We cannot reliably force that pin without contending with the FPGA driver. USB serial boot needs only BOOT0 = 1 and BOOT1 = 0, which is the FPGA-idle state, so it is the only strap combination that is safe on this hardware. We attempted to relocate BOOT1 via OTP19 dev_boot_port/dev_boot_pin, and that attempt left the board permanently inaccessible. That is a separate open thread with no resolution so far: https://community.st.com/stm32-mcus-products-25/stm32n657-after-programming-otp19-dev-boot-port-
I am trying to understand the readout protection functionality in the STM32G4 series. When I read the G4 series manual, I get the impression that level 1 protection will protect the flash, option bytes, CCM SRAM and RTC backup registers from JTAG / SWD readout – but curiously not the regular SRAM.Have I understood this correctly?Furthermore, I understand that level 2 will protect the entire chip – but that this is irreversible. So, if I do that to a chip, I can never again use that one for debugging. Not even after a full chip erase, which I’m not even certain that I can perform. As a developer, I see this as pretty much bricking the board.If I am correct that RDP level 1 will not protect the regular SRAM from readout via JTAG or SWD, are there other ways to protect it from JTAG / SRAM probing?
Hello,I am using an STM32N6570-DK and I am seeing an issue when trying to start a TouchGFX application after programming the board.My setup is: STM32N6570-DK TouchGFX Designer 4.26.1 STM32CubeMX 6.18.1 STM32CubeIDE 2.2.0 STM32CubeProgrammer 2.23.0 ST-LINK firmware: V3J17M11 STM32 Debug+VCP I created a new project using TouchGFX Designer 4.26.1. The only additional component I added was a simple colored screen, just to have something visible when the application starts.I then generated the TouchGFX code from Designer and generated the project using STM32CubeMX 6.18.1 for STM32CubeIDE 2.2.0. The complete project builds successfully without any errors.To program the board, I do the following: Set BOOT0 = 0 Set BOOT1 = 1 Press the RESET button Use the LoadAll.bat script located in the project's Flash scripts folder, from the CubeIDE/Debug, to program the application The programming process completes successfully.After programming, I then: Set BOOT1 = 0 Press RESET However
Hello,We are currently implementing the STMicroelectronics PWD5T60 power stage in our SMT production and would like to ask for stencil design recommendations for this package (VFQFPN 12x12 with multiple exposed power pads). [st.com]We are currently experiencing significant solder voiding on the large exposed pads after reflow soldering.Our current process uses:Solder paste: KOKI S3X58-M650 Standard convection reflow processWe are planning to evaluate KOKI HF1200 as an alternative paste, but before starting trials we would be interested in ST's recommendations and experience with this package.Could you please advise:Recommended stencil thickness Aperture design for the exposed power pads Target paste coverage (%) Any specific PCB land pattern recommendations Typical voiding performance observed during qualification Available assembly guidelines or application notes for PWD5T60Has anyone worked with this device and successfully optimized the stencil design to reduce voiding?Any recommend
Hi,we are currently using STM32H745BIT6 208 Pin package, now this package is not recommended by ST for new designs, so we are changing to STM32H745II LQFP 176 pin package.is there a way to import the current project IOC file MCU to new MCU. how to do this. if I do again by creating new project it is a huge work. since we are in a production stage this change in new MCU will cause us several software related problem and it will consume again more time.please suggest how to import current project to new MCU Regards,srinath
Hi,I would like to share a solution that may help others using USBX Custom HID on the STM32H723.EnvironmentSTM32H723 STM32CubeMX 6.17 STM32CubeH7 V1.13.0 USBX + ThreadX USB_OTG_HS (Internal FS PHY) Custom HID 64-byte reports IN and OUTProblemThe device enumerated correctly and received HID SET_REPORT requests.A worker thread processed the received command and sent a response using: ux_device_class_hid_event_set(&hid_event); After the first IN report, the application appeared to hang.The CPU spent nearly all its time inside: OTG_HS_IRQHandler() and ThreadX tasks no longer received meaningful runtime.Debugging ResultsThe following registers were observed:DAINT = 0x00000002DIEPTSIZ1 = 0x00080040DTXFSTS1 = 0x00000000 This indicated that EP1-IN had a pending 64-byte transfer and the Tx FIFO remained blocked.HAL_PCD_EP_Transmit() returned:HAL_OKbut the transfer never completed. Root CauseCubeMX generated no FIFO configuration for the USB OTG HS peripheral.The following functions wer
We are considering using a WB05KN as a BLE coprocessor in an STM32H573 design. I found the section in your wiki describing paths for Bluetooth certification. It says that no testing is required if a precertified module is used, or the recommendations and layout in AN5526 have been followed to the letter.Separately, all intentional radiators (in the US) must pass FCC testing, but if one uses a precertified wireless module and specified antenna, then the incorporating product can simply cite the certification of the wireless module.I want to clarify… are these two sets of testing (Bluetooth qualification as discussed in the ST Wiki, and FCC intentional radiator testing) two different sets of testing entirely? That is, if we do a chip-down WB05KN design according to AN5526, would we still have to do FCC intentional radiator testing, even though we would not need to perform Bluetooth certification testing?If I’m understanding that correctly, is it then true that the only way to avoid FC
WATCH ON-DEMAND | STM32 Summit 2026
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.