Get ready for the STM32 Summit 2026 | Online, November 3
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 am planning to use STM32H562RGT6 in my product to communicate and update my firmware via CAN FD.To plan that, I am using STM32CubeMX 6.17.0, the datasheet and the AN2606 (Rev 70).And I would like to use only one CAN FD to communicate and to update my firmware in this MCU. But it is impossible to do this in STM32CubeMX. I have only access to FDCAN1. And there are no FDCAN2 on the pins.So, is it a problem in STM32CubeMX ? Or should we use FDCAN1 to do firmware updates via FDCAN for this MCU ?PS: it is the same problem with the MCU STM32H562VGT6 (and maybe other similar MCUs)
Title edited to flag that it's a clone ST-LinkI’m trying to flash an STM32G431CB on a B-G431B-ESC1 ESC board for a reaction wheel-based attitude control system. So there’s three ESCs each. For every one, I soldered 4 wires to the J4 SWD pads (SWDIO, SWCLK, 3V3, GND) and connected them to an ST-LINK V2. Just to clarify on my end, the wire colors don’t really follow any convention, so the red wire isn’t 3V~ I followed the schematic image where the actual pinout left to right is SWDIO, SWCLK, 3V, GND, which matches the correct J4 order. STM32CubeProgrammer is not detecting the chip. The error reads: UR connection mode is defined with the SWrst reset mode; but I am getting a target voltage at 3.25V (power is fine), but SWDIO/SWCLK don’t seem to be communicating. All target fields show dashes.I’ve confirmed that the wiring order matches ST-LINK V2 pinout, tried different connection speeds in CubeProgrammer, change the stlink v2 pinout, even changed my ESC (!) and I have the same i
Is it possible to program a STM32G071 from a raspberry pi running Raspbian OS? Is there a USB to serial driver for this?
I don't see ARM 32/64 bit in the system requirements of STM32CubeProg. Is it possible to get this running on like a raspberry pi 4? I am interested in CLI onlyor do you have other suggestions on how i could do a flash of stm32 chip (STM32G070CB)
Per the title really - I've just tried to install the Linux version on a raspberry pi running Raspbian / Debian 11.7 'Bullseye' and, well, NOTHING happens.If I click 'SetupSTM32CubeProgrammer-2.16.0.linux' nothing happens at all, if I select "execute in terminal" I get a brief flash of a terminal window, a mystery file of 0 bytes is created (named with a single unicode character and 'P').If I run it from the terminal I get:$ ./SetupSTM32CubeProgrammer-2.16.0.linux-bash: ./SetupSTM32CubeProgrammer-2.16.0.linux: cannot execute binary file: Exec format error Also why is a tool for programming microcontrollers a 286Mb download for which we must give ST our blood type and inside leg measurement just to be allowed to download it? :flushed_face:
I'm trying to use a Soracom SIM to experiment with the ST87M01 on the plan01s. Its not clear how to set the APN using the ST87M01. I tried AT+CGDCONT=1,"IPV4V6","soracom.io", but kept getting an +CME ERROR: 4.Any advice?
I have followed the datasheets and tried to calculate my reference voltage. I am supplying steady 3V on Vref+ pin but I wanted to confirm this because I have some troubles with the ADC precision.So I read the internal voltage both on my card and on a nucelo-C092rc. This is my results: My board:Vref+ = 3.0 * 1659 / 1805 = 2.755Nucelo board:Vref+ = 3.0 * 1665 / 1641 = 3.043However I am quite certain that the nucelo boards are using 3.3 V as reference and my board are using 3 V as reference.So if I swap the 3.0 V from the datasheet into 3.3 V I get the following:My board:Vref+ = 3.3 * 1659 / 1805 = 3.033Nucelo board:Vref+ = 3.3 * 1665 / 1641 = 3.348Which match more my expectations, can someone confirm or deny this typo?I add my adc init function:u16 uiDelay = 0; ADC_CFGR2.CKMODE = 0x0; // Clock mode set to ADCCLK ADC_CCR.PRESC = 0x2; // ADC prescaler set to 48MHz / 4 = 12MHz ADC_CFGR1.RES = 0x0; // Set 12 bit resolution ADC_SMPR = 0x07; // Sampling time set to 1,5 ADC clock cyc
Hi,I would like to use a Raspberry Pi to program the STM32F722RET6 micro controller via the RPI UART. My Problem is, that the Cube Programmer is not made for ARM architecture, so it cant run on the Pi.I cant find a solution for this, apart from emulating a x86 environment on the PI which I would like to avoid.Is there any simpler version of the Programmer which could run on a Raspberry PI?Thank you for your help.
Hi there, I want to flash a HEX file using a Raspberry PI. So I followed the steps described here.But if I run this line:$> ./SetupSTM32CubeProgrammer-2.13.0.linuxI get the message:bash: ./SetupSTM32CubeProgrammer-2.13.0.linux: cannot execute binary file: Exec format errorHas someone an idea why this is not working?Im running Raspbian GNU/Linux 11 (bullseye)
Hello, While using the Nucleo-F446ZE, I observed that pin PA1 remains at approximately 2.6 V during reset, even when an external pull-down resistor is applied. On this development board, PA1 can be configured as the RMII Reference Clock. However, I have removed SB13, so this function should be disconnected and no longer influence the pin. Given that no internal or external circuitry should be driving this pin and considering that an external pull-down resistor is present I would expect PA1 to be held at 0 V during reset. Why the pin is not pulled low in this condition?
In the "Debug Configurations" window (or at least that is the only place I have verified it so far), when scrolling down to access the options at the bottom, the mouse pointer might accidentally hover over a combo box. If you continue scrolling, the combo box cycles through its options down to the last value before the main window continues to scroll.This can cause (and has caused me) quite a few headaches while debugging one of my projects.I believe the correct approach would be to disable this scrolling behavior for combo boxes to prevent accidental changes.Best regards!
Hello,I have a few questions regarding image and audio formats on STM32U5.For graphics with TouchGFX, I see that PNG is usually used. However, in some MCU documentation it is recommended to use JPEG. Also, when I try to add a JPEG image directly in TouchGFX Designer, it does not work.Which format is preferable between PNG and JPEG for TouchGFX?Why is JPEG recommended in some MCU documentation?Is JPEG intended only for dynamic loading with software or hardware decoding?What is the recommended way to use JPEG images with TouchGFX, if possible?Regarding audio on STM32U5, which audio format is recommended such as WAV, MP3, AAC or other?Is there a specific library recommended for audio playback on STM32U5?Is there an optimized solution provided by ST?Thank you in advance for your help.
Hi,I would like to program the STM32F091 with the internal bootloader via UART (AN2606).My special case is that I have to do the programming not from a PC, it's a another embedded system that will control the programming of the STM32F091.So I'm looking for source code (C or C++) that I could migrate in my embedded system?Does this exist?Thanks
It's been asked before, but the answer has been, "it's not possible as it is not supported on ARM based devices"; eg,https://community.st.com/t5/stm32cubeprogrammer-mcus/installing-stm32cubeprogrammer-on-raspberry-pi/m-p/303881/highlight/true#M4329https://community.st.com/t5/stm32cubeprogrammer-mpus/how-to-install-stm32cubeprogrammer-on-raspbian/m-p/89242/highlight/true#M281https://community.st.com/t5/stm32cubeprogrammer-mcus/installing-stm32cubeprogrammer-on-raspberry-pi/td-p/303876So, is there any plan to make an STM32CubeProgrammer which will run on an ARM-based Linux Host?It could be quite useful for making a small, portable, standalone programmer ...
Hi, Our product uses 2 x STM32WB55 MCUs, where one as Server/Coordinator and the other one as Client/Router for Zigbee. However, our customer prefer to use customized PAN ID or Extended PAN ID so that more controllable and traceable by their application software later. Below is the setup of the Server/Coordinator and Client/Router in my firmware (modify based on sample code "Zigbee_OnOff_Server_Coord & Zigbee_OnOff_Client_Router"). ** Server/Coordinator :startupControl = ZbStartTypeForm;config.panId = 0x0001; // range from 0x0001 to 0xfffeconfig.extendedPanId = 0x00001; // incremental from 0x01 onwards ** Client/Router:startupControl = ZbStartTypeRejoin;config.panId = 0x0001; // range from 0x0001 to 0xfffeconfig.extendedPanId = 0x00001; // incremental from 0x01 onwards Questions:1. May I know the configuration above is enough and valid to do so?2. What are the steps needed or I missed out in order to use customized PAN ID or extended PAN I
hello ST Community!I'm trying to connect via UART without USB ST-LINK to the NUCLEO-H755ZI-Q for debugging from the STM32CubeIDE environment, but I can't connect.What settings do I need to make in the STM32CubeIDE environment to debug via UART?I tried connecting via UART from the STM32CubeProgrammer environment to simply read flash memory, but it won't connect.What settings do I need to make in the STM32CubeIDE environment to debug via UART without USB ST_LINK? Thanks for supports
Hello - I have a product I am commercially developing for a company - an industrial sensor system - STYM32G474 x 8 - using them for their very fast ADC - all good so far. I am using a SPI bus to get all the data back to as Linux SBC (pi CM5 for now - might change next year - needs 2 cameras and NVME).I would like to update all the STM32G474 over UART (for now) then over to SPI for production - using the raspberry pi cm5.Is there an open source C++ / python program that can do this from ST? - something like the old "https://github.com/stm32duino/stm32flash" but supports the newer chips? perhaps OpenOCD would work but that is even more connectors etc.
We've been succesfully using stm32flash in the past to flash our STM32 MCU that are attached to Raspberry Pi servers (no desktop or X). As we moved on to STM32G0 it seems that stm32flash is no longer working and we are forced to use STM32CubeProg to flash our firmware. Is it possible to install STM32CubeProg on a) ARM such as RPI, b) server with no desktop?To begin with, the installation instructions require the installation of OpenJFX which is not relevant (nor possible, in lieu of X) in this case, we intend to use only the CLI interface through scripts that perform the flashing.Then, trying to run the installation script on the RPI fails since the provided installation binary is for x86.
Hi, I would like to know when samples and kits for the new STM32H5E4/5E5 will be available.I already asked my local distributor this question, but they didn't know the answer. Ari
I'd like to use a STM32 Nucleo from my raspberry pi (raspian 64 bit ARM).From my x86 PC I use this https://www.st.com/en/development-tools/stm32cubeprog.html#st-get-software and download the linux version of the tools: this works. The same version doesn't work on raspberry pi as it's arm64 based: I get an " cannot execute binary file: Exec format error" error. I found no version of stm32cubeprog for raspberry pi arm on the STM web site (I tried macos arm version but get the same error than when setting up the linux version of the tool). Is there a way to get stm32cubeprog to work on raspberry pi (raspian 64 bit ARM) ? How and where to get binaries?
Hardware: STM32G473QETXHAL Version: STM32G4 HALI2C Mode: Slave mode using HAL_I2C_Slave_Seq_Receive_IT()Application: DS1307 RTC emulation Issue DescriptionWhen implementing an I2C slave device (DS1307 RTC emulation), we observe that HAL_I2C_ErrorCallback() is consistently called with error code HAL_I2C_ERROR_AF (0x00000004 - Acknowledge Failure) at the end of successful write transactions from the I2C master Transaction FlowMaster sends START + Address (0x68) + WRITESlave ACKs (address match detected)Master sends data bytes (8 bytes total)Slave receives all bytes correctly via HAL_I2C_SlaveRxCpltCallback()Master sends NACK (to signal end of write)Master sends STOPHAL_I2C_ErrorCallback() is called with HAL_I2C_ERROR_AFHAL_I2C_ListenCpltCallback() is also calledExpected BehaviorAccording to I2C protocol, the master sending NACK at the end of a write transaction is normal behavior to signal "I don't want to send more data." This should not be reported as an e
Hi,I am at the beginner/beginning stages trying to pick up STM32 ecosystem involving touchGFX and a display board STM32H7S78-DK. For now I would like to interact a touch button on screen to turn on an LED.Could I get guidance on the overall workflow if it is correct:1) touchGFX - generate UI and generate code2) open up STM32CubeIDE and import touchGFX generated .cprojects and other supporting files3) edit .ioc file to set LED pin (PO1) as output (active-low). save and generate code4) stm32CubeIDE -> build and run -> LED PO1 turns on but my display goes blankover at touchGFX when I try to regenerate code it states [generate code failure] Could I get some guidance thanks.
Hi,1. can we interface directly ST4SIM-200S with LTE modem? 2. how we will integrate service provider like airtel/jio please share me any readable document that how it works with cellular network.
Just posting this incase it helps someone with this problem that I encountered recently.I just update to new windows 11 laptop so I started going through the laborious process of installing all my tools including the latest STM32Cube programmer v2.22. Figured this would be a good time to update everything since I'm installing everything fresh anyway.The issue I encountered is that v2.22 will connect and program the STM32 MCUs just fine but if I try to run the Serial Wire Viewer SWV I get no print outs. I tried a lot of things like reinstalling windows drivers and reinstalling the software but none of that worked, slowing clocks down and other stuff. In the end I removed v2.22 and installed v2.20 and that fixed the issue immediately. #bug-report
Hello,TouchGFX seems to have some sort of a “bug”, where in PORTRAIT orientation the text will glitch with some weird white lines, unless there is an image in the item-tree situated ABOVE text items. It doesn’t have to be any image in particular, but MUST be an image.If there isn't any image added, then every text element is glitched the moment I rotate to PORTRAIT:touchgfx::HAL::getInstance()->setDisplayOrientation(isPortrait ? touchgfx::ORIENTATION_PORTRAIT : touchgfx::ORIENTATION_LANDSCAPE);The glitched text looks as such (see the white weird lines corrupting the text):This is my item tree in TouchGFX Designer (I also tried removing the background but the white lines remained):Then, if I add any kind of image, any text area under that image in the designer stack-up, it will be displayed without glitches and any text area placed above will glitch as such (Note, the XY location in the screen does not affect this, only the stack-up arrangement!):This is the stack-up to produce such
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.