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
In one of my hardware i am facing the following intermittent behavior, after flashing using debugger, the control does not come to the starting point after main (Hal_init() function), it gets stuck up in assembly code, there is a micro reset button in STM32Cube Ide in debugging mode, when i click that it comes to the starting point after main. Once i remove the debugger and start testing, similar behavior is observed when i do power on and off, sometimes the code executes normally but sometimes the code does not reset, i need to do several power on / off sequences. Is it software or hardware problem? How do i correct it?
The function comment of HAL_ADCEx_MultiModeStop_DMA() states "Multimode is kept enabled after this function" (in stm32f1xx_hal_adc_ex.c, line 792).However, in the F1 implementation (stm32f1xx_hal_adc_ex.c, line 841) the function actively executes:CLEAR_BIT(hadc->Instance->CR1, ADC_CR1_DUALMOD);which is misleading.So, on STM32F1 the dual ADC mode is silently lost on every stop using HAL_ADCEx_MultiModeStop_DMA(). Users should call HAL_ADCEx_MultiModeConfigChannel() every time before the next start, or the buffer of ADC won’t receive any data on the high 16 bits.Suggestion: update the F1 header comment to state that DUALMOD is cleared and must be re-configured, or align the F1 implementation with its comment (keep DUALMOD, disable multimode only via HAL_ADC_ReInit).Happy to provide a minimal reproducer.
Hello dear ST forum.I need again you precious help.I am working on a data acquisition device, and need to get 14bit data from a parallel ADC connected on DCMI pins,at 48MHz, and move it to a 32MB SDRAM (W9825G6KH-6I) till almost full. The MCU is STM32H743IIT6.After reading, and reading, I did understand that the only available way, is to use MDMA linked list. Create 255 nodes and transfer the 16 bit data to the SDRAM. Can someone point me the right direction?
Hi I am using STUSB4500 using a usb c connector. The usb c connector is connected to XP power ac dc 65w adapter capable of delivering 20V, upto 3.25A. STUSB4500 is never programmed over I2C and should have its default PDOs. By default settings I mean when it is connected to the XP charger, it should request by default 20V,1A from this source. Since its Req_src_current but is also 0 by default, so it should only demand 20W(20V,1A) from source even though source can deliver upto 3.25A. But I desoldered a 0 ohm resistor in the usb vbus path after STUSB4500 and installed ammeter there and found out that 2A is flowing through vbus instead of 1A. Is this normal?As I see 20V is being delivered to load but the current is double than what’s requested. One thing worth mentioning is that load connected on the downstream path after STUSB4500 is capable of receiving upto 2.8A.but I don’t think load should have anything to say here and the STUSB4500 should request only its default 20V, 1A from PGW
Transitioning a working FreeRTOS project over to CMSIS_os2. Got most of the bits and pieces to compile. It’s not working (surprise).At the simplest level, the patch of code that turns on an LED, then calls osDelay does not delay. investigating the problem using vTaskDelayUntil (and bypassing the CMSIS_OS2 wrapper for this one call to eliminate the possibility that the error is in how the cmsis_os2 routine is somehow wrong), the problem is that the xTickCount never increments. (HAL TICK works and increments).This triggers an error routine because the new timetowake is computed as less that the existing time. Therefore, no delays.Going through error reports suggests that the TickCount interrupt never triggers. This seems to be true.My thought is that the default priorities that are assigned are wrong, so in cmsis, which assigns interrupt priorities, is getting it wrong. The main task is at priority 24 (PriorityNormal). Tasks created for LED blinking are set at priority 26 and u
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code and a linker script content. Please read this post: How to insert source code. Hello, I ran into a very strange problem with a STM32H743 that I don't understand. I have the following config sequence: MX_ADC1_Init() -> generated by CubeMX MX_ADC2_Int() -> generated by CubeMX HAL_ADCEx_Calibration_Start(&hadc1, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) HAL_ADCEx_Calibration_Start(&hadc2, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) The MX_ADC1_Init() contains the following generated code: multimode.Mode = ADC_DUALMODE_REGSIMULT; multimode.DualModeData = ADC_DUALMODEDATAFORMAT_DISABLED; multimode.TwoSamplingDelay = ADC_TWOSAMPLINGDELAY_1CYCLE; if (HAL_ADCEx_MultiModeConfigChannel(&hadc1, &multimode) != HAL_OK) { Error_Handler(); } This worked without a problem on all my boards so far and I was able
Hello, I am in the process of bringing up a custom board integrating an STM32H745ZIT3. The chip is running with VDD at 1.8V and we plan to use LDO only mode for supplying the core. We have assembled our power delivery and MCU on the board, but we are having trouble when powering the board. We see that VCAP reached 1V briefly (for about 4 ms) before seemingly shutting off. The chip is unresponsive to flashing as well. The scope trace below shows VCAP (green) and the NRST signal (yellow).Below is the relevant part of our schematic. We are unsure if we are encountering an issue with our design or if we have an assembly issue causing our board to be non-functional. Please let us know if we can provide any more information to clarify our situation!
Hello everyone,While reviewing the STM32F302x6/x8 documents (DS9896 Rev 8 and RM0365 Rev 8), I found some inconsistencies in the memory map. Could you please look into them?DS9896 Rev 8, Table 19, page 49TIM1 is 0x4001 0800 - 0x4001 2FFF (10 K). It should be 0x4001 2C00 - 0x4001 2FFF (1 K). RM0365 shows TIM1 at 0x4001 2C00 - 0x4001 2FFF (1 K) and the range 0x4001 0800 - 0x4001 2BFF as reserved. It looks like the reserved area is inside the TIM1 row. The CMSIS device header also confirms the start address 0x4001 2C00: #define TIM1_BASE (APB2PERIPH_BASE + 0x00002C00UL) (file: stm32f302x8.h).DS9896 Rev 8, Table 19, page 50I2C3 0x4000 7800 - 0x4000 7BFF has size 9 K. It should be 1 K. RM0365 also says 1 K. Reserved 0x0804 0000 - 0x1FFF D7FF should start at 0x0801 0000. Main Flash is 64 K and ends at 0x0800 FFFF, and RM0365 shows 0x0801 0000 - 0x1FFF D7FF. Typo: 0x2000 4000 - 3FFF FFFF should be 0x2000 4000 - 0x3FFF FFFF.DS9896 Rev 8, Table 19, page 51 Reserved 0x0004 0000 - 0x07FF FFFF sho
I have an application that uses internal flash for logging. Unfortunately, after exiting stop3 subsequent writes to flash fail. Here’s my exit code -- the names of the routines should give a general idea. I don’t really have a clue what changed and the reference manual is notably sparse on details about the various stop/standby/shutdown modes SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk)); __DSB(); __WFI(); __ISB(); CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk)); PWR->APCR &= ~PWR_APCR_APC; palSetLine(LINE_testpin); chSysLock(); tagPowerRestoreClocksAfterStop3(); tagPowerPostStop3WakeEventI(); chSysUnlock(); // Ensure Flash is awake and not stuck in low-power mode FLASH->ACR &= ~(FLASH_ACR_SLEEP_PD); __DSB();
When attempting to connect and flash an STM32F407G-DISC1 board with STM32CubeProgrammer via the default ROM USART1 interface on pins PA9 (TX) and PA10 (RX), the connection consistently fails with a timeout error: text Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again.This failure occurs despite proper boot pin configuration (BOOT0 = 3.3V, BOOT1/PB2 = GND) and correct UART settings (Even parity, 8 data bits). In contrast, using PB10 / PB11 (USART3) succeeds immediately. 2. Test Configuration & EnvironmentTarget Device: STM32F407VGT6 (LQFP100 package on STM32F407G-DISC1 board)Programming Tool: STM32CubeProgrammer (UART Interface mode)Serial Bridge: USB-to-UART Adapter (CP2102)Target Pins Tested:PA9 (STM32 USART1_TX →→ Adapter RX)PA10 (STM32 USART1_RX ←← Adapter TX)GND (Common ground)Boot Configuration: BOOT0 = 3.3V, PB2 (BOOT1) = GNDPort Settings Tested: Baudrates: 9600, 57600, 115200 |
Hi,Do enabling BDU also protect temperature data registers from getting refreshed while reading the data? Or is it just for accelerometer data registers? BR,KJ
Hello,I’m encountering an issue with the STM32H743VIT6 and the latest STM32H7 HAL driver.When using LPUART1 with USE_FULL_ASSERT enabled, the initialization code generated by STM32CubeMX triggers an assertion in:HAL_UARTEx_SetTxFifoThreshold()The assertion is:assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));The problem is that LPUART1 is missing from the IS_UART_FIFO_INSTANCE() macro, although it is documented as supporting TX and RX FIFOs.Interestingly, this exact issue was already reported in March 2023:Previous discussionAt that time, ST representatives indicated that the issue was being investigated and that a support case had been opened.However, the issue still appears to be present in the latest HAL driver.Could someone from ST confirm whether this is a known issue and whether a fix is planned?It seems that simply adding LPUART1 to IS_UART_FIFO_INSTANCE() would solve the problem.For comparison, I checked the STM32G4 HAL driver (STM32G474RE), and LPUART1 is correctly inclu
Link https://www.st.com/resource/en/ibis_model/stm32mp2-ibis.zipThere should be STM32MP211_213_215
Hi everyone,While using the comparator interrupt functionality, I discovered an error in the comparator block diagram provided in the Reference Manual for the H723 series(RM0468):As shown in the image above, the signal that triggers the interrupt does not actually pass through the polarity selection stage; instead, it is routed to the interrupt logic immediately after the comparator output. My evidence is as follows:First, I observed that a specific output state causes the interrupt to trigger continuously (making it impossible to clear the `CC1IF` flag). Upon checking the block diagram, I saw that `CC1IF = cmp1_out & ITEN`, which implies that setting `cmp1_out` to 0 should resolve the issue. However, in practice, this has no effect—the `CC1IF` flag remains set. The only way to clear `CC1IF` is to adjust the comparator inputs to invert the comparator's output.These are the results I obtained from testing on an STM32H723ZGT6.
Hi team, We are using STM32U585RIT3Q on our board, as this will be used in an environment which is prone to vibration, we are planning to use MEMS oscillator for the clock input at the OSC_IN pin instead of a crystal. We are planning to use either ASVMB-16.000MHZ-XY-T or SIT8918AA-11-33S-16.000000G. Please confirm if either of these parts are suitable for STM32U585RIT3Q. Also how to connect the oscillator to the MCU and what should be the configuration for OSC_OUT.
My STM32H743 application runs from internal Flash, with some code and data in external NOR via FMC. It runs stably for days without NOR issues, but after repeated external resets the board eventually becomes silent and will not recover with an MCU reset; power-cycling restores it. HAL_NOR_Init() has writes disabled, and captured pre-FMC pin levels were unchanged. What should I check to identify whether FMC/NOR initialization, access sequencing, or reset behavior causes the hang?
I can view the variables concerned either in Watch and Live Watch window, but i have no way to edit them. In Watch window, double-click only allows me to edit the expression instead of its value. VScode document says I can edit variable value in “Variable” window, but i can’t see global variales there.
Hello Team, We are currently facing a same issue as STM32N6570-DK: Cannot erase external Flash. and but i think they were facing this issue on the EVK ( STM32N657-DK ), here we are facing the issue in our custom design. what happened till now :1. We received boards and tried to flash, got a success tested multiple binaries also able to erase the flash using the cube programmer. 2. suddenly we are unable to flash any new binary and not able to erase the external flash :(.3. tried the suggested methods to erase the flash from the community but failed. tried with both the external loaders MX25YM51245G and MX66UW1G45G.seeking for the help from you guys if any one can it would be really appreciated. Attaching the OTP dump here Thanks and regards Harsh
Hi,I'm using STM32G484. I need RTC to keep time after power loss, so I use external 32.768kHz LSE crystal for RTC. The program gets stuck in the waiting loop: while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) != 0U); It never gets LSERDY flag set.If I switch RTC clock source to LSI, everything works normally. RTC can keep the last time value after power cycle.Hardware info:- 32.768kHz crystal connected to LSE_IN / LSE_OUT-The LSE circuit uses a 32.768 kHz crystal AV25000023, with 5.6 pF load capacitors on both PC14 and PC15. The HSE is a 24 MHz crystal NX2016SA-24MHZ, which works fine. LSE fails to start and the LSERDY flag never gets set, while RTC works correctly with LSI.-HAL library, STM32G484 - LSE is enabled in RCC BDCR register before waiting LSERDY - No debugger interference when cold power-onQuestions:1. What possible causes make LSE fail to start on STM32G484?2. Is there any special errata or limitation for LSE on G4 series?3. Any recommended debug method or register check? Than
Dear ST Support,I am looking for an ultra low power ST MCU supporting the highest data transfer rate on an external SD Card. I also need recommendation on a compatible SD Card Connector to match your recommended MCU. Ultra low power is mandatory because my design is a portable device. Yours faithfully,Timmy
Dear STMicroelectronics Support Team,I am writing to inquire about the memory technology configuration across the STM32V8 series, which ST has introduced as the industry’s first 18nm microcontroller family featuring embedded phase-change memory (PCM).From ST’s public materials, I understand that the STM32V8 integrates 4 MB of embedded PCM as a core architectural feature, and that the device has been selected by SpaceX for use in Starlink satellite laser systems, where radiation robustness and high-reliability operation are critical. At the same time, ST positions the STM32V8 primarily for demanding industrial applications such as factory automation, motor control, and robotics.This leads to two points I would appreciate clarification on, particularly for models within the STM32V8 series that have not yet been formally released to the broader market:First, could you confirm which specific STM32V8 part numbers are equipped with PCRAM / PCM as the embedded non-volatile memory? I have seen
Hi ST Team,In our design, the USB pin pairs from PA11, PA12 our failing short multiple times during hot plug in of type C port to power the board. The USB pin pairs does not directly go to type C port rather it goes through this chip PCMF3USB3S (ESD + EMI filter) from Nexperia. Currently we do not have any ESD protection on VBUS pin. The VBUS +5V currently generates 3.3VDD to power the STM32H56V3G on our board. There is also a diode as connected reverse b/w VBUS +5V and 3.3Vdd output as recommended in AN4899.Can you please give us some insights on why this could be happening and what would be the possible solution
Since updating to STM32CubeIDE v2.2.0 (and on a fresh install of v2.2.0), when I program my target STM32 (F413ZH) using a Segger J-Link, the code does not run until I power cycle the target. I’m fairly certain this issue coincided with me switching from CubeIDE 2.1.1 to 2.2.0.I have tried all 3 reset methods in the Debugger settings (Normal, Core, ResetPin), and they all exhibit the same issue. With ResetPin selected, a scope capture of the NRST line shows it asserting only once at the beginning of programming.I also tried STM32CubeProgrammer, with the J-Link dll update to v9.56, and it does work when the “Run after programming” box checked.As far as I can remember I didn’t change anything in the Run configuration when switching from 2.1.1 to 2.2.0. The GBD console log (below) shows “Starting target CPU...” and then right after “Debugger requested to halt target...Target halted” and then it is never resumed or started again. Additionally, I believe the GDB console in v2.1.1 had more a
Here the UIF waveform shifted to high when counter register equaled to 0x02. Isn’t it supposed to shift at the moment the UEV is set? Figure148 also has this problem. And I traced back to the earlier versions. As far as I can reach, the figures were good until rev11, and they were changed since rev17 or earlier.
Dear Technical Support Team,I would like to clarify how the VD16GZ sensor handles VIS and NIR imaging.Does the VD16GZ output a single RAW image containing both VIS and NIR information, which must then be separated through software processing, or does it support two independent output modes, VIS-only and NIR-only?More specifically, I would appreciate your clarification on the following questions: Is it possible to obtain two separate images, one RGB (VIS) and one monochrome (NIR), from the same captured frame? Does the sensor support switching between VIS-only and NIR-only output modes through software commands, without restarting the camera? Is additional image processing required on the host processor, such as NVIDIA Jetson AGX Orin, to generate separate VIS and NIR images? Does STMicroelectronics provide an SDK or reference algorithm for separating VIS and NIR images? Thank you for your support. I look forward to your clarification.
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.