Join conversations with your peers and ST experts. Explore the full potential of STM32 microcontrollers for your embedded design.
Most recent activity
HiI had the stm32f746G-disco development board laying around, after while I wanted to try some application, during flash I got warning that my st-link firmware was old, I wanted to upgrade it but failed during upgrade, anyway it was very old firmware. Well I had another st-link at hand, I have connected it to the SWD port on the dev-kit, *** me I thought it is connected to stm32f7 but after pressing erase flash I saw the connected MCU is stmf103, well I accidentally erased the st-link, long story short it was a *** mistake.I have been searching online there are lots of suggestion, I am very confused, is there a way to recover the on board stlink. Because there is no jumper or pin that exposes SWD/JTAG pins of stm32f7, I need to recover it.I have tried "java -jar STLinkUpgrade.jar -d8_d32_msc_br -force_prog" with stm32f407 nucleo board but no chance.Any help appreciated thanks.
Hi,ich wanted to have a look on the following project: https://github.com/stm32-hotspot/STM32WB-ZB-RUC-Lighting/tree/mainHow can i import it in STM32CubeIDE 2.0.0 ?In the readme is written:In order to make the programs work, you must do the following: Open your toolchain Rebuild all files and flash the board with the executable fileSo i opened cube ide, hit on import existing project and so on, but this does not really work.It seems to be not recognized as anything which it can work with or so.
I got my STM32H745I-DISCO (STM32H745XIH6U) kit and wanted to update st-link (STLINK-V3E) firmware. Unfortunately I used unreliable USB cable and it got probably disconnected during the process. Now the STLinkUpgrade shows the line "Unknown firmware type. Don't know how to upgrade."Is there any chance to restore original firmware? Or do I have to use external ST-Link/buy new board?Thank you in advance.
Hello everyone,This is my first post on the ST Community forum.I recently moved from a custom 6-layer board using STM32H725IGKB to a simpler 4-layer board using STM32H723ZGT6. Both designs use an external OCTOSPI memory, with 50 ohm controlled-impedance routing and 33 ohm series resistors on the signals.On the new 4-layer board, I am seeing read/write errors on the OCTOSPI interface, while the original 6-layer board works reliably with similar routing and firmware.I would like to ask whether the OCTOSPI output driver characteristics or output impedance differ between STM32H725 and STM32H723, or if these issues are more likely related to signal integrity, stack-up, or return-path differences on a 4-layer PCB.Any guidance or experience would be appreciated.Thank you in advance.
Hi, I mistakenly used the pin for swd on my F446RE for other purposes and now it does not connect through st link.Can anyone guide me through a solution for it? The only thing I can do now is update the board. The two leds are always red.
I am currently using the STM32N657 on the NUCLEO-N657X0-Q board to drive an 800x480 pixel display with 24-bit color. The display that I am using is the NHD-7.0-800480EF-ASXV#-T. I’m using the built in LTDC controller on the chip. I do know that the controller is working because the entire screen is black, the screen would be showing the backlight if it wasn’t. The problem is that I am unable to display anything at all when writing to the screen buffer.Here are the configuration parameters that I am using based on the data sheet:Here are the layer settings that I am using:Here is the clock configuration for the LTDC: Here is the code that I am running:main.cint main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysI
Can anyone tell me or direct me to a source that shows the minimum connections needed to power up and serially program a STM32F765ZGT6? (144 pin package.) I will be attaching the chip to a breakout board and will be using a St-Link Minie3. Any help much appreciated.
I'm curious how hard of a task would it be to get UCPD working with the STM32N6 with zephyr. I see it's supported with the G0* https://docs.zephyrproject.org/latest/boards/st/stm32g071b_disco/doc/index.html From my understanding the UCPD hardware block is the same between the two chips?
Hi! I'm working on a Power Delivery Sink using an STM32G484RETx MCU. I managed to get SPR Power Delivery working without any issues, but I'm having trouble handling the EPR handshake.I'm using the latest USB-PD library from ST's GitHub:https://github.com/STMicroelectronics/stm32-mw-usbpd-coreI can successfully enter EPR Mode, but the PD stack automatically calls Evaluate Capabilities and sends an SPR Request (Data Object[2] == 0). I can’t find any option to prevent the stack from running Evaluate Capabilities when Extended PDOs are received from the source.I’ve read @FBL's post on the ST Community, which states that the latest stack should support EPR:https://community.st.com/t5/stm32-mcus-embedded-software/update-about-usb-pd-stack-to-support-epr-mode/td-p/829168Do you have any solutions or examples that show how to properly handle EPR using the ST USB-PD stack? In the second screenshot, you can see that the stack incorrectly sends an EPR Request (Data Object[2] = 00000000h)
I have swapped from a custom PCB-board with a 6-layer stack using a STM32H725IGKB, to another custom board with a 4-layer stack using STM32H723ZGT6 (simpler package).I am using an external OCTO SPI on both boards, but I have R/W errors with the 4-layer board.Both boards are routed with 50 ohms impedance and uses 33 ohms series resistors for the OCTO SPI.I am wondering if the output impedance is the same for these two H7-devices?
Hello everybody,I am trying to synchronize the ADC1 and ADC2 to work with center-aligned PWM signals in dual-simultaneous regular mode using DMA. My setup:PWM frequency: 5.2 kHZADC conversion frequency: 104/2 = 52 MHZIf I have 3 conversions per ADC with every single one lasting 2.5 cycles, according to the reference manual:One conversion : (2.5 + 12.5)*19ns = 285 nsThree conversions: 285*3 = 855 nsThe problem is when I hook up oscilloscope I see that I am getting 8.2us until I reach my interrupt routine which is much longer than expected. I want to do all of my conversions at the moment when CNT=ARR so that I make sure lower side of the FET is ON. I am doing this by setting another channel of the timer to use it only for the time base and setting its TIMx.Pulse = ARR -1. Also TIM1 and TIM8 are synchronized through master/slave in trigger mode on enabling the counter. Picture of the scope:Yellow : PA7 - GPIOBlue: TIM1CH2 PWM /* USER CODE BEGI
Hi Team, Currently, I am working on the STM32N657-DK EVB with an SPI interface (ADS118 sensor). I have enabled SPI5 in the .ioc file. The configured pins are: PE11 – SCK PH8 – MISO PG2 – MOSI PA3 – CS According to the schematic, these pins are connected to the CN12 connector. My question is whether these pins can communicate correctly using the SPI5 interface or not. Secondly, I want to generate PWM signals. Could you please let me know which pins are suitable for PWM generation on this board? I tried using the CN11 and CN12 connectors to drive PWM signals on pins such as PE9, PE10, and PE11, but PWM is not being generated. Kindly let me know your inputs.
I am developing a custom board using STM32H523RET6.It has a USB type C port, and I am trying to send some data from PC to the board through it, and decided to use USB CDC ACM with standalone mode. The code is based on this and this.ux_device_class_cdc_acm_write_run worked perfectly, but ux_device_class_cdc_acm_read_run doesn't work.No matter what kind of texts I send, ux_device_class_cdc_acm_read_run returns "T" (84). The code I am using is this;uint8_t UserRxBuffer[APP_RX_DATA_SIZE]; VOID USBX_DEVICE_CDC_ACM_Read_Task(VOID) { ULONG actual_length = 0; UX_SLAVE_DEVICE *device; device = &_ux_system_slave->ux_system_slave_device; /* Check if device is configured */ if ((device->ux_slave_device_state == UX_DEVICE_CONFIGURED) && (cdc_acm != UX_NULL)) { #ifndef UX_DEVICE_CLASS_CDC_ACM_TRANSMISSION_DISABLE /* Set transmission_status to UX_FALSE for the first time */ cdc_acm -> ux_slave_class_cdc_acm_transmission_status = UX_FALSE
New question Moved from this thread. Hello @mƎALLEm Thankyou for the reply. I was trying to connect stm32U585aii6Q and STM32N6 with same audio codec MB1219 & wifi, of course one at a time. Can you guide is it possible to do. Thanks Regards, Sakshi
Hi, I'm using stm32h7, currently working with SPI + DMA in HAL library, because of HAL overhead I want to move to LL library, where can I get the SPI+DMA using LL library examples, regards, Srinath
Hello everyone,I am interfacing ADXL345 in stm32f103c8t6 by using I2C connection. I have fixed the set up on a board. I would like to know if I can identify the movement of adxl by observing the changes in x, y, and z values if there is no vibration but the board is moving smoothly, that is, to the right or left. If not, how can I predict when the adxl will go forward or backward without relying on the sensor's tilt or vibration? I just want to create a basic activity detector where the logic would be :1. If the setup does not move, the output should be zero.2. If the setup is vibrating and moving, the output should be one.3. If it is simply vibrating (and not moving in space), the output should be 0.So, basically, I want to detect actual movement and not just vibration noise.I noticed that when the movement is smooth or constant ADXL345 values do not change much, so my logic is not detecting that as “motion.”STM32f103c8t6<-> ADXL345PB6<->SCL PB
Hello!I am currently troubleshooting an issue on a customized board based on the STM32F469IIT6 MCU. The board leverages MIPI-DSI Video Burst Mode to render a TouchGFX UI on the display.The problem manifests as follows: the display works perfectly normal when the video signal initializes, but the image intermittently shifts within 5 minutes after power-on.I have captured the MIPI-DSI video signal using an oscilloscope for analysis. The results indicate that the synchronization signal of the DSI output remains stable as expected, while a noticeable delay occurs in the pixel data transmission — which is the direct cause of the image shifting issue.I had confirmed that the registers of the DSI and LTDC wasn't changed before and after the shift. The DSI and LTDC shows no warnings or errors.What could be the root cause of this? Is there any solutions?You can find the shifted image displayed and the wave captured in the attachment.
Hi. I'm having trouble using the old USB Host Middleware to read a USB stick with a STM32U545.I've tried to follow this article, doing my best to adapt it for the host middleware and also using the "FatFs_USBDisk" example project for the F767 Nucleo board and a usbh_conf.c/.h written by a coworker for another U545 project which supposedly worked at least once.My code fails in Enumeration when the MCU tries to get the device descriptor - The MCU sends a SETUP packet and a DATA0 packet with 0 bytes (instead of the expected 8) and the stick sends an ACK. The MCU then sends an IN packet and the stick sends a NACK. The IN & NACK are then repeated for many frames until the stick sends a STALL instead.Can anyone help me identify where the bug is and how to fix it?Thanks.
Hi allI am looking for a solution to prevent the NULCEO-H563ZI board from resetting every time the USB-C cable to the PC is plugged in and out. The virtual COM port of the ST-LINK is used to send configuration data to the board. Therefore, it is not so handy if it resets itself every time I unplug the PC. It is supposed to continue to run.The NUCLEO is supplied by 3.3V from a host board, so no PWR-SEL jumper is set and SB1 is removed. The on-board crystal oscillator is used (SB48 and SB50 equipped with 0R's and SB49 of ST-LINK clock is removed). Thanks for your inputs :)
Hi Everyone, I've followed STguide on Ethernet on H755 using RTOShttps://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308/page/2/show-comments/trueand a github on ETH on bare metal (my case)https://github.com/AngryCarrot61/NUCLEO-H755ZI-Q_003_ETH?tab=readme-ov-file i got the board to work and ping, I've implemented MPU and connected it to a laptopDHCP is disabled, my laptop ip is 10.0.0.100, subnet 255.255.255.0, gateway 10.0.0.1the mcu ip is 10.0.0.60The ping works only if i flash the M4 core with an empty application which gets halted by the HSEM (it never works unless i flash the M4 first after power up) and the connection never lasts more than a minute. Looking for some help, i've included the whole zip file of the project if someboy could replicate it on their machine, i'm using a H755ZI nucleo boardThe problem seems to be releated to Rx heap size, but I'm lost
What is meant by watermark concept in chromArt Controller, Whats the application of it can you explain in detail and clearly
Hi Sir,From the schematics of steval-usbc2dp, the AUX channel is connected to both STM32 MCU and display unit(sink).Does it mean, STM32 MCU can access DPCD information between Host terminal(source) and display unit(sink), or transmit DPCD to display unit instead of Host terminal?Thanks,Eric Fu
I am facing very weird issue in STM32 ADC.1. I used single channel in polling mode and interrupt mode the value i got was 4095, even the pin voltage was 1.7V, i used DSO to look for any serious noise on the pin but it was clean.Also if i gave 0V to this pin (pin 29 Ch10) it displayed adc value round 30.2. Then i tried DMA for single channel CH0 it behaved same.3. Then i tried DMA for 3 channel Ch9,Ch10,Ch11... behavior was same but this time if i touched any of the ADC Channel from ch9 & ch11 the value of Ch 10 became 2200, which was quite correct.4. Then i tried DMA for only Ch10 then adc value became 4095 for 1.7V and touching any pin doesnt do anything.Just if i give 0V instead of 1.7V adc value come near to 30-40.5. Circuit checked multiple times its a custom PCB, connections are solid.. track distances are well above the standard.6. I am using STM32CUBEIDE to generate the code. Unable to figure out what wrong i am doing. for information:- I have used ADC of STM32 mul
Hi there,I am quite new to this embedded platform. I am trying to work on enabling uart7 on the STM32H7S78-Discovery kit, while working on this display GUI using touchgfx designer 4.26.0. After scouring through some videos it is recommended to open up .ioc configuration file using STM32cubeMX to enable the peripheral (e.g uart7). However after generating code and using STM32cubeIDE to flash the H7S78 discovery kit the screen goes blank after reset button was pushed. Could you advice what is the right workflow with touchgfx -> STM32cubeIDE and STMcubeMX (to enable peripherals) -> back to touchgfx to further add/change touch buttons etc
Hi Everyone, I wanted to add a audio codec with stm32U585aii6Q can anyone share he reference or guide how can it be done. Thanks Regards Sakshi
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.