Join conversations with your peers and ST experts. Explore the full potential of STM32 microcontrollers for your embedded design.
Most recent activity
Hey everyone, I'm having a weird issue with my STM32F4DISCOVERY board (MB997). It was working fine before, but now I can't program it anymore. Board info: Board: STM32F4DISCOVERY Device: STM32F407VGT6 ST-LINK FW: V2J46M33 ST-LINK SN: 0671FF37324D423143244649 Symptoms: STM32CubeProgrammer connects OK (Device ID 0x413 confirmed) Flash erase fails: Error: failed to erase memory sectors [0-2] RDP Option Byte shows 0xFF (corrupted) BOR_LEV = 3 (BOR OFF) Writing RDP from 0xFF to 0xAA fails, always comes back as 0xFF VDD measured at 2.89V What I've tried: Under Reset mode ST-LINK Utility STM32cubeProgrammer Different USB cable ST-LINK firmware update Nothing works. RDP is stuck at 0xFF. Has anyone seen this before? Any suggestions? Thanks in advance!
Hello All,I am working on a custom project using STM32C011J6/SO8.I was trying to use PIN4 as ADC with 3 differents states but once I connect to GND, mcu resets. So now, I have no access to the mcu via Debugger because I set NRST_MODE in Option bytes to : 0x10 only internal RESET is possible.My questions:- Is there a way to recover it knowing that I tested and I can't access system memory.- I am using all the 6 pins (4 ADCs and 2 Outputs). Can I use the PIN4/PA0 as ouput without having reset issues?I know I can still block the reset by Option bytes but I am not sure if I would need a FW change in the future.Thanks,Ayoub
I upgrade my project recently to the above firmware (STM32Cube FW_WL V1.5.0) which ended up not working.Lots of errors, I think mostly because of the introduction of the relay node.After a couple of days trying to get this working I started a fresh project from CubeMX and this did not compile into the STM32WLE5CB. Any idea on what the issue could be?
Hello,I am working on an STM32F7 project where I need to sample multiple ADC peripherals using DMA triggered by a timer. Problem: No ADC data is being written to ADC_BUF or ADC3_BUF even though main loop runs (buffers ADC_BUF and ADC3_BUF remains zero while counter increases) Current Setup:ADC1: 1 Channel, DMA2 Stream 0, triggered by TIM2 TRGO UPDATE ADC3: 2 Channels, DMA2 Stream 1, triggered by TIM2 CC2 DMA: Circular mode, DMAContinuousRequests enabled TIM2: 10 Hz update event Mode: ContinuousConvMode is Disabled, ScanConvMode is Enabled What do I need to change to fix this? /* USER CODE BEGIN PV */ volatile uint16_t ADC_BUF[ADC_BUF_LEN]; volatile uint16_t ADC3_BUF[ADC_BUF_LEN]; uint16_t counter = 0; /* USER CODE BEGIN PV */ /* USER CODE BEGIN 2 */ HAL_CAN_Start(&hcan1); HAL_ADC_Start_DMA(&hadc1, (uint32_t*)ADC_BUF, ADC_BUF_LEN); HAL_ADC_Start_DMA(&hadc3, (uint32_t*)ADC3_BUF, ADC_BUF_LEN); HAL_TIM_Base_Start(&htim2); /* USER CODE END 2 */ /* USER CODE BEGIN
Dear Team,I have a board contain STM32WBA5MMG and AD5941. We have provided a single RESET for both the chips.The circuit is given below.May Iknow will this cause any issues. RegardsHiyo
When I followed the link https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32_Sniffer_for_BLE_Setup_guide,I successfully make Neclueo-WB55 be sniffer device while STM32WB sniffer displayed in the wireshark startup page,meanswhile I really capture the BLE advertise packets like this screenshot 1, But come problems,it only capture advertise packet as title said,connection packet like GAP parameters update or CONN_REQ all cannot be captured,how I should do to solve this problem like screenshot 2,
Hello, Is it possible to use two OSPI with below configuration. I can make this configuration in cubeMx but whiel debugging ospi1 is not working after ospi2 initialize.
* https://www.st.com/en/evaluation-tools/steval-usbc2dp.html#overview For the USBC2DP board is the source code available for it. I'm trying to do something similar with a N6 chip. Page for the software* https://www.st.com/en/embedded-software/stsw-usbc2dp.html
Goal boot from a Quad SPI flashI shouldn't need to change any OTP settings. Any sNor flash chip connected to XSPIM_P2 that can operated in single spi mode can be booted off from? From my understanding if we want to make a dev board and use a different external memory that is not Octo SPI flash but just Quad SPI flash we shouldn't have to change any of the OTP registers. SinceIn sNor flash it starts in single spi modeThen in your FSB you can configure the SPI to your given device(From my understanding)There are no OTP registers for Nor flash settingsThese are all setup in the ROMChanging OTP 11 bits (5-8) would force us to loose the ability of Dev up (From my understanding) Most of this info is from theHow to proceed with boot ROM on STM32N6 MCUshttps://www.st.com/resource/en/user_manual/um3234-how-to-proceed-with-boot-rom-on-stm32n6-mcus-stmicroelectronics.pdf No boot source is programmed in OTP default source is serial NOR No configurati
i need build a slider as following picture, when i change the item up and down , at the same time, the slider need move up and down with the item's movement;
Hello,I am working with the STM32H7B3I-EVAL boardI have I2C slave model work properly the default adress used by contoller given in schematich work on 84 aand 85 adress but the other peripheral adress not get give me the roadmap for the coding of communication protocolsI2C Slave Address detect. how can i code done for other peripherals using mfx expander give me solution didnt solve the issue.Thank you
Hi everyone,I’m working on a battery monitoring prototype using an STM32F303. I’m measuring multiple analog voltages using the internal ADC with DMA. The ADC readings fluctuate by ±20 counts whenever the PWM output for the buck converter is enabled.I already added averaging in firmware, but the noise is still visible. The analog input traces are routed near the switching MOSFET area on the PCB.My questions:Is this more likely caused by ADC sampling timing or switching noise coupling?Would increasing ADC sample time help in this case?On the PCB side, should I separate analog and power ground planes or just improve return current paths?
New question split from this post. OK THANK YOU @mƎALLEm , CAN U SHARE THE RMII CONFIGURATION FOR STM32H745BIT6?
I've developed on an STM32U5A9J-DK using ThreadX, which, via USBX, creates a loopback audio interface between the PC and the device in the way: PC->speaker on device->microphone on device->PC.The devices are correctly seen and are working, as I'm able to enumerate them on the host and the device correctly receives audio frame,s and I'm able to process them into the device.Now, the issue is that I'm unable to send the audio packets back to the host.My implementation is pretty simple: I'm using the USBD_AUDIO_PlaybackStreamFrameDone function to read the audio frames and send them back to the microphone interface withVOID USBD_AUDIO_PlaybackStreamFrameDone(UX_DEVICE_CLASS_AUDIO_STREAM *audio_play_stream, ULONG length) { UCHAR *read_buffer; ULONG read_length; UCHAR *write_buffer; ULONG write_length; AUDIO_FRAME_MSG frame_msg; AUDIO_FRAME_BUFFER *frame_buf; /* -------------------------------------------------------------------------- */ /* STEP 1: Get A
Hi everyone,I have a screen project displaying a camera image using an STM32N6. I've validated and run several peripherals like DCMIPP and DMA2D. I'm currently displaying a 720x576 resolution image from DCMIPP on the screen via layer 2 using bitmap addressing.My question is: Since I'm using internal RAM, Touchgfx uses one layer, and one layer is used for the camera. Because I'm not processing any bitmaps and need space, I've significantly reduced the size of the cmd_list area. After adding all this, I have about 300kB of free RAM left.Now, what I need is to be able to see this camera image in full size on my 1024x600 px screen. However, I want to know if this enlargement is possible and if it requires a cmd_list, i.e., vector graphics.Will I use vector graphics for this? Will GPU2D use the RAM allocated for layer 2 for this operation, or will it require an additional amount of RAM equal to the screen size? Best Regards,Onur
We are currently using LPTIM1 to measure the time period. As this operation needs to be performed frequently, we are using the following APIs: HAL_LPTIM_TimeOut_Stop_IT(&hlptim1) HAL_LPTIM_TimeOut_Start_IT(&hlptim1, 0xXXXX, 0xXXXX) During this process, the LPTIM_Disable() function temporarily disables all interrupts using PRIMASK while waiting for the LPTIM_FLAG_ARROK and LPTIM_FLAG_CMPOK flags. This global interrupt masking is causing data loss on LPUART1, which is operating at 115200 baud. As a result, we are encountering ORE (Overrun Error) due to missed UART interrupts. Given this behaviour, we would like your guidance on the following: Is it safe to modify the LPTIM_Disable() implementation by removing or commenting out the PRIMASK-based global interrupt disable? Alternatively, is there a recommended approach to avoid this blocking behaviour while still ensuring correct LPTIM operation? We are concerned about maintaining real-t
Hello ST Community,I M USING STM32H745I-DISCO (MB1381-H745XI-B02), WHICH COME DEFAULT MII MODE, TO CONFIGURE IT ON RMII, WHAT CHANGES I HAVE TO DO IN HARDWARE, IOC. AS THIS BOARD HAVE ETHERNET IC LAN8742A-CZ-TR WHICH HAVE BOTH MII,RMII PROTOCOLS.AS I HAVE SEEN SOME VIDEOS ON ETHERNET FOR DIFFERENT STM32 CONTROLLER IN RMII, I M NOT ABLE TO GET RESULT. I WANTED TO KNOW DO THIS BOARD CONFIGURE IN RMII, IF YES THEN TELL ME HOW I CAN DO. HERE IS CONFIGURATION I HAVE DONE IN MY PROJECT. PG11 ETH_TX_EN ARM Cortex-M7 n/a Alternate Function Push Pull No pull-up and no pull-down Very High n/a true PG14 ETH_TXD1 ARM Cortex-M7 n/a Alternate Function Push Pull No pull-up and no pull-down Very High n/a true PG13 ETH_TXD0 ARM Cortex-M7 n/a Alternate Function Push Pull No pull-up and no pull-down Very High n/a true PC5 ETH_RXD1 ARM Cortex-M7 n/a Alternate Function Push Pull No pull-up and no pull-down Very High n/a true PC4 ETH_RXD0 ARM Cortex-M7 n/a
It looks like I have the 32F469IDISCOVERY board that looks to be powered ok via USB connector CN13, however the board doesn't appear to have demo software preloaded. COM LED LD6 flashes red. I note on the ST website that there is the 32F469IDISCOVERY compiled demo binary, which I have downloaded. The Readme says: The QSPI external flash loader is not integrated with supported toolchains, it ís only supported withSTM32 ST-Link Utility V3.7 or later. But the ST website says that the ST-Link Utility is NRND and to use STM32CubeProg instead. I've tried the latest version of STM32CubeProg and it can't connect to the board via USB: Error: Establishing connection with device failed. What is the best way of programming the board with this file please? Kind regards, Al
I have created a project with a scroll wheel of 10 items, each item is displaying a single digit 0-9. Imagine an odometer for instance. I am incrementing a variable(num) every second and usingscrollWheel.animateToItem(num, 20);to scroll through the list of items, it is working as expected until it gets to 9. Instead of it the scroll wheel continuing to rotate the same direction to 0 it reverses the direction of rotation and scroll past all other digits to get back to zero. I have verified I have the scroll wheel set as "Circular" and it does indeed display the scroll wheel correctly as if it was circular. Can I somehow change this behavior?
Hi all.I'm new to STM, but have been designing and making embedded MCU products for over ten years.I was drawn to the STM32F105 series because of the USB DFU, to allow for field updates for prospective customers to update a product we're developing. Outside of USB DFU functionality, we just need 3x UART's, one GPI, one GPO. That's it. We steer clear of USART1 because of it's overlap with OTG_FS pins. We have got our product working using a ST-Link programmer, but not as yet using the USB DFU.Our USB connection just isn't enumerating. The wiring is correct when compared to off-the-shelf STM32 enabled boards with OTG USB interfaces.I am across the date code bootloader issue as described in AN2606, our chips definitely come with bootloader 2.2. I have VBUS from the USB-C tied to PA9 (OTG_FS_VBUS). Yes, USB-C but with the 5.1K resistors between CC1, CC2 and GND. NRST is pulled to 3V3 with a 10K pull-up. Boot0 and Boot1 is pulled to GND via a 10K pull-down, Boot0 also runs to a tactile NO p
Good day, ST community,I am writing to inquire about the possibility of updating the custom container used on each screen when a new change is made to the custom container template. Currently, I am required to delete the old custom container widget on all my screens and add the new updated container manually each time. Thank you in advance for your assistance.
Hello,I am using STM32H750 and X-Cube-Crypto lib. I am working on a secure boot and want to calculate the app Hash value to check integrity. The library works fine for STM32L5 Mcu (Already tested) but not with STM32H750. I verified that I am using the correct lib libSTM32Cryptographic_CM7.a.The issue I get is a Hardfault triggered by a function in the lib. When I investigated more, I found that The Mcu tries to load data from a Peripheral Register not mapped for STM32H750 MCU.What do yo think could be the issue? Thanks,Ayoub
Stm32l010r and s2lp using x cube sub ghz , for custom board just for coding only gpio button status, there are plenty of error, by solving all those 4-5 errors remain and their resolving method is to complete change of middleware files or some code left in file even check through free AI they finally there no such files in middleware add some, for adding it will not compatible with existing file. If tried in stm32wl33cc it also shows so many error but finally there something missing. There are some radio.spi.h and some similar files there in s2lp nucleo example in spirit 2 workshop project, but in s2lp middleware they are not available and look like board specific. If any available example and transmitting and receiving data for s2lp and stm32wl33cc.
Hello STM32 Community, I am facing a persistent "Target no device found" error when trying to program an STM32L073CZT3 custom board using a Nucleo-L073RZ as an external ST-LINK (CN2 jumpers removed). Hardware Setup: MCU: STM32L073CZT3 (custom PCB) Debugger: ST-LINK V2-1 (Nucleo-64) Connection: 5-wire SWD (SWDIO, SWCLK, GND, NRST, VDD_Sensing) Power: External SMPS providing 3.3V (Common Ground established between SMPS and ST-LINK). The Issue: While the ST-LINK pins show correct voltages when floating, the SWDIO (PA13) pin drops to 0V the moment it is connected to the target board. Pin 1 (VDD Sense): 3.3V Pin 2 (SWCLK): 3.29V Pin 4 (SWDIO): (Measured 2.9V on ST-LINK side connection) Pin 5 (NRST): 3.3V Troubleshooting performed: Verified continuity; no physical shorts found between PA13 and GND. Attempted "Connect Under Reset" and "Hardware Reset" at 480 kHz. Schematic Check: I have a 10uF capacitor (C17) on the NRST line—could this be preventing the debugg
I need support for the design of STM32WL30XX PCB Antenna. Are there reference designs available for the PCB antenna?Specifications:Two layer board Output power 10dBm in the 868MHz band.
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.