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
The CubeMX 6.16.0 is able to generate a CMake-project for an STM32H7 - great. A small conflict currently exists in the following two generated files [for a "basic" STM32H7 project]:- CM7/CMakeLists.txt:69# Add linked libraries target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE # Add user defined libraries )- CM7/mx-generated.cmake:81# Add libraries to the project target_link_libraries(${CMAKE_PROJECT_NAME} ${MX_LINK_LIBS}) The first specifies PRIVATEwhile the second does not - which is incompatible as per CMake. Can someone confirm this observation? Can this be made consistent in the future? If so, I would prefer the one with the scope keyword - but could also live without it here.
Hi everyone,I am working on a custom board based on STM32F407VGTX to control a BLDC motor, and I am looking for some guidance. My goal is to implement sensorless control (FOC or 6‑step) using this MCU, and I would really appreciate any example projects, application notes, or configuration tips (timers, ADC sampling, current sensing, etc.) that you can share.If someone has already done a similar BLDC project with STM32F4, pointers to code repositories or project structures would be very helpful. Thank you in advance for your support!Ashish
Hi everyone,I’m working with an STM32H7S3 microcontroller and an external Octo-SPI NOR flash IS25WX064 from ISSI (datasheet: https://www.issi.com/WW/pdf/25LX-WX032-064.pdf)My goal is to get this memory working with ExtMemLoader (including XIP support). I’ve gone through all the available tutorials and many of the forum threads related to ISSI 25LX/WX devices, but after many hours I still haven’t been able to generate even a single .stldr that doesn’t crash in the STM32CubeProgrammer.A few important points:This does not seem to be a hardware issue. I can successfully communicate with the flash and read the manufacturer configuration/registers via the XSPI peripheral.I have been following the ST tutorials for this MCU family (the ones that use the Macronix flash on the official demo board).In my case, when I try to adapt the code for the IS25WX064, the driver fails in the last check of step 9 of the EXTMEM_NOR_SFDP driver (the final verification step):After a lot of iterations,
I am trying to use the BlueNRG-M2SP module on a custom PCB, connected over a UART interface to my main processor, STM32G431KBT6, as a network coprocessor. Ideally, I'd like my main processor to collect data, process, etc, and then communicate with a mobile app over the M2SP via UART (data / flow control on DIO pins 4, 5, 6, 7, reset pin pin 19 nRESET). However, I can't figure out how to enable UART communication in the BLE2 SDK on CubeIDE.When I enable "Wireless BlueNRG-2", under the HCI_TL_INTERFACE" options, the only "BUS IO Driver" shown is SPI Full-Duplex, which I am not able to use. Thanks for any help possible.
I’m using the X-NUCLEO-BNRG2A1 in network coprocessor mode (UART), but I’m stuck trying to run the BLE_Beacon example.Here is what I have done so far:I followed the AN5651 guide using a NUCLEO-L433RC-P.Since BlueNRG-1ST-LINK does not work on Windows 11, I used RF-Flasher Utility to flash the DTM_UART.hex file onto the X-NUCLEO. I took this hex file from the STSW-BLUENRG1-DK packageThis part worked correctly, and the X-NUCLEO is now configured as a network coprocessor through UART.The problem appears on the STM32 side.The STSW-BLUENRG1-DK package includes several applications such as BLE_Beacon, but they are written for EWARM (IAR) and are not integrated into CubeIDE.I tried flashing BLE_Beacon_NWK_UART.hex to my NUCLEO STM32 board using CubeProgrammer, but after it configured, the communication with the module doesn't work. I assume this is because the application is configured for the NUCLEO-L476RG, not the L433, so the pins or hardware settings do not match.As a result, I’m stuck and
Hello,I'm slightly confused about the options in the STM32CUBE VSCode extension Project setup window.From the left dropdown i can select the Project, where i have options x, x_AppliSecure, x_AppliNonSecure and x_FSBL, for each of the left options, i can select Secure, Secure-only and Non-secure from the right dropdown for the Security model. I haven't found documentation which describes what do these options mean.For example, if i select x_AppliSecure from the left dropdown and Non-secure from the right drop down, which sounds like a conflict, what happens? In which scenario should i choose which of the 12 available Project-Security model combinations? Also, I assume that Secure means Secure + Non-secure, as Secure-only must mean secure only and Non-secure probably means Non-secure only?In the same window, multiple rows can be added to the list from the + button in the bottom right, what do the rows represent?Thanks!
Hello! I need help. STM32L073RZT6 MCU.How can I write, for example, 2 times 8 Bytes into any second half-page of flash memory?Every first page is recorded successfully and read successfully. For example, I write 8 Bytes of data to the beginning of the _writeBuf buffer (half page size) (fill the rest with zeros), erase the entire page of interest (*(__IO uint32_t *)_write_address = 0;), write _writeBuf to the first half page, the recording is successful. Write a next 8 bytes of data to _writeBuf after current 8 Bytes of data and I write it down in the first half page in the same way, it also goes well. With a similar operation, the first 8 Bytes are written to any second half page successfully, but when the next 8 Bytes are written to any second half page, the NOTZEROERR error occurs.
Both in the manual and in CubeMX, it is shown that my microcontroller, has the ability to configure the FMC, for an asynchronous muxed PSRAM interface.However, in the manual I can only find the timing description for the asynchronous NOR Flash and for synchronous NOR/PSRAM.Am I missing something here, or is it missing in the manual itself?
When enabling 2 ADCs , ADC1 and ADC2 of STM32U5A5 ,both in Independent mode . The RCC enabling in MspInit called only for ADC1 and not for ADC2. What causes , that If one decide disable generataion of call to MX_ADC1_Init() in CubeMx , in order to call it somwhere else , but still enable generation to call to MX_ADC2_Init() in CubeMx , ADC2 won't work untill MX_ADC1_Init() is called.
Hi.I am trying to test out a fault handler for our STM32G (right now, the fault handler just tries to determine the location of the code that caused the fault).If I force a fault (divide by zero) in "normal" non-interrupt handler code, I can easily read the stack frame, find the PC and determine the location of the fault (stack frame is located in the process stack).If I force a fault in an interrupt handler (USART1, using HAL code), the stack frame on the main stack does not make sense to me (what I think the PC is, does not point to a location in flash memory). If I add 0x50 to the address in the MSP, then I can see a stack frame with the correct PC.Is there a section in PM0214 that can explain what I'm seeing?I attached a few screenshots from the debugger in STM32CubeIDE that show the call stack and memory.In my example, the MSP in the fault handler points to 0x2001fde8, and the LR is 0xfffffff1. The stack frame I'm expecting to see is at 0x2001fe38.Thank you!
Hello ST Community team,on the MB2046 schematic, there is a button called B3 or Boot mode pin:But the UM3353 (chapter 7.9) mention only B1 and B2:Could you please correct this on the coming doc revisions.Best Regards.II
Hello, the values of my accelerometer axes are affected by temperature changes and require calibration at each temperature. What method should be used for compensation? How can Bias Drift and Scale Factor Drift be determined each time the temperature changes?
I am developing a TouchGFX user interface on a STM32U5G9 with a 24bit RGB LCD screen. I have developed the user interface on the STM32U5G9J-DK2 development board, where it works fine. I imported the TouchGFX project on my custom board the framework stops after the first full screen is displayed.As a test I have added a start-up screen with two colored boxes and a image in internal flash. I have configured interactions to jump to the main screen after 3 seconds. When I set a breakpoint inside model.tick(), it triggers before 25 ~30 times before it stops triggering. The other threads of the application run as intended (ThreadX). If I look at the thread list in CubeIDE, the TouchGFX thread has state ready, and it's run count stops increasing after the first frame is displayed on the screen. I compared both projects of the devboard and my projects in cubeMX, and I can't find any differences. I compared both IDE projects with winmerge, but also nothing found which could cause
Hello ST Community,Custom STM32MP2 board with STM32MP257FAK fails rootfs mounting from eMMC in HS200 (CRC errors), works at 52MHz DDR.In the device tree side only difference is removing HS200 property and added Max frequency to 52Mhz.&sdmmc2 { pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>; pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>; pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>; non-removable; no-sd; no-sdio; st,neg-edge; bus-width = <8>; vmmc-supply = <&scmi_vdd_emmc>; vqmmc-supply = <&scmi_vddio2>; mmc-ddr-1_8v; max-frequency = <52000000>; status = "okay"; };Attached hs200 issue Log How to debug further to work with hs200?
Hi,I'm searching for a MCU with one or two advanced motor control timers to control 1 or 2 bldc motors.For this purpose I use the MCU selection tool from here: STM32 family of 32-bit microcontrollers (MCUs) - STMicroelectronicsWhen I use the filter for one or two advanced motor control timers the MCUs from the STM32G series are never displayed and I don't understand why? How should I search for all MCUs with motor control functionalities?Thanks for every hint!Best regards,Roger
I am experiencing an issue when trying to use STOP3 mode on an STM32U575VIT6Q device mounted on a custom PCB. In fact, the MCU never seems to actually enter STOP3, even though I explicitly call:HAL_SuspendTick(); HAL_PWREx_EnterSTOP3Mode(PWR_STOPENTRY_WFI); HAL_ResumeTick();The observed behavior is as follows:With Low-Power debugging enabled, STM32CubeIDE halts execution on the internal low-level _WFI() instruction.Without the debugger attached (free-running mode after BOR and JTAG detached), the MCU does not appear to enter STOP3 at all and continues normal execution after the call.From code inspection and debugging, it looks like the core is effectively ignoring the WFI instruction or is prevented from transitioning into STOP3 by some system or external condition.At the moment, it is unclear what might be blocking STOP3 entry. Possible areas I am investigating include:Pending or enabled interrupts/events that could immediately wake the core after WFIDebug-related side effects,
Hi,still pretty, pretty new to STM32CubeIDE, I'm trying to understand how it works by doing little things. So right now I'm trying to combine both debugger with a terminal both running in STM32CubeIDE.To include terminal in STM32CubeIDE I have followed instruction given here:How to use the STM32CubeIDE terminal to send and receive data (Knowledge Base) So far, running a little test program, I was succesfull doing it at least for very first debug session (i.e. after power cycling the Nucleo-Board). I quit the debug session with the indicated button shown on attached figure belowHowever, when I start a debug session a second time, I get always(!) the same error message (see below)The only way I found so far is to make a hard power cycle to the Nucleo-Board to make it connected in the STM32CubeIDE again.Well, in STM32CubeIDE, because I also installed Tera Term and here everything is working fine. But actually I'm a fan of having thing in one application that can be in one.So my quest
I have implemented a sensorless, six-step trapezoidal control with feed-back as zero crossing detection using back emf with the help of ADC on the nucleo-G431 board.The BLDC motor is A2212/13T, 1000 kV.Without a propellor, the motor is spinning, and speed is also changing.But with the propellor, the motor is stuck at starting, and it is not rotating.Give some suggestions on what could be the reason and what modifications need to be done on the firmware and software sides.
I am looking for example software for Display Port Alt mode for the STM32G0B1 eval board. I can't find it in the repository after searching most folders. The daughtercard schematic (MB1352) shows the DP alt mode connections, so I think this software exists and I am just not looking in the right place. Any suggestions on where to find the software example or even low level drivers for this would be appreciated.Thanks, Sonya
Hello ST Community team.As a user who visits this Community several times a day, I’ve noticed the mixed feedback regarding the full separation between STM32CubeMX and STM32CubeIDE. Personally, I fully support this decision, and I believe it brings a positive direction for the tools. At the same time, I would like to suggest keeping the CubeMX plug-in available as an optional component in future versions of CubeIDE, so that users who prefer the integrated workflow can still enable it if they wish. This could help accommodate the different preferences within the community. Thank you for your continuous work.Best Regards.II
Hi everyone,I am searching for LT spice model of SMA6T28CAY diode. can someone please help me to find this and integrate in LTspice application. Best Regards Vedanth.
Good afternoon everyone,I am currently working on a 1 kW Dual Active Bridge (DAB) converter with an input voltage range of 360 V–400 V and an output voltage range of 32 V–60 V. My objective is to design the converter with Zero-Voltage Switching (ZVS) enabled over the widest possible operating range, particularly under light-load conditions.I am facing challenges related to the magnetizing inductance (Lm) calculation, which plays a critical role in achieving ZVS at light load. I would greatly appreciate it if someone could share the methodology or equations to determine the optimum value of Lm to maximize the ZVS operating window under light-load conditions.Additionally, I am encountering an issue in my LTspice simulations. Theoretically, reducing Lm should increase the ZVS range; however, in my simulation results, the ZVS window decreases as Lm is reduced. I would appreciate any guidance on identifying possible causes or mistakes in the simulation setup.If any experienced professional
In the lower-end STM32L4, covered by RM0394, SRAM is partitioned into two parts, SRAM1 and SRAM2.SRAM2 (besides being "special" in that it has ECC and automatic erase facities), is mapped at both 0x1000'0000 and at the end of SRAM1 in the 0x200x'xxxx area.In Figure 1 System architecture, SRAM2 does not have the connection needed for that second mapping, i.e. to the S-bus of the processor.JW
For the last several days I have been trying to get the virtual COM port [VCP] of my STLINK-V3 MINIE to work together with my NUCLEO-H755ZI-Q. After realising that the VCP_RX/TX pins are not connected to the MIPI10 connector CN5 and thus soldering on my own cables and measuring the signal using an oscilloscope [confirming the signals were the expected 3.3V], I thought it should work.However - even though the VCP was detected under Windows 11 and I double-checked the connection settings in my terminal application - I did not get any communication.The solution seems to have been, to reprogram the V3 MINIE with the "STM32 Debug+Mass storage+VCP" firmware [Version V3J16M9]. After that it worked flawlessly [without changing anything else]. Previously the "STM32 Debug+VCP" V3J16M9 firmware version was flashed to it.So my question is:- Did I overlook some configuration option?- Or is this a problem with the firmware and I should try to contact ST? PS: The STLINK-V3 MINIE was bought
I am using STM32G071RBT6. I am trying to implement encoder mode + output compare mode using same timer. Right now initially I get OC interrupt even when Tim_CCR3IF flag is 0 and once it get set it remains as it is. - Should I combine encoder and OC mode or- should I use another timer
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.