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
Hello everyone,I’m working on a project based on the STM32H563RIT, and I’m encountering an issue related to SWV trace when using STM32CubeProgrammer.The firmware runs correctly in both debug mode and standalone. The problem appears only when I connect to the target with STM32CubeProgrammer and attempt to read the SWV trace. When I do so, the MCU freezes during the initialization phase, specifically inside MX_GPDMA1_Init(), where the DMA used for SPI communication is configured.As part of the investigation, I also provided the main.c file, where the full list of initialized peripherals and their initialization order can be seen.For testing, I tried swapping the initialization order between MX_GPDMA1_Init() and MX_SPI2_Init(). With this modification, the firmware starts even while connected to CubeProgrammer, but later freezes when SPI is used in DMA mode, since SPI ends up being initialized before the DMA.My questions are:Why does connecting with CubeProgrammer and reading SWV cause the
We encountered an issue with the STM32L562E-DK board when attempting to clear TZEN by changing the RDP level from 0 to 1 and then back to 0. Using the STM32CubeProgrammer, we can connect to the device via ST-LINK. The memory blank check indicates flash is empty, but the first byte verification fails during download. Additionally, the PC register value is 0xFFFF_FFFE, and the SP register value is 0xFFFF_FFFC.Could you please provide guidance on resolving this issue?
Created a number of files in your glorious new IDE.After opening and closing a few projects in at attempt to find a hidden menu option, I can now see my .project files in finder but attempting to open them with the IDE via double clicking shows NO project data, just a blank space where the explorer should be.Is this a design 'quirk' with an odd workaround where I can recover the file somehow?is it an issue with V2.0.0 which needs resolving?Or is it just an inevitable fact of dealing with this buggy rubbish software?I actually wouldn't have minded MX moving to a different platform if it was designed to move the whole stack away from this eclipse junk, but I don't understand why you'd expend effort making IDE and MX less usable whilst not bothering to do anything about the buggy or just plain weird behaviour of the IDE
I used the STM32CUBE FOR VSCODE preview version and enabled FreeRTOS in STM32CUBEMX. However, during the debugging process, the STM32CUBE RTOS STATE is empty and does not display any content, even when the program is paused.
Hello,I'm currently using eval boards B-G473E-ZEST1S + STEVAL-LVLP01 to evaluate a new MCU for brushless motor control. I'm using MotorControl 6.4.1 to generate the firmware project and MotorPilot 6.4.1 to profile and pilot our motor.I've used the interface in MotorControl to create/configure the motor I want to use with my tests. Everything works fine until I push the start button in MotorPilot : I immediately get a FAULT_OVER / Over Current.My brushless motor parameters are the following :Vnominal = +24VMax Speed = 17 000 rpmPole pairs = 2Max nominal current = 9.21 ARs = 0.1 OhmSpeed constant = 710 rpm/VI'm pretty sure there is something I'm not doing right when configuring the motor or when starting the motor control process. Do you have any ideas about what I'm missing ?
Hello I'm using TouchGFX on the STM32H757I-EVAL board and facing D-Cache related issues. The framebuffers are in SDRAM, other data is placed in AXI SRAM. D-Cache is enabled, the caching policies setup in the MPU are: SDRAM: Normal Write Back AXI SRAM: Normal Write Through The cache maintenance operations in TouchGFXGeneratedHal.cpp invalidate the entire cache, which seems a bit heavy handed, but work fine so far: void TouchGFXGeneratedHAL::InvalidateCache() { // Because DMA2D access main memory directly, the DCache must be invalidated // becuase it could hold a wrong image of the framebuffer. That's done // using the function SCB_CleanInvalidateDCache(). Remember to enable // "CPU Cache" in the "System Core" settings for "Cortex M7" in CubeMX // in order for this function call to work. if (SCB->CCR & SCB_CCR_DC_Msk) { SCB_CleanInvalidateDCache(); } } void TouchGFXGeneratedHAL::FlushCache() { // If the framebuffer is placed in Write-Back cached memory (e.g. SRA
Please refer to this thread that, for some reason, @FBL accepted as an answer (it is not) https://community.st.com/t5/stm32-mcus-embedded-software/usbx-audio-class-frame-done-callback-not-called/td-p/855262I'm seeing that when I try to start an audio flux from my PC to the USB Audio driver, I'm seeing the error handler being called with the following stack:status = _ux_device_stack_transfer_request(transfer, max_packet_size, max_packet_size); triggers the error as the status is 38 (what does it mean?). Inside the function, I've foundstatus = dcd -> ux_slave_dcd_function(dcd, UX_DCD_TRANSFER_REQUEST, transfer_request);which is the one that returns 38.In ux_api.h, the only value I was able to find that matches the return value was#define UX_TRANSFER_BUS_RESET 0x26 From here, I'm stuck as the ux_slave_dcd_function is defined as typedef struct UX_SLAVE_DCD_STRUCT { UINT ux_slave_dcd_status; UINT ux_slave_dcd_controller_type; UINT ux_slave_dcd_otg_capabi
It turns out the GDB shipped with TouchGFX 4.25.00 has an issue where it can't set the breakpoint in VSCode when the software is running.The only workaround is to set the breakpoints before launching the debug.The issue is reported it https://github.com/microsoft/vscode-cpptools/issues/13191#issuecomment-2787932838To fix the issue you can use the GDB shipped with the latest version of MYSYS2 https://packages.msys2.org/packages/mingw-w64-x86_64-gdbYou just run on the terminal pacman -S mingw-w64-x86_64-gdb In the launch.json you set "miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe", (or the location where it has been installed) and in the task.json in "env": {"PATH": "C:/msys64/mingw64/bin;"}
EVLVIPGAN65DF application note states that the provided reference design is compliant with IEC55022 Class B conducted EMI. How about radiated EMI? Is there any measurement in this regard?
Hello, I'm working with the STM32U575VGT6 as my primary MCU and need a USB-C DRP PD IC. I'm considering the TCPP03-M20 or STUSB1600AQTR. My question is, when the PD operates in sink mode (during charging), we intend to turn off all power supplies, including the MCU. Is it possible to use these ICs in sink mode without the MCU? Additionally, we need the PD to act as a source when external peripherals are connected to this board through USB-C.
I am working with Zephyr RTOS on the Nucleo-H7S3L8 board and have successfully flashed and run the blinky example on internal flash. However, I noticed that Zephyr does not provide official documentation for flashing applications into external flash. My question: Does Zephyr offer any official method or west command to flash applications directly into external flash, similar to how west flash works for internal flash?
i am getting the below error when running fresh install of stmcubeide 2.0.0 in windows 10. how can i fix this?"!SESSION 2025-11-27 23:17:13.722 ----------------------------------------------- eclipse.buildId=Version 2.0.0 java.version=21.0.8 java.vendor=Eclipse Adoptium BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86_64 !ENTRY org.eclipse.osgi 4 0 2025-11-27 23:17:16.137 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: C:\ST\STM32CubeIDE_2.0.0\STM32CubeIDE\configuration\org.eclipse.osgi\366\0\.cp\swt-win32-4966r5.dll: The specified procedure could not be found no swt-win32 in java.library.path: C:\ST\STM32CubeIDE_2.0.0\STM32CubeIDE;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility
So i was failing to properly flash my STM32N6 because in version STM32_SigningTool_CLI 2.21. I think it's because it doesn't align the payload. So when i flashed the board made with 2.21 it didn't recognize it and didn't load. In version 2.20 this doesn't happen. I don't know if this is a bug or a failed configuration. But i used the same command for both of them and it worked in version 2.20.
Lost links and routes, errors after migrating; etc... I reverted to 1.19.0 and 6.14 respectively
Hello! I saw in the release notes for MCSDK 6.4.0 that there is an "Added new Maximum Modulation Index (MMI) computation compatible for all sensor-less or sensor algorithms." How should I use overmodulation on the HSO?
I'm using STM32H723ZG I want to know if a Timer's update event can trigger SPI transfer without any software interrupts.This is the problem
Good day Folks, Firstly, is it possible to put NN weights on the external Flash, but not use it in memory mapped mode? BSP_XSPI_NOR_Init_t NOR_Init; NOR_Init.InterfaceMode = BSP_XSPI_NOR_OPI_MODE; NOR_Init.TransferRate = BSP_XSPI_NOR_DTR_TRANSFER; BSP_XSPI_NOR_Init(0, &NOR_Init); BSP_XSPI_NOR_EnableMemoryMappedMode(0); Secondly is it possible to run an AI model with NO flash access at all, i.e. to only use internal RAM for the case of a small model? I have an application that is already using the flash for storing data such as Logs & settings, via a XSPI Read/Write interface. However that interface is broken when configuring the flash to use the memory map. The image classification STM32N6570-DK example code runs fine and can use the external flash, however it then appears I can't use the Flash for anything else but the NN tables & weights. I then tried updating the .mpool to exclude using the Flash, but the model is then not working or giving the same inf
I'm currently developing an application with custom hardware using the STM32N657I0H3Q and MX25UM256, I can't seem to find the source files for the existing STM32N6 external loaders which use the MX25UM512. Any links to this or resources to point me in the right direction to get started would be appreciated!
I am using the STM32F469 development board to output MIPI video to a custom screen (GC9503CV), and the screen shows tearing.The left side of the screen displays normally, while the right side shows a jagged appearance. How should I locate and resolve the issue?
Hello,I am trying to erase flash bank 2 and then re-write with an incoming application. This appears to work that when I read back some of this sector it's changed to 0xFFFFFFFF, however when I restart or connect with STLINK it reads out as 0x00000000.I only get errors if I try to write too fast after erasing flash and on POR the flash is read back as 0x00000000I have tried unlocking flash and relocking after withHAL_FLASHEx_Unlock_Bank2(); // erase HAL_FLASHEx_Lock_Bank2(); // and or HAL_FLASH_Unlock(); // erase here HAL_FLASH_Lock();voltage range is correct. FLASH_EraseInitTypeDef erase_init; erase_init.TypeErase = FLASH_TYPEERASE_SECTORS; erase_init.Sector = 0; erase_init.NbSectors = 1; erase_init.Banks = FLASH_BANK_2; erase_init.VoltageRange = FLASH_VOLTAGE_RANGE_3; HAL_FLASHEx_Erase(&erase_init, &sector_error); any suggestions or help would be appreciated
Hello, I am trying to configure my STM32H723ZG to be able to read the value of a few current sensors. My main concern at the moment is the speed at which I need to read these. I'm hoping to be reading upwards of rate of 20kHz. My questions are about which method might be best, the standard way of reading the ADCs seems insufficient, I've seen online some methods are DMA and injected conversions. If anyone could provide some insight into what might be best and how to go about implementing them that would be great.Additionally, I wanted to ask how to determine an appropriate sampling time of the ADC. Thank you in advance for your help!
Hello,In one of our new PCBs we use a STM32L476VET6. For the RTC we use an external Oscillator (shown in the Picture)The drive power is set to the highest level.In our setup, the RTC only works at room temperature and with no probe connected. As soon as the oscillator is heated up to 65°C, it stops working. Same behaviour with the freezer spray. When a Probe for the oscilloscope is connectet to OSC_32_IN, the Oscillator also stops.We measured the frequency of the oscillator using the MCO-Output on PA8. This way we found out, that the frequency is within the specified range of the oscillator. When using a slightly higher load capacity the frequency drops out of the specified range. When the load capacitence is lowered (we tried 15pF) , the frequency rises higher than the specifiaction of the oscillator. This makes us certain, that the right load-capacitence is used.We also tested the oscillation-safety-factor by adding a resistor, three times the ESR of the oscillator in series to it. T
Device : STWIN.Box (steval stwbxcs1a) with DATALOG2 3.1.0 firmware. WIFI : Updated the MXCHIP firmware Objective: Running WiFi connection with APP and/or PnPL messages, Data retrieving with FTP. Currently this is my application as viewed in ST BLE Sensor app (iOS) I have first tried with the iOS app, it doesn't let me to use the Wifi connect button or disconnect. Then, I tried using PnPL messages with PythonSDK ( Board is connected by USB): message = PnPLCMDManager.create_set_property_cmd("wifi_config", "ssid", "Nothing")print(message)print(hsd_link.send_command(hsd_link_instance, device_id, message))message = PnPLCMDManager.create_command_cmd("wifi_config", "wifi_connect" , "password", "11223344")print(message)print(hsd_link.send_command(hsd_link_instance, device_id, message))message = PnPLCMDManager.create_set_property_cmd("wifi_config", "ip", "0.0.0.0")print(message)print(hsd_link.send_command(hsd_link_instance, device_id, message))time.slee
Hello everyone. I am using an F411 and I cannot figure out how this is supposed to work. I enabled USB_Device in middleware, enabled USB_OTG_FS, and set up line encodings based on the default STM32 example, but when I flash STM (or step through with the debugger) I run into an error during the initialization that says "The last USB device you connected to this computer malfunctioned, and Windows does not recognize it." Apparently this means I am not enumerating.I went through other posts on this forum. I made sure interrupts were enabled, that the clock is exactly 48 Hz, and I allocated extra space on the heap and the stack. Here is a picture of my clock.Here is my USB schematic. What does this mean? How can I even go about fixing this?Thanks
I have noticed that in my Application project there is no SystemClock_Config() generated by CubeIDE so my guess is that these settings should be inherited from Boot stage. If that is the case, should I also not initialize XSPI interfaces, memories and memory mapped modes if they are also initialized in Boot stage?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.