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
Attempting to download the new STM32CubeMX 2.0 (required since not included in STM32CubeIDE anymore) does not work from your site.https://www.st.com/content/st_com/en/stm32cubemx.html# has links all over the page to "Download STM32CubeMX"...Unfortunately all these links have the same problem: a License Agreement comes up, but when I click Accept nothing happens.There's not an obvious way to download in any other way.
Here: https://wiki.st.com/stm32mcu/wiki/Software_development_kit
Edit: Sorry it was because I didnt gave ARCH parameter to make. (it looks like) I am trying to build u-boot for stm32mp157f-dk2 using git clone -b v2023.10-stm32mp-r1 https://github.com/STMicroelectronics/u-boot.git I am getting below error: HOSTCC scripts/dtc/dtc-parser.tab.o CC lib/asm-offsets.s CC arch/arm/lib/asm-offsets.s /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() /usr/lib/pyth
I am part of a small team trying to build a small robot as our Hobby. Most of us are without a lot of knowledge on Electronics, so we turn to ChatGPT for most of our development.We started our work on this particular Evolution board. We have used it to test our sensor integration, UART communication, and it has worked fine so far.Yesterday, we tried running our BLDC motor using a motor driver. I am not sure if the connections and code were accurate since we followed ChatGPT's instructions. But after our first test, we haven't been able to flash the board again and keep getting this error.I followed the solution pasted here earlier, but even after connecting BT0 to 3.3v, it doesn't connect in the STM32Programmer, and we are unable to erase the chip. Also, whenever it's connected, the ST Link section and the CN7 part of the board heat up pretty quickly.Any guidance on how we can proceed forward will be much appreciated. We are a group of recent graduates, and we can't afford to keep
Hello,I'm using STM32 for a long time and really enjoy these devices to work with them.But I'm a passionate about aviation and I want to build my own A319/A320/A321/A330 PFD/ND displays.My idea is to use USB or Ethernet to send compressed image from X-Plane 12 to a STM32 MCU.What I'm trying to achieve is to use a small number of devices to show the PFD image on 2 square displays of 800x800 MIPI 4 lanes.I found some IC which can convert LTDC RGB888/RGB666/RGB565 to MIPI 4 lanes (like TC358778XBG).My questions are:1. There are any MCUs with dual phisical LTDC avaiable from STM? In case there is no MCU available, I will use one per display.2. FMC can be used with SDRAM + LCD in the same time? Because I saw the physical lines are shared. Thanks.
A new question moved from this thread. In many examples they use the Vref int for the calculation of the temperature. Do I need it for the C0 also or can it be done without?
Hi STM32 community.I'm working on an embedded system which uses a RK3399 CPU (running Linux, functions as a USB host) and a STM32F302CC (Runing FreeRTOS, functions as a USB device). This runs on a custom motherboard. They communicate with each other through virtual COM ports over USB (using this library https://github.com/IntergatedCircuits/USBDevice).This embedded system has been around and in use for several years and thousands of units are operational. 99,99% of the time (or something like that) everything just works just perfectly. But every now and then, during some special circumstances which have not yet been fully understood (MCU brownout maybe?), some devices will end up in a weird state where the MCU seems to be running, but the USB device (i.e. the STM32F302CC) does not enumerate in Linux on the CPU side. This can be seen in kernel log as something like this (or similar):[81228.001719] usb 7-1.4: new full-speed USB device number 40 using xhci-hcd[81228.06569
Hello everyone,I am currently working on an audio project using the Nucleo-WB55 board and the SGTL5000 codec. I am using the SAI peripheral in I2S mode to transmit and receive audio data, but I am facing an issue when testing a simple loopback setup.My SetupHardwareNucleo-WB55SGTL5000 audio codec (not yet fully connected — initial tests are loopback)SAI SD line of Block A connected directly to SD line of Block B for loopback testingSAI ConfigurationSAI Block A: Master, TransmitSAI Block B: Synchronous Slave, ReceiveI2S standard, 16-bit dataTX and RX audio buffers: 16-bit elements, each with 10 entriesDMA enabled for both TX and RXInterrupts enabledCircular DMA mode used on SAI Block B (receiver)Test ProcedureStart SAI B reception with circular DMA.Start a blocking transmission on SAI A: HAL_SAI_Transmit(hsai_BlockA, buffer, sizeof(buffer), 1000); TX SD line is physically looped back to RX SD line.Issue ObservedIn the RX buffer, only the first half of the data matches the tran
Hello ST Community,I’m currently testing an SGTL5000 audio codec with the STM32WB55 Nucleo board, and I’ve run into an issue where audio only works when analog test mode is enabled. I’m using the Hathor SGTL5000 audio breakout board from PCBWay (project link).System ConfigurationSTM32WB55 Nucleo-BoardSTM32CubeIDE Version: 1.18.1STM32CubeMX Version: 6.14.1SGTL5000 Board: Hathor Breakout (PCBWay project)Connections to SGTL5000:VDDIO, VDDA, VDDD = 1.8V (external LDO)I²C only, pulled up with 4.7 kΩMCLK = 12 MHz from STM32WB55 via SAINo SCLK, LRCLK, or I²S DIN/DOUT connectedMic connected to MIC_L; HP_L/R used for headphone outputGoalTo establish an internal audio path on the SGTL5000:MIC → ADC → DAP (optional) → DAC → Headphoneswithout using I²S (just internal routing).ProblemSGTL5000 only outputs audio when analog test mode is enabled CHIP_ANA_TEST1.TESTMODE = 1; CHIP_ANA_TEST1.TM_SELECT_MIC = 1; CHIP_ANA_TEST1.TM_ADCIN_TOHP = 1; CHIP_ANA_TEST1.HP_HOLD_GND = 0; CHIP_ANA_TEST1.HP_HOLD_G
Hello,I got a problem with HAL library 10.4 for STM32L152RE in UART DMA transmission, the data is transmited only one time using the function HAL_UART_Transmit_DMA(&huart3,t_Buffer ,11) using uart3, after that the UART3 structure keep the "flag" huart3.gState to HAL_UART_STATE_BUSY and all the other transmissions failedit never come back to the HAL_UART_STATE_READY so it is impossible to make another transmission. I solve the problem by changing this flag state back to "ready" when transmission is done using indirectly the (callback) transmission interrupt provided in DMA1_Channel2_IRQHandler but it is not really a solution !! it should be OK once the data has been transmitted properly by HAL_UART_Transmit_DMA. is it a bug in 10.4 HAL STM32L1 release ( maybe previous ones too ) or this behavior is normal and I need to use that "manual solution" ? thanks Thierry
Recently brought 2 pcs STLINk V3 MODS. downloading all the documents from st site i didnot find right information(whre is SWD,SCLK, pin located in STLINK V3 MODS) so that i can connect to my target bare metal board of STM32F103 Series MCU. Very much time wastage buy doing fake stlink v2 , from authentic source i brought STLINK V3 mods in a hope that i can programe and debug. Help required.No fruitfull video, no fruitfull document available throughout of internet.
Hello,I am using the STM32H747IIT6 microcontroller along with the LAN8742A Ethernet PHY, configured in RMII mode. However, I am facing issues where the Ethernet interface is not working at all in my circuit. It appears there may be multiple bugs or configuration issues affecting the RMII driver.I suspect there are underlying bugs in the RMII driver implementation. I would appreciate any advice or suggestions on how to resolve these issues and get the Ethernet interface up and running as soon as possible.
The audio signal with 24dB gain set is reasonable quality but seems low in the noise. I added a slew filter which helps a lot, but I expected a clearer audio above the noise.The clock going to the mic chip is 1,024 MHz, these are my settings, if anyone has any ideas what might be causing this. Clock and data signals look good, little ringing. /* SETUP USER CODE END I2S3_Init 1 */ hi2s3.Instance = SPI3; hi2s3.Init.Mode = I2S_MODE_MASTER_RX; hi2s3.Init.Standard = I2S_STANDARD_PHILIPS; hi2s3.Init.DataFormat = I2S_DATAFORMAT_16B; hi2s3.Init.MCLKOutput = I2S_MCLKOUTPUT_DISABLE; hi2s3.Init.AudioFreq = I2S_AUDIOFREQ_32K; hi2s3.Init.CPOL = I2S_CPOL_LOW; hi2s3.Init.FirstBit = I2S_FIRSTBIT_MSB; hi2s3.Init.WSInversion = I2S_WS_INVERSION_DISABLE; hi2s3.Init.Data24BitAlignment = I2S_DATA_24BIT_ALIGNMENT_RIGHT; hi2s3.Init.MasterKeepIOState = I2S_MASTER_KEEP_IO_STATE_DISABLE; if (HAL_I2S_Init(&hi2s3) != HAL_OK) END... void MX_PDM2PCM_Init(void) { /* USER CODE BEGIN 2 */
Hi,Our development board uses BQ25120A for battery management.In the datasheet section 10.2.2.1 Default Settings, there is a statement:• If the function is not needed, connect TS to the center tab of the resistor divider between VIN and the ground.(pull up resistor = 14 kΩ, pull down resistor = 14.3 kΩ)We didn't need the TS function at this time, so we followed that advice. However, upon assembly, the charging did not work. We figured out it was because of a TS fault. Checking the datasheet again, section 9.3.16 External NTC Monitoring (TS) says: "To disable the TS function, pull TS above TSOFF threshold." Then checking the TSOFF threshold, it's minimum value is 55% of VIN, and the 14k/14.3k divider only gives around 50%. I believe these values are applicable for the case when TS function is used with a 10k NTC (b=3370), contrary to what 10.2.2.1 says. And if the function is not needed, the pull up resistor should be 10k or less. So it is either misleading, or there is a mist
DearLike my subject says, I am looking for a replacement part for M48Z128-85PM1 as this is now obsolete. Thank you for helping me. kind regardsSanders
Hi!I'm having trouble connecting to an STLINK ISOL via STM32CubeProgrammer. The STLINK is authentic, I purchased it from digikey. The programmer is detected under Device Manager. The programmer's LED remains static red at all times. Sometimes STM32CubeProgrammer detects an STLINK device, but when I click connect it gives 10:40:01 : STM32CubeProgrammer API v2.21.0 | Windows-64Bits10:40:09 : UR connection mode is defined with the HWrst reset mode10:40:14 : ST-LINK error (DEV_USB_COMM_ERR)10:40:14 : Error: Problem occured while trying to connect Changing to software reset10:41:23 : UR connection mode is defined with the SWrst reset mode10:41:28 : ST-LINK error (DEV_USB_COMM_ERR)10:41:28 : Error: Problem occured while trying to connect And then, when I click refresh interfaces the STLINK interface disappears.Disconnecting from USB and reconnecting, when I try to update firmware and open device in update mode it givesError connecting to device ST-LINK/V2 (error 0x21
I'm having trouble changing the linker files to take 20 kB of flash from CM0+ for CM4's use on a STM32WL5. Is this possible?
Following the article Security:How to start with STM32CubeMX Secure Manager on STM32H57 - stm32mcu I'm stuck in the step 3.2 Boot Path Configuration. At this point, STM32CubeMX had grayed out the button "Select" in Boot Path Selection. It is released only when I configure Secure Mode in Project Manager. When clicking it and trying do configure a Boot Path, I can't get the final configuration ST_iROT_UROT_SECURE_MANAGER. Am I doing something wrong?I'm trying to use STM32CubeMX to generate a project with TrustZone activated. How could I include in a project the Middlewares MbedTLS and MCUBoot? Normally it should be in the "Middleware and Software Packs" list of packs installed but I have to copy them manually. When generating code sometimes I have to copy again because they are deleted.Thank you in advance.
We are pleased to announce that the minor version 6.16.1 of STM32CubeMX is available. What is new in 6.16.1: This release addresses and resolves the issues outlined below: Users of STM32CubeMX version 6.13.0 and later may encounter a HardFault exception on STM32C0 products (STM32C011x, STM32C031x, STM32C051x, STM32C071x, STM32C091x, and STM32C092x) when using the internal HSI clock with HSI_SYS_DIV set to 1: When a user configures the system clock frequency (SYSCLK) at 24MHz value or greater, changes the HSI_SYS_DIV from its default value from 4 to 1, and increases the RCC SYSCLK Prescaler value (HSI_SYS_DIV1 > 1), STM32CubeMX generates code that temporarily configures SYSCLK with RCC_SYSCLK_DIV equal to 1. This causes the SYSCLK to be set at 48 MHz and the Flash wait state to be set at 0, which is outside of the allowed range. After migrating to STM32CubeMX 6.16.0, the ADC injected channels stopped working correctly for the STM32F3 products: The value for the Queue Inje
Hi, just bought a STLINK-V3SET to use with EVSPIN32G02Q1S1 evaluation board.It doesn't seem to be able to connect via USB. I've previously recently used STLINK v2ISOL and it worked as expected, so i already had the driver installed and it should be the same driver.Tried different cables, different PCs, different USB ports, reinstalling the driver: to no avail.So what can be the reason here? I'd appreciate any suggestions.
Good morning, if possible, I would like more details about the following PDM2PCM(HP version) library used for converting PDM data to PCM. typedef struct{ uint16_t bit_order// MSB / LSB uint16_t endianness;// big endian / little endian uint32_t high_pass_tap;// hig_pass_tap = alpha*(231-1) #alpha[0:1] uint16_t in_ptr_channels;// number of input PDM channels uint16_t out_ptr_channels;// number of output PCM channels uint32_t pInternalMemory[PDM2PCM_INTERNAL_MEMORY_SIZE];// [default 23] I don't know, I need help here }PDM_Filter_Handler_t; typedef struct{ uint16_t decimation_factor;// decimation factor [16/24/32/48/64/80/96/128] HI_PERF[64/96] do the latter have faster execution times? uint16_t output_samples_number;// I don't know, I need help here... could it be the number of PCM samples or the number of PCM bytes in output? int16_t mic_gain;// gain [-12 dB: +51 dB] int16_t bit_depth;// PCM
Hello, I am using an STM32H723ZG6U and want to output a limited number of phase-shifted pulses on two pins. To do so I currently use TIM1 and TIM8 with PWM generation.TIM1 acts as the master timer having channel 1 in 'PWM Generation CH1' as the first output and channel 2 in 'Output Compare No Output' for the phase-shift. TRGO is configured as 'Output Compare (OC2REF)'. 'One Pulse Mode' is checked for this timer.TIM8 is the slave timer in 'Trigger Mode' with Trigger Source 'ITR0' which connects to TIM1. Channel 1 is configured as 'PWM Generation CH1' for the system's second output. This timer is also in 'One Pulse Mode'.Apart from that both Counter Settings and PWM Generation channels are configured identically to fit my needs. When starting both PWMs for the first time after controller startup everything works as expected (i.e. PWM on TIM1 sends a number of pulses and then stays quiet, same with a phase-shift to TIM1 with PWM on TIM8). Pictures of the configurations are attached.M
Good morning everyone,I need to apply the "Closed" product state to my device using the STM32H573VI.I don't need TrustZone enabled and want to use a password for debug authentication.I wanted to perform the operation via "code" using the HALs, but once I set the state to "Provisioning(0x17)" from "Open(0xED)," my firmware won't boot, and I can't even provision the *.obk file using the STM32CubeProgrammer.bool ProductState::set(states newState) { FLASH_OBProgramInitTypeDef flashOptionBytes= {0}; HAL_StatusTypeDef ret {HAL_ERROR}; if(newState == states::Unknown) { Log::msg("Invalid product state\n"); return false; } Log::msg("Setting product state to %s ...\n", toString(newState).c_str()); HAL_FLASH_Unlock(); HAL_FLASH_OB_Unlock(); flashOptionBytes.OptionType = OPTIONBYTE_PROD_STATE; flashOptionBytes.ProductState = (static_cast<uint32_t>(newState) << FLASH_OPTSR_PRODUCT_STATE_Pos); Log::msg("Program state ...\n"); ret = HAL_FLASHEx_OBProgram(&flashOpt
The Infineon AIROC-Wi-Fi-Bluetooth-STM32 Expansion Pack is an extension of the CMSIS-Pack standard established by Arm.The pack is compliant with the full CMSIS-Pack standard, with additional requirements/restrictionson the final pack to meet the STM standard. GitHub space: https://github.com/Infineon/AIROC-Wi-Fi-Bluetooth-STM32/releases/tag/release-v1.8.0What Changed?v1.8.0Support the STM32N6570-DKUpdate the H1combo clm to v3Update the btstack-integration to v.6.2.0Update the btstack to 4.1.4v1.7.1Update Wifi firmware 4373/4373E TO 13.10.246.356Update the wcm application to version 3.6Supported STM32 Boards and MCUSTM32N6570-DKSTM32L562E-DK kit and STM32L5xxSTM32H747I-DISCO Discovery kit and STM32H7xxSTM32U575I-EV Evaluation board and STM32U5xxNUCLEO-H563ZI board and STM32H5xxNUCLEO-H745ZI-I boardNUCLEO-U575ZI-Q boardSupported Connectivity ModulesInfineon's CYW43xxx Wi-Fi-BT combo chip family:CYW43012CYW43439 / CYW43438 / CYW4343WCYW4373 / CYW4373/ECYW43022CYW5551XCYW55572Com
Hello everyone. How are you?I created a test program based on https://community.st.com/t5/stm32-mcus/how-to-calibrate-the-stm32-s-real-time-clock-rtc/ta-p/744958 I calibrated and compared the signal (512Hz @ PB2) with an oscilloscope, resulting in an error of less than 20 ppm. The RTC worked for 24 hours, and the seconds were the same as my base source (Windows). To me, this indicates that the hardware, crystal, and capacitors are OK.After that, when I entered my application code, the RTC always showed a delay (error > 5000 ppm). My code never use HAL_RTC_SetTime or HAL_RTC_SetDate. Reading from the RTC->CALR register is the same as the calibration value.Regardless of whether the calibration is at -488 or +488 (maximum value), the RTC always lags. I have the feeling that the processor gets busy doing something, and ends up losing some RTC pulse.Unfortunately, I can't post the complete code here, but I can provide some other information:- 1 ISR timer every 1 ms- X-Cube F
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.