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
How do I decide which documentation to use for a specific problem, or for getting a specific information?
I have seen a few other posts about ADC2 calibration issues without resolution. I’m creating this new post to provide a resolution.Using ADC1 and ADC2 in Dual mode on STM32H745 from CM4 running at 240 MHz. 10% of boards in production (20/200) were continuously watchdog resetting. This was traced to the ADC2 calibration getting stuck in a loop for 5 minutes (and hardware watchdog of 4s would trip). At 240 MHz, this timeout loop should only be 2.4s. (It would be better to use a timer function, but this is STM ADC HAL code) /* Wait for calibration completion */ while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL) { wait_loop_index++; if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)I’m not sure what is going on in the H7 silicon that makes the status register read so slow or why it isn’t changing in the expected 2.4s max, but STM provided a work-around. Change the order of initialization to remove the Dual Mode config from the .ioc - generated code in ma
Request: Add an option to the ModalWindow to hide the modal when the shade is pressed. Also add a switch in the Properties panel in DesignerThis can be implemented as simply as: namespace touchgfx{class ModalWindow: public Container{public: ModalWindow: // ... shadePressedCallback(this, &ModalWindow::shadePressedCallbackHandler), shadeWasPressed(false), hideOnShadePressed(false) { backgroundShade.setClickAction(shadePressedCallback); windowContainer.setTouchable(true); } // ... // some setter/getter for `hideOnShadePressed` void shadePressedCallbackHandler(const Box &box, const ClickEvent &event) { bool pressed = event.getType() == ClickEvent::PRESSED; if (hideOnShadePressed && &box == &backgroundShade && shadeWasPressed && !pressed) { hide(); } shadeWasPressed = pressed; }protected: // ... Callback<ModalWindow, const Box&
Good Morning STM Team,I am trying to simulate a 28 W Flyback-based AC-DC offline converter using the VIPERGAN50TR controller in LTspice.Could anyone please help me with the LTspice SPICE model for the VIPERGAN50TR? It would be very helpful for my simulation work.If there are any sample LTspice projects or simulation files available, I would also appreciate it if you could share them.Thank you!
I had created a Project using STM32Cube MX/IDE (versions 6.17 and 2.1.1 respectively)in which I had set up the SWV ITM Console as the output of printf().This was working as expectedThen, I moved the same project to a new machine under STM32Cube MX/IDE (versions 6.18 and 2.20 respectively)When I’m debugging with my new machine, the SWV ITM Console gets no visible output.I was able to confirm (with breakpoints) that the function ITM_SendChar() *is* getting called as expected.However, referring to the source code below: __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch){ if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ { while (ITM->PORT[0U].u32 == 0UL) { __NOP(); } ITM->PORT[0U].u8 = (uint8_t)ch; } return (ch);}...the breakpoints show that the “if()” statement at the start is failing,so no characters are being written to the PORT.(O
Hi ST community,Below is what I have setup for the sensorhub interface between LSM6DSO and H3LIS331DL Goal: Read H3LIS331DL WHO_AM_I (0x0F → expect 0x32) via LSM6DSO Mode 2 sensor hub (MCU ↔ LSM on main I²C; H3LIS on SCX/SDX).SetupH3LIS: CS→VDD (I²C), SA0→GND (addr 0x18), SCL/SDA→LSM SCX/SDX Hub: 1 slave, MASTER_CONFIG = 0x4C (WRITE_ONCE | SHUB_PU_EN | MASTER_ON), SLV0 read of 0x0F Trigger: internal (XL ODR ~104 Hz, START_CONFIG = 0) — not using INT2 / H3LIS_DRDY for this Readback from SENSOR_HUB_1 with embedded-page access (SHUB_REG_ACCESS=1)What we seeLSM6DSO itself is OK (WHO = 0x6C) After arming the hub: STATUS_MASTER ends as 0x09 → ENDOP=1, SLAVE0_NACK=1 SENSOR_HUB_1 = 0x00 (expected 0x32) Scope on SCX/SDX: lines go from low → high when hub pull-ups enable, then stay high — no visible I²C clock/data bursts Same result after resoldering / swapping H3LIS; also tried addr 0x19Question: With Mode 2 + internal XL trigger, why would we get SENSOR_HUB_1 =0x00 . It seems that the sensorhu
I am trying to test the target-wake-time (TWT) feature of the ST67 using the CLI firmware. I have attempted to setup a TWT connection on two different routers but both times the ST67 reports “Could not setup TWT” in response to my wifi_twt_setup command. The routers I have tried are the TP-Link AX5400 (Archer AX73) and the EERO Max 7. Here is an example command sequence:w61/>Connected to following Access Point :[8c:dd:0b:e5:ff:c8] Channel: 6 | RSSI: -42 | SSID: EEROStation got a new IP address : 192.168.4.36w61/>powersave 1w61/>wifi_twt_setup 1 1 13 128 1000Could not setup TWTw61/>wifi_twt_statusTWT not supportedw61/>
Hi, I have a custom board with a STM32WB55RG and I’m trying to upgrade the Wireless stack (and the FUS firmware) from a user application (and so without using STM32CubeProgrammer).I'm following the Application Note AN5185.The current FUS version is v1.2.0 and I try to upgrade the stm32wb5x_BLE_Stack_full_fw firmware (v1.14.1 or v1.15 or v1.16).I'm able to send the FUS_GET_STATE command and it returns successfully:the response (HCI command complete event packet) is well formatted, Num HCI is 0xFF, Cmd opcode is 0xFC52 (FUS_STATE) and FUS State value is 0x00 (FUS_STATE_IDLE).I'm also able to send the FUS_FW_DELETE commands:Response command opcode is 0xFC55 (FW_DELETE_STATE), status value is 0x00 (Operation started). Before the delete, SFSA was 0xCE and after complete, the SFSA is 0xf4 Read FUS Infos from STM32CubeProgrammer shows valid STACKS version/address before and v0.0.0.0/NA after the delete.→ The communication to the FUS though IPCC looks to work as expected for the get state and
I am new to this evaluation boad can someone please help me to configure this board. is there any separate ide for this other than cube ide?
Hi,I need to downgrade the RDP level from Level 1 to Level 0 on an STM32F205 without triggering an automatic system reset, as I do not have access to the BOOT0 pin.My workflow is as follows: I write the firmware to the device and then set the RDP level to 1. This works as expected. However, when I want to write new firmware to the device, I first need to reset the RDP level back to 0. This automatically triggers a system reset, which makes access to the BOOT0 pin necessary.I have written my own frontend for the STM32CubeProgrammer API, but I have not been able to directly write to the option byte registers.Is what I am trying to achieve possible, or is the automatic reset unavoidable when downgrading RDP from Level 1 to Level 0?Thank you.
Hello, I am desiging PCB with STM32F030Fx where I plan to use blocks of 5 push buttons for reading user inputs.For the most of tutorials, they use reading ACTIVE HIGH after the press, but I thought more common is to read ACTIVE LOW.Also there is internal pull-up ressistors according to the schemtaic, so probably not necessary to use external pull-up resitstor for it.Using 100nF capacitors should simplify debounce process.Is it reliable for readings?
Good Morning.When I sending the time message request ($PSTMGETRTCTIME), through UART, the gps TESEO-LIV3F answers correctly.But when I try to configure it to send GPGGA & GNGSA messages every second, I doesn’t receive any answer from the GPS ($PSTMCFGMSGLOK or $PSTMCFGMSGLERROR).Respecting the software manual, I send following following message :"$PSTMCFGMSGL,0,1,00000042,00000000*6E\r\n";Is my configuration message wrong ? Thanks a lot.Sincerely,Vincent
I soft-bricked a keyboard using a STM32F103C8T6 by, I think, trying to write too large an image, and I guess I overwrote the USB bootloader. I have an identical keyboard and I just ordered an ST-Link v2 but I haven’t been able to pull up instructions for cloning the firmware from the working board using the ST-Link. Is this possible?
Hi I am using the stm32h743 device I would like to enable the FMC wait signal in the CubeMxbut this option is not available even when changed the FMC memory type to PSRAM.also changed the extended Mode to enable.But the wait signal option is not available. I do not want to change it by force in code of main.c file
MCU: STM32G4Motor: DFA90L048017-ADC bus: 24 VPole pairs: 11Hall sensors: 120°Hall pins: H1 = PB6 H2 = PB7 H3 = PB8Motor rated speed: 1900 RPMHall electrical phase shift currently: 120° Problem:- Motor starts and runs.- At approximately 500 RPM command, actual speed oscillates.- Motor can accelerate toward ~1000 RPM.- Motor then briefly rotates in the opposite direction.- Motor Pilot also shows approximately the same behavior.- Hall interrupts are continuously generated.- All six Hall states 1..6 are observed.
We want to activate a 3-phases motor. We wchosse the STM32G474BCx6 microchip, we created a custom board but cant connected it to any motor, we get the message “No algorithm is available for this hardware configuration”, how can we solve it ?attached the “custom board “ we created. Thanks
I am accessing the STM32H563/573 via SWD through the debug port.My ultimate goal is to access the flash registers to perform write/erase operations on the 2MB flash memory and configure the option bytes.I have a few questions regarding this process:・I want to halt the CPU before releasing the RESET signal. Specifically, I intend to: Set C_DEBUGEN in DHCSR to 0b1. Set VC_CORERESET in DEMCR to 0b1. However, I was unable to write to or read from the following registers: (Writing results in an error, and reading returns a value that is impossible given the register configuration.) DHCSR : 0xE000_EDF0 DEMCR : 0xE000_EDFC Please explain the cause of this issue and suggest a workaround.・According to the reference manual, the factory default value for FLASH_OPTSR2_CUR is 0xB400_170, with TZEN[7:0] set to 0xB4, meaning TrustZone is enabled. However, when I read FLASH_OPTSR2_CUR from a microcontroller in its factory-shipped state, the value was 0xC300_017C, with TZEN[7:0] set to 0xC3, meaning Tr
Hi,I am using the VL53L7CX in an object detection system.Today, I found that the sensor does not detect black objects well. It can only detect a black object at a very short distance, approximately 10 cm.Is this the expected behavior?If so, what is the maximum detection distance of the VL53L8CX for a black object?My application requires the sensor to reliably detect a black object at a distance of about 50 cm.Is there any way to improve the detection performance for black objects, such as changing the configuration or tuning any parameters?Thank you.
I have no problem reaching a low power state with stop3. All the Pull Up/Down registers are configured correctly. However, simply changing the low power mode from STOP3 to STANDBY results in a 1.5mA current sink. What could this be? The debugger support is off in both cases.
Is it possible to start the HDMI from U-boot in STM32MP2?I want to see the start up log.
Hello,I am working on using NRST pin in stm32g031j6m6 as GPIO, but it fails every time. I've changed many option bytes and even options present only on stm32g0x1 have workwd on my chip, except of NRST_MODE. If i want to change this option to 2 (gpio mode) and try to apply, the progress bar stays at 0% endlessly until i quit the STM32CubeProgrammer. I didn't have any problems with communication between nucleo and stm32g031. I tried to program my chip with st links built in nucleo u031 and f303, everytime without success. What else can i try?
HelloI have my own board with STM32G071KBT6 microcontroller. I successfully comunicate with charger by PD protocol and I receive up to 21 V (PPS). But I need above 21V. I have power bank with AVS up to 28V and USB cable with e-marker (up to 240W). How to configure the stack to receive EPR parameters? I have no TCPP IC, but I use my own protection circuit. In the trace the EPR commands isn't present. I use STM32CubeIDE 2.1.1 and STM32CubeMX 6.17.0.Thanks a lot and best regards
Hello,is there a definitive application note to interface PDM mics with MDF/ADF?there is AN5027 but it doesn’t tell about MDF or ADF. If I insert correctly MDF/ADF is a newer version of DFSDM but I would like if someone can point me to the interfacing wet stm32cubeMX for MDF/ADF usage with PDM mics showing configurations to interface N number of MICs(1-8) for a required sampling rate(16-96 KHz) if possible?which one to choose MDF or ADF?or both are same?Thanks a lot in advance !regards,S
Hello, I recently encountered this error while deploying an AI model on an STM32N647 for performance verification. I noticed that others have encountered the same issue on the official website, but following the suggested solutions did not resolve my problem—I’m still getting the same error. This issue has been troubling me for a week now. Are there any other ways to resolve it?
We have a current application in which our F7 is connected to an external Microchip PHY which provides a 50 MHz reference clock for RMII. We are attempting to place the system into a low power mode in which we disable the PHY thus stopping the reference clock. Is there a way to do this that will not cause the network stack on the MCU to fail? We are using Zephyr as our RTOS which may or may not be relevant.
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.