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
Hello, i have a problem with I2C SSD1317 OLED display in combination with STM32. On arduino it works. On STM it works with other controllers but not with SSD1317. Display is working and address is ok (because it's working on Arduino). I tried different speeds and pullups. Arduino and SSD1317:STM32 and SSD1306: STM32 and SSD1317:Arduino code://Atmega88 SSD1317 OLED 4 pins I2C //Buffer size 384Bytes //Four 7 segment numbers are displayed. No flicker. //Decimal point and frame graphics are provided. //Without the character table, 30% of Flash and Ram are used only. static byte bufr[384] = {}; unsigned long tim , bufridx ; #define oled 0x3c const byte initcode[]= { 0xae,0xd5,0x80,0xa8,0x2f,0xd3,0x00,0x40,0x8d,0x14, 0x20,0x00,0xa1,0xc8,0xda,0x12,0x81,0xcf,0xd9,0xf1, //0x81 contrast 0xdb,0x40,0xa4,0xa6,0x2e,0xaf}; void setup(void) { TWSR=0x00; TWBR=0x02; //8M / (16+2*2)*1 = 400khz // Set pre-scalers (no pre-scaling) //TWSR = 0; // Set bit rate //TWBR = ((F_CPU /
Hi, I’m working with an STM32C011F6P6TR device, and after programming it via SWD using STM32CubeProgrammer, the MCU became completely stuck in resetSymptoms- After programming an ELF file through STCubeProgrammer, the MCU no longer runs.- The NRST pin stays LOW permanently, even after power cycling.- I cannot reconnect with STM32CubeProgrammer, even using “Connect Under Reset” mode.- The tool returns: DEV_HELD_UNDER_RESET.- Removing power, disconnecting ST-LINK, reconnecting, and trying again does not help.Before programming, everything worked normally and I was able to connect and flash multiple times (Using VS-CODE and ST extension).Questions:What could cause the MCU to remain stuck in reset after flashing?Is it possible that option bytes got corrupted or misconfigured during programming?Is there any way to force a full chip erase or restore factory option bytes when the device cannot be accessed through SWD?Has anyone encountered a similar issue with the STM32C0 series where NR
Hello, I want to design a PCB with STM32H743VIT6 MCU. But I am not sure how can I choose crystal and capacitors properly. In STM32H743VIT6 datasheet there is one section about this topic;according to this information should I take the Cstray value as a10? (Many other documents suggesting 3-5 pf)so if I choose 16MHz 12pf Capacitor my values are gonna be like this;CL = 12pFCstray = 10pFC1 and C2 load caps,Formula : CL(crystal)=( (CL1 * CL2) / (CL1 + CL2) )+CstrayCL1 = CL2 --> C12 = ( C / 2 ) + 10pFC values are should be 4 pF instead of 12pf in the circuit ?
hi everyone, can anyone steer me to a Datasheet for this, or an identification please? thanks, elts
Hello everyone,I’m working on diagnosing and rewiring the control system for an Ingrem Veyron J20 gaming chair. The chair uses a servo module with an RJ45 connection to the handheld remote, and I’ve been tracing signals back to the main board (marked ST‑H801S‑V1.1 and ST‑H8‑CORE‑V2.1).Here’s what I’ve established so far:RJ45 pinout from the remote:Pin 1 → Green (likely RX)Pin 2 → Black (Ground)Pin 3 → Yellow (TX??Pin 4 → White (logic/handshake line, not VCC)The board itself has a separate AC power feed.With RJ45 disconnected, the board powers up fine (red LED lights). When RJ45 is wired incorrectly, the board fails to boot.I believe the connections come from UART1 and COM20, but I don’t know how they should map to the RJ45 connector:question_mark:What I NeedIf anyone here owns an Ingrem Veyron J20 chair, could you please:Photograph the main board (ST‑H801S / ST‑H8‑CORE) with the connectors attached.Show the RJ45 wiring harness and how the colored wires (green, black, yellow, whit
I am running Linux Mint And I have had STMCubeIDE 1.7 and 1.9 and just installed 2.0. It gave me an error the first time which I forgiot to write down, but it was in the window that normally lets me edit the .ioc file to assign my pins and activate the peripherals. I looked in the community and someone said unclick CDT in the Available Software Sites. Now it does not even ask to create/edit the .ioc file. I am wondering if things are getting confused because I have 3 versions of the STM32CubeIDE installed. How do I uninstall them, so I can try to install a clean copy? I looked at one of my older projects and the .ioc file looks like a text file. #MicroXplorer Configuration settings - do not modify ADC1.Channel-0\#ChannelRegularConversion=ADC_CHANNEL_5 ADC1.Channel-1\#ChannelRegularConversion=ADC_CHANNEL_6 ADC1.Channel-2\#ChannelRegularConversion=ADC_CHANNEL_7 ADC1.Channel-3\#ChannelRegularConversion=ADC_CHANNEL_8 ADC1.Channel-4\#ChannelRegularConversion=ADC_CHA
Hi,I am working on an STM32N6 project inspired by the peopleDetection example in which I try to run a yolov8 for instance segmentation.My pipeline uses camera (DCMIPP) + LTDC display + NPU inference (ATON / X-CUBE-AI).Each subsystem works correctly on its own:If I comment out the inference code in the main while, camera + LTDC work perfectly.If I comment out the camera/display code and keep only the inference (LED toggle + delay), the LED blinks, meaning NPU inference works correctly.This behavior is consistent when programming through CubeProgrammer.However, when everything is enabled at the same time, the display stays completely black.The portion of code that causes the issue is:LL_ATON_RT_Init_Network(&NN_Instance_Default);/* Run Inference */do{ll_aton_rt_ret = LL_ATON_RT_RunEpochBlock(&NN_Instance_Default);if (ll_aton_rt_ret == LL_ATON_RT_WFE){LL_ATON_OSAL_WFE();}} while (ll_aton_rt_ret != LL_ATON_RT_DONE);/* End of Inference */LL_ATON_RT_DeInit_Network(&NN_Instance_De
Hi ST team,I am using STM32U5G9J-DK2 board and the verson of STM32CubeProgrammer is v2.21.0.I tried to reset MCU to factory settings (in option byte tab) using STM32CubeProgrammer but failed.After that, STM32CubeProgrammer could no longer connect to the board with below log.14:23:14 : STM32CubeProgrammer API v2.21.0 | Windows-64Bits 14:23:25:813 : Selected loader: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/ExternalLoader/MX66UW1G45G_STM32H7S78-DK.stldr 14:23:25:814 : External loader C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/ExternalLoader/MX66UW1G45G_STM32H7S78-DK.stldr is unloaded 14:23:25:814 : Selected loader: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/ExternalLoader/MX66UW1G45G_STM32H7S78-DK.stldr 14:23:25:814 : External loader C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/ExternalLoader/MX66UW1G45G_STM32H7S78-DK.stldr is loaded 14:23:28:572 : UR connection mode
Moved from this thread. Why does attempting to compile this example result in these errors? ../../USBX/Target/ux_stm32_config.h:29:10: fatal error: stm32h5xx_hal.h: No such file or directory 29 | #include "stm32h5xx_hal.h" | ^~~~~~~~~~~~~~~~~
Hi everybody,I'm trying to make a bootloader in my STM32F446. The aim if this one is the possibility to update the firmware but with keeping the previous one in case of issue. So, I'll have two slots for firmware.For now, I have the following sectors in my flash :BOOTLOADER : 0x0800 0000 -> 0x0800BFFF (it only uses sector 0 & 1 for code, so I use last word of sector 2 (0x0800 BFFE & 0x0800 BFFF) to write a "magic word" which gives me the information, if we're currently running on SLOT 1 or 2).SLOT 1 : 0x0800 C000 -> 0x0800 3FFFSLOT 2 : 0x0804 0000 -> 0x0807 FFFFMy FW is running on slot 1. It receives the order to update, so it restarts, checks on which slot the new FM must be copied, writes into the flash, and starts again on new slot (and this is done at each update, so FM is running on SLOT1/2 alternatively).Everything works well, except the last step, it always run on slot 1 (even if all the code has been written in the slot 2).In the two first 32 bytes (0x0800 0000
Hello,I'm new to this STM32 products. We designed custom module with STM32F103CBT6TR. We are facing issue with serial boot loader.I'm using CH340 UART to USB converter module. CH340 MOD TX --> Our Module's RXCH340 MOD RX --> Our Module's TXCH340 MOD GND --> Our Module's GNDAnd our module is powered by USB connector.Boot mode configurationBoot 0 is HIGHBoot 1 is LOWI'm using STM32cube programmer tool.When I try to connect our module, I'm seeing the above error. Just to confirm CH340 module, I tried that with Nucleo board. With Nucleo board I can see it is able to connect without throwing any error.I tried other reccomondations which are mentioned in this community post like hold reset button and plug USB and then try pressing connect in the STM32cube programmer. But that also, didn't help. Any help will be really appreciated.Thank you.
From the ES0335 errata there are two errata that look pretty significant for dual bank boot (which I'm planning to use as the basis of field firmware update):2.2.8 Dual-bank boot not working when the boot in flash memory is selected by BOOT0 pinDescriptionWhen the nSWBoot0 option bit is set and the BOOT0 pin level is low, the dual‑bank boot does not work (BFB2option bit = 1).The user code is only executed when BANK 0 is valid.WorkaroundDo not rely on the BOOT0 pin to select the boot in flash memory. Instead, use the option bytes for that purpose,setting the nSWBoot0 option bit to 0, the nBOOT0 option bit to 1, and the BFB2 option bit to 1. This setting allowsthe correct check of the address 0 of the two memory banks, in order to execute from the correct one.2.2.9 Dual-bank boot fails with stack pointer placed within aliased SRAM2DescriptionIf dual-bank boot is selected through option bits, the bootloader checks the contents of either flash memory bankfor validity. It conside
The board was designed incorrectly, they have pins for a JTAG but forgot to actually route them to the MPU. The eMMC is not going to have a first-stage bootloader on it, and it's looking like it's not possible to flash an SPL to the eMMC over USB alone? Management won't be happy to do another board spin but it's sure looking like that's the only path forward.ChatGPT says:USB DFU alone cannot flash first-stage bootloader (SPL) to eMMC on a totally blank STM32MP135.This is not a dfu-util bug — it’s how the STM32MP1 ROM works.You need hardware access to write SPL + U-Boot to eMMC:Option A: SWD / JTAG (ST-LINK)CubeProgrammer can directly write SPL + U-Boot to eMMC.Option B: SD card bootThe ROM can load a SPL + U-Boot image from SD into RAM and then copy it to eMMC.
I have an I2C device that only operates with 1.8V logic (Pins are not 3.3V tolerant) that I want to connect to the STM32N6. I don't want to add an I2C redriver if I can avoid it. I want to keep as many of my I/O pins on the STM32N6 powered from 3.3V as I can. Which power rail on the STM32N6 determines the logic high voltage for the I2C bus? I want to use the 1.8V rail on my design for the I2C SDA and SCL pull-up resistors.Thanks
How can I activate CSI i STM32CubeIDE for STM32MP257?As you can see, I'm missing something.Any special clock I need to activate?I have activated CSI from DCMIPP. But still the CSI cannot get its pinns green.
Greetings everyone!I've been quite busy this year with other MCUs and haven't been able to continue my STM32 learning, but this year, 2026, it will be a priority. With that in mind, I've already started creating project templates with LwIP and other protocols, as well as useful drivers and libraries to facilitate my work.The big difference is that I'm releasing these projects as Open Source under the CC-BY-4.0 license, which will allow others to use them and learn along with me. I'm also open to suggestions to enrich these examples. Another great advantage is that I'm using CMake. I chose this approach to make project creation as easy and decoupled as possible.The pileline works as follows:* You can create the project via CubeMX, inserting all the necessary resources and middleware.* Then, simply make the desired adjustments and customizations.* From this point forward, the project build orchestration will be entirely via CMake.If any colleague would like to contribute to this in
Heyho,I'm working with a STM32G431 on a Nucleo-32.I've played with it before some years ago, so I already put on a 24 MHz crystal "HSE".I'm using only the in-built ST-Link's USB power as a source.Problem:after connecting USB, the reset button must be toggled to start the controller.Any ideas how this can be prevented?We want to use the Nucleo for some in-house testing, and it would be nice if the controller started instantly at power-up without the reset button (which might be "hidden" in a small case).Google and search here didn't really show this problem.Thanks!
I have an Queary ,How to design Firmware Of Bridge less Pfc Circuit ?For Below Specifiction input Voltage is varrible(Comes In AC) input current is constant (2.8 amps and 6.6amps )output voltage is constant 24vDCoutput Current Is 1.5AmpsNote : Input Device Name Is Constant Current Regulator .So kindly Suggest How To Design Firmware And Calculation Of Frequency As Per Circuit (Like Inductor RIpple And All)Circuit Digram Is Attached . Regards,Nilmani
Hello, I’m trying to transmit data at 2.5 Mbps (2500000 baud), but I’m not receiving any output. The same code works correctly at 2 Mbps, so the issue only appears when using 2.5 Mbps.I tested both 64 MHz and 40 MHz clock configurations for the UART. At 64 MHz, CubeMX shows a warning:“Real Baudrate set at BRR register is 2.461538 Mbits/sec. Error: -1.54%.”Because of this error, I switched to a 40 MHz configuration, which gives the exact 2.5 Mbps baud rate—but I still don’t receive any data.Is there any additional configuration required to make the MCU reliably transmit at 2.5 Mbps?
Dear STM32 Support Team, I am working on implementing CAN communication using the standard SAE J1939 protocol on an STM32-based platform and would like your guidance. Could you please suggest: Recommended STM32 example projects or application notes for J1939 over CAN. Any official STM32Cube examples, middleware, or partner stacks for J1939. Best practices for configuring the CAN peripheral (bitrate, filters, extended ID usage) specifically for J1939 on STM32. Recommended approach for reading GPIO inputs (three switches) and mapping them to different J1939 messages or PGNs. I am happy to provide details about my MCU part number, board, and current code if needed. Your support would be very helpful for moving this feature to completion. STM board: STN32F207ZG Thank you in advance for your assistance. Best regards,Suman Uppala
Hi, may I confirm whether the STM32H755 supports only the muxed PSRAM configuration? I want to experiment something with an unmuxed connection with separate data and address. Is there a work around on this or is it an internal design that I cannot change
Hello,We are using STM32U375xx/85xx MCUs and want to implement firmware update over UART using another MCU (ESP32-S3) in out application.The ESP32 will send the .bin firmware to the STM32 without using any ST utility (e.g., CubeProgrammer).From the STM32 AN2606 bootloader document, I understand that normally BOOT0/BOOT1 pins must be set to enter System Memory.Question 1 — Entering Bootloader via SoftwareWe want to enter the system bootloader purely by software, without toggling hardware BOOT pins.How can this be done on the STM32U3 series?Question 2 — Flashing Over UART from ESP32Could someone provide the correct sequence for flashing a .bin into STM32U375/85 using the UART bootloader protocol?(ESP32 will send the commands directly — no STM32CubeProgrammer involved.)Steps I am looking for:entering bootloaderUART initializationbootloader command sequence (GET, GETID, ERASE, WRITE, GO)any STM32U3-specific notesThanks in advance for any guidance.
Hello everyone.In a couple of past days I was trying to make the code execution from external PSRAM to work. I managed to load the code into external FLASH and then copy it to PSRAM at boot stage. The code runs nice but can't debug it for some reason. Debugging worked when I was running the code directly from external FLASH but when I introduced copying the data to PSRAM and running it from there I started to get errors. It wont even let me Run the program if I dont exit the debugger.I don't understand how it can't access the memory despite the application running fine. Edit: I found out that if I debug Boot project but add symbols from Application project too I can debug both fine.
Questions about the Transparent mode.The ST25R200 is cheaper then discrete components for a non-standard RFID interface ( at 848 KHz subcarrier )Questions about the transparent mode:I am struggling with the receiver in this mode.( An example with signal values from an oscilloscope, to just send a command and get the response would be enough.I assume the reponse being 10% modulation from the tag using the 848KHz subcarrier, for 102Kb/s standard bitrate. )Could someone give an indication about the signals coming out of the transparant mode.Is there a document?Just showing the TX being used to 'send a command' and the response on the receive channel would be really helpfulIn the picture in the datasheet, the receiver does have a 848KHz ( fs/16 ) receiver, followed by a dual ADC.( Is this a real ADC or just a comparator ? )( I and Q , I assume what is their sample rate ? 848 Khz, are these one bitter ? See questions further on)After these ADC there is a correlator ( Is this on the I and Q,
Hello everyone,I am working with the STM32F746G-Discovery board and trying to send ADC sensor data to a cloud server over Ethernet using LwIP (RMII mode). The goal is to send a JSON payload via HTTP POST.What I have implemented so farEnabled Ethernet (RMII) in CubeMXEnabled LwIP (static IP)Enabled ADC1 and UART6 for debuggingGenerated code using AC6/GCCAdded JSON formatting + http_post() callIssues I am facing1) HardFault during LwIP initializationThe system crashes right after:MX_LWIP_Init(); netif_set_up(&gnetif);A HardFault occurs before DHCP/static IP becomes active.2) DMA descriptor memory placement errorsThe compiler/linker shows errors such as:DMARxDscrTab memory out of rangeaggregate value used where integer expectedThe descriptors are currently placed like this:ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT] __attribute__((section(".RxDecripSection"))); ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT] __attribute__((section(".TxDecripSection")));I suspect the MPU configur
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.