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
Hi there !i work with DS2482 I2c to one wire . After i send the command reset i need the read the status register until i find one bit at 1, so i wrote my routine in this way static uint8_t DS2482_Status_Register(void) { uint8_t register_status=0; uint8_t data=0; while(register_status !=0x02 ) { Master_Recive_Data(DS2482_Addr, &data, 1); // HAL_Delay(1); dato= data; register_status = data; register_status &= 0x02; } if(register_status != 0x02) { return HAL_TIMEOUT; } return HAL_OK; } when i run the program i recive error 4 from i2C formvoid HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c) { } But if in the code below i put one delay of 1ms everything work perfect . So there is one "elegant" way to resolve the problem ? or there are other solution ? Thanks a lotSergio
STM32CubeIDE Version: 2.0.0When trying to create a new project from the IOC of another project, I can't find a way to do it. Is this feature lost or BUG ? Thanks in advance.
HI, I've been trying to uploading my program to my Nucleo F411RE using STM32CubeIDE however I keep getting this error:"Log output file: "****"ST-LINK SN : 066CFF495365495067182356ST-LINK FW : V2J46M33Board : NUCLEO-F411REVoltage : 0.01VSWD freq : 4000 KHzConnect mode: Under ResetReset mode : Hardware resetDevice ID : 0x431Revision ID : Rev ADevice name : STM32F411xC/EFlash size : 512 KBytes (default)Device type : MCUDevice CPU : Cortex-M4BL Version : 0x0 Opening and parsing file: ST-LINK_GDB_server_btEB5C.srec Memory Programming ...File : ST-LINK_GDB_server_btEB5C.srecSize : 7.82 KB Address : 0x08000000 Erasing memory corresponding to segment 0:Erasing internal memory sector 0Error: failed to erase memory Error: failed to erase memoryEncountered Error when opening /Applications/"****"Error in STM32CubeProgrammerShutting down...Exit."I did accidentally short the board for a second and it was still working after that but after a minu
I'm considering migrating from STM32F469NIH6 to STM32F769NIH6. From data sheets it is apparant that these two MCU's have compatible pinout, however the pinout compatibility tool of STM32CUBEMX V6.15.0 doesn't show these MCU's as compatible, why is this?
Hi all.I want to do read/write on eeprom microwire 93c66 but there is no open source HAL library that I can find. how can I do it? I am new to stm32.Thanks
Hello, I’m starting a new design with the STM32H755. I also have the dev board (Nucleo-H755ZI-Q), but I do not have its schematic. So far, the closest schematic/design reference I’ve found is Figure 18 in AN4938 (“Getting started with STM32H755”). Could you please share more schematic references? I was thinking about the following: The complete NUCLEO-H755ZI-Q schematic and the BOM Any additional pages/details related to the Figure 18 schematic (it appears to reference a multi-page schematic, but we only have the first page in this document) Any other official schematic/reference design examples for STM32H755 that I could use as a starting point Thank you for your time and help!
Hi,I can't debug my application through GDB and ST-Link when the computer has no internet connection. I get this error:All bundles, both System and project, are up-to-date. When I connect to the internet, I can debug fine, but when I then disconnect and immediately try again (without exiting VS Code), I can't debug anymore.IMO debugging should be possible without an internet connection, e.g. when having to fix an error in the field.Regards,Niklas
Title edited from just "login" to identify which particular login is affected.I can't log in to my account through the program and I can't open code generation. Can you help me with this?
I am working on STM32N6570-DK board. I am trying to run a code for three channels ADC+DMA, INP8, INP10, INP16. The output at USART is coming out to be zero in all three channels. I am attaching the code here.
Wir haben keine Möglichkeiten die Sofware anzupassen. Wir brauchen fogende Eingänge : PWM-Enebel-DIR-Break möglichst mit Energierückgewinnung. Wer kann uns helfen und mit welchen Kosten müssen wir rechnen. Vielen Dank J.Negraszus English translation (by Google): We develop motor controls for operating room doors. State of the art - H-bridge. Tests with Spin 32G4-ACT or B-G431B-ESC1 could work well. We have no way to customize the software. We need the following inputs: PWM-Enable-DIR-Break, preferably with energy recovery. Who can help us and what costs should we expect? Thank you J. Negraszus Please note that the Official forum language is English - see the Terms & Conditions.
Hello,Looking at the HRS FreeRTOS example applications code for STM32WB55, I see several task configured with osPriorityNone as priority.This priority level is defined as meaning 'no priority, not initialized' in cmsis header.Why is it used here ? How are the tasks supposed to run if they don't have priority ? Does that in effect act as a very high or very low priority ?Regards.
Hello, I want to drive a BLDC motor using the EVAL-L9907 in combination with the Nucleo-401RB board, and I want to use the STM32 Motor Control Workbench. I have tried to configure a custom board for the EVAL-L9907 in the Motor Control Workbench, but I cannot set some of the functionality (e.g. current sensing, enable GPIOs). Is there a way to obtain a JSON file for the EVAL-L9907 that I can import into the Motor Control Workbench? Many thanks in advance.
I have a project for a battery-powered clock using the STM32WBA55 chip. The battery is replaceable; the device can sit unused on a shelf for up to 4 months without the battery. Since the STM32WBA55 doesn't have VBAT or VRTC pins, how can I keep the backup recorder, time, and date active?
After updating and restarting my PC with Windows 10, my old version of CubeProgrammer would not open at all. The version number is unknown. Other STM32 software works without any issue such as CubeMX and CubeIDE.I then tried installing the latest version, 2.21.0. The program launched (even when run as administrator), but it did not function fully. I attached a screenshot for reference. None of the four icons on the top-left responded, and I received error messages when clicking the icons on the right.I also tried installing previous versions from 2.16.0 to 2.20.0, but none of them worked. Specifically:Versions 2.16.0, 2.18.0, and 2.19.0 briefly showed the launch logo, then closed immediately.Versions 2.20.0 and 2.21.0 would open, but the program remained unusable.
I get no message if i send some bytes about my terminal tool. Because i have no schematic i dont know waht going wrong. Do i need an external supply( target ) or do i need pullup resistor or someone else? A target board isnt still connected.
Hi everyone,I am bringing up a custom board based on the STM32H743VIT6. I am trying to connect via ST-Link (SWD), but I am getting the standard "Can not connect to target" error in STM32CubeProgrammer.The Setup:MCU: STM32H743VIT6Debugger: ST-LinkInterface: SWD (SWDIO, SWCLK, GND, 3.3V detected)Power Supply: External 3.3V. Board voltage source to provide the necessary power for the system, something that ST-Link alone cannot do.The Problem: After failing to connect, I probed the power pins and found abnormal values:VCAP Pin: I measured 2.7 V on the VCAP pin. As I understand it, VCAP corresponds to the internal LDO output for VCORE and should normally be around 1.2 V. Does a reading of 2.7 V indicate an internal short circuit to VDD or a blown LDO?VDD Drop (Pin 75): On Pin 75 (VDD input), I have a known bad solder connection (trace compromised). I measured 2.3V on this pin.Question: Since the other VDD pins are correctly supplied with 3.3V, shouldn't the internal silicon power mesh maint
The EDS tool has been reporting "Unable to reach service for commercial transformer" now for a few weeks whenever you work on a flyback design with a transformer in it. Could this be looked into by someone?
My STM32H533VE works as PD Sink.We connected CC1/CC2 with DBCC1/DBCC2 (as AN5225), STM32 cannot power up with a USB PD adapter. The adapter supplies power for ~20ms then stops the supplying.If I remove the long time initialization code (LSE initialization), system can boot up and USB PD works fine (PDO can switch).Is this normal? if yes, I may move the LSE initialization later.
Hi everyone,I’m feeling a bit defeated by a task that should be "Hello World" level simple. I’m trying to get a basic printf to show up in PuTTY using a NUCLEO-G474RE, but I’m getting absolutely nothing in the terminal.I do this all the time with my NUCLEO-H723ZG using USART3 and it works like a charm. For the G4, I’ve switched over to USART2, but no luck.Here is my setup:Toolchain: CubeMX + CMake.The Logic: I've overwritten __io_putchar() with a HAL_UART_Transmit call.The Config: USART2 is enabled, baud rate matches PuTTY (115200), and the clocks seem fine.I even had a friend who uses G4 boards regularly take a look, and even he couldn't figure out why the data isn't hitting the ST-Link. It feels like I'm missing one tiny, G4-specific checkbox or jumper setting.I've put together a bare-bones repository with just the code for the printf here: https://github.com/mpek29/nucleoG4Has anyone else run into similar issues ?Thanks in advance for any pointers, I'm sure it's something silly I've
Hello everyone,I am developing an iOS application using the ST25SDK (converted/wrapped for Swift) to interface with the M24LR16E-R Dynamic NFC Tag.I am facing a blocking issue where any attempt to call readBytes() (which is used in TagReadMemoryGenViewController.readMemoryContent) throws a ComStSt25sdkSTException with error code BAD_PARAMETER.The Setup:Chip: M24LR16E-R (IC Ref: 0x4E)Platform: iOS (Swift) using CoreNFCLibrary: ST25SDK for iOSThe Problem: Upon investigation, the root cause appears to be that the ST25SDK mTag.getMemSizeInBytes() returns a memory size of 0 bytes. Consequently, when readBytes() is called, the SDK performs an internal safety check: if (address + length > mMemSizeInBytes) { throw BAD_PARAMETER; } Since mMemSizeInBytes is 0, this check always fails.Root Cause Analysis: The issue seems to originate in the iOSRFReaderInterface during the Get System Info command. The M24LR16E-R has 512 blocks (2048 bytes total). When using CoreNFC's native getSystemI
Hello, I am currently evaluating the STM32N6570-DK and am seeking clarification regarding a discrepancy I’ve encountered. I can confirm that there is a 48MHz crystal on board for the HSE. However, the default CubeMX projects generated by the board selector, as well as other example projects I have reviewed, all configure the input frequency to 24MHz. Could you please clarify what the correct input frequency for the HSE should be on this discovery kit? Thank you for your assistance.
I've designed a custom board and, I'm writing my own firmware that controls STPMIC.While writing a general-purpose driver library to enable future use in other hobby projects, I ran into a few questions.my own general-purpose driver library is: https://github.com/jay94ks/stpmic 1. MAIN vs. ALTERNATIVE.Does this switch automatically based on low-power requirements, or is it something that needs to be configured separately? Or is it the same behavior, but can one side be used for low-power operation when needed?The PWRCTRL_EN and PWRCTRL polarity bits are described as being used to switch between these two modes. If so, is it possible to switch between these modes solely through software, without any physical pins? 2. How many times can I program the NVM?I placed an order with JLCPCB while designing my hobby project board, but they only had the APQR STPMIC1 in stock, so I couldn't order the CPQR. So, I decided to program the NVM. Is there a limit to the number of times I c
Hello,i have project with a'n STM32H743II on a custom board. I use a J-Link Plus to debug and download the program, everthing was working fine. When i updated to version 2.0.0 downloading the program elf file failed. After initialization sequence and downloading the first block the debugger stops, because it can't load the elf file, but the file exists and the path is correct. Message window:Debugger console output: SEGGER J-Link GDB Server V8.80 Command Line Version JLinkARM.dll V8.80 (DLL compiled Oct 22 2025 11:56:02) Command line: -port 2331 -s -device STM32H743II -endian little -speed 4000 -if swd -vd-----GDB Server start settings-----GDBInit file: noneGDB Server Listening port: 2331SWO raw output listening port: 2332Terminal I/O port: 2333Accept remote connection: localhost onlyGenerate logfile: offVerify download: onInit regs on start: offSilent mode: offSingle run mode: onTarget connection timeout: 0 ms------J-Link related settings------J-Link Host int
Hello,I am using NUCLEO-H755ZI-Q (STM32H755) and I am observing a reproducible boot issue related to high system clock frequency.1. Hardware / EnvironmentBoard: NUCLEO-H755ZI-QMCU: STM32H755Power supply: USB (on-board)Debugger: ST-LINK (Connect under Reset)Supply configuration: LDOToolchain: STM32CubeIDE 1.19.02. Issue DescriptionWhen the system clock is configured to 480 MHz, the board fails to boot after power-on or reset.Flash programming and verification succeedImmediately after reset release, the target becomes unresponsiveST-LINK connection is lost When the same firmware is configured to 400 MHz, the board boots and runs normally.Interesting behavior:Power-on the boardFlash firmware configured for 400 MHz → boots normallyWithout removing power, rebuild and flash firmware configured for 480 MHzThe board runs normally at 480 MHzIf power is removed and re-applied, 480 MHz boot fails againThis behavior is fully reproducible.3. ObservationsThe issue only occurs after a cold power
Dear All,I am trying to minimize the u-boot and started to remove some features I don't need.I tried to remove whole video & LCD support, but run into issue that stm32mp1.c has a large patch, that applies LCD automatic recognition and extern reference to panel drivers. I am using Kirkstone, but it is also in the patch for Scarthgap.Patch: 0002-ARM-v2021.10-stm32mp-r1-BOARD.patchstm32mp1.c:extern U_BOOT_DRIVER(rm68200_panel);extern U_BOOT_DRIVER(hx8394_panel);(...)Here are feature I'd like to disable, but removing i.e. VIDEO_LCD_xxx features gives me a compile error for missing extern reference to rm68200_panel. CONFIG_CMD_ADC=yCONFIG_STM32_ADC=yCONFIG_FDT_SIMPLEFB=yCONFIG_DM_VIDEO=yCONFIG_BACKLIGHT_GPIO=yCONFIG_VIDEO_LCD_ORISETECH_OTM8009A=yCONFIG_VIDEO_LCD_RAYDIUM_RM68200=yCONFIG_VIDEO_LCD_ROCKTECH_HX8394=yCONFIG_VIDEO_STM32=yCONFIG_VIDEO_STM32_DSI=yI tried different things to remove, but neither works. Removing and/or modifing the whole patch is rather not worth th
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.