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
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
Follow-on from CubeMX code generation from command line.I am posting again in hopes of getting meaningful answer.I tried creating a simple script text file to automate code generation for my project. The script file has all of three lines:config load DCC_tester.iocgenerate code .exitThe feedback I got on why it did not work was my .ico file was corrupted. To prove this was not the case I used a very simple project file using one of your example projects from one of your released STM32H5 bundles.The only modification I made was changing the name and making it a cmake project.I am running on Windows 11 with CubeMX installed using all defaults.I can click on the .ioc file from Windows Explorer and the MX IDE opens just fine. I can click the "GENERATE CODE" button and that also works just fine. All the files are generated as expected.I try launching using the -q using ether a PowerShell script or a command line batch file and neither completes although it looks like its trying.
Hello everyone,I am currently working on a project using the STM32H755 microcontroller, and I am facing an issue with the program getting stuck in the `Reset_Handler` during debugging. Specifically, the code halts at the instruction `ldr sp, =_estack`, which sets the stack pointer, and does not proceed further.### Project Setup:- **Microcontroller**: STM32H755- **Core**: Only using the Cortex-M7 (CM7) core, with Cortex-M4 (CM4) code generation disabled.- **Debugger**: ST-LINK V3- **IDE**: STM32CubeIDE- **Firmware**: No custom firmware for CM4, only CM7 is active.### Steps Taken:1. I created the project with STM32CubeMX, configured it to use only the CM7 core (CM4 is disabled).2. During debugging, the code reaches `Reset_Handler` but gets stuck at `ldr sp, =_estack`.3. I have tried stepping through the code and confirmed the program halts at the stack pointer initialization.### Possible Causes Considered:- **Dual-Core Synchronization**: Since this is a dual-core MCU, I suspect there mig
A new question moved from this thread. Thank you a lot! But still I have many questions regarding this. Like this one: I have configured the ADC with the Temperature Channel and Vref int channel to be used with DMA. However in many examples they show how to configure the rank for the DMA but the rank option is missing within my CubeMX: Is this a bug or I'm missing something?
Hi, I'm stuck on a problem with setting PWR_CR_VOS on NUCLEO-32 STM32L031K6- I want to select HSI16-PLL as clock source- VDD is 3.3V- FLASH latency is set to 1WSBut I can only set PWR_CR_VOS to RANGE 2 and RANGE 3.RANGE 1 cannot be selected, so I can't set HSI-PLL to 32MHzwhere am I going wrong?Example code:// Set the Flash ACR to use 1 wait-state// and enable the prefetch buffer and pre-read.FLASH->ACR |= (FLASH_ACR_LATENCY | FLASH_ACR_PRFTEN | FLASH_ACR_PRE_READ);//----------------------------------------------------// 1. POWER ENABLE CLOCK and VOLTAGE REGULATOR//----------------------------------------------------// APB2ENR->SYSCFGENRCC->APB2ENR |= RCC_APB2ENR_SYSCFGEN;// APB1ENR->PWREN: Power interface clock enable bit for PWRRCC->APB1ENR |= RCC_APB1ENR_PWREN;// PWR: VOS[11:2] bits (Voltage scaling range selection)// !!! 0x0UL: FORBIDDEN// 0x1UL: 0b01 RANGE 1 1.8V 32MHz// 0x2UL: 0b10 RANGE 2 1.5V 16MHz// 0x3UL: 0b11 RANGE 3 1.2V 4.2MHz// Clear VOS bitsPWR->CR &
generated a new cubeIDE project with cubeMX, for my U585I-IOT02A board, the only things I changed are PC1 pin to high level and toolchain/ide to cubeIDE.building gives me this error : /opt/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.100.202509120712/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: read in flex scanner failed no matter what I do or find on internet, I can't get it fixed... I'm on arch linux and installed all stm32 softwares with aur and zip downloaded on the st site if needed.
Hello everyone, I have a NUCLEO-H723ZG board and I would like to establish Ethernet communication with it. The board already includes a LAN8742 chip as the physical layer. However, in my system there is an external LAN8720 magnetic Ethernet module. At the moment, I can successfully ping the board using the on-board LAN8742 with the LwIP_UDP_Echo_Server application example. What I want to do is disable the on-board LAN8742 and instead use the external LAN8720 for Ethernet communication. I could not find any example where an external PHY is used together with an STM32 board that already has an on-board PHY. First of all, is such a setup actually possible? If it is, can I connect the external LAN8720 to the ETH header pins in RMII mode and make it work by adding the LAN8720 PHY driver? I have seen some discussions stating that this cannot be done without physically removing the LAN8742 chip, possibly due to pin conflicts. Could you please clarify this for me? Is it possible to achieve Eth
Sir, I have installed stm32cubeide 2.0.0 which is latest version. I opened cube mx and created a new project and selected new x cube ai package and generated the code, works fine and done successfully.after that i press exit the project, then i open the project but the x cube ai package is not selected in cube mx, and even i saved also why? please help me @Nalle @LMSTM @Balabala
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code or a script. Please read this post: How to insert source code. Hi This is something very easy that I am missing or impossible. I am using a nucleo-l476 to drive an RA8875 with a flash memory attached. This is using touch gfx to drive the RA8875 LCD. I am switching in/out of memory mapped mode to rewrite part of the flash memory so I can load different images into the flash memory and touch gfx will load the new images from the nor flash (This all works beautifully). what I am trying to do is have touch gfx load an image to a different part of the nor flash using partitioning. see linker below. MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 96K RAM2 (xrw) : ORIGIN = 0x10000000, LENGTH = 32K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K QSPI_NOR (xrw) : ORIGIN = 0x90000000, LENGTH = 8M QSPI_NOR_P (xrw) : ORIGIN = 0x9
Hi, I am designing a PCB using STM32G0B1RE to be deployed in automotive environment. I need to add ESD protection on its GPIO and ADC pins. I was going through AN5612: ESD protection of STM32 MCUs and MPUs. (Since any specific STM32 family is/are not mentioned in the doc, I think that it should be applicable to all the families.) Under subsection "3.3.4 Other serial interfaces", for I2C-bus ESD protection, the suggested part no. is USBLC6-4. Its electrical characteristics (see attached image) mentions that its V_BR (min) is 6.1V. As per the STM32G0B1RE datasheet, the maximum allowable voltage on any pin is 4.0V to 5.5V (depending on the pin).As per my understanding, V_BR of the ESD diode should be less than the AMR (Absolute Maximum Rating) of the concerned pin. My doubt is that whether the above mentioned ESD diode would be appropriate or are there some other parameters that are needed to be taken into consideration?What is the best approach to select the ESD
HI, how do I read the temperature value of a STM32C071 ADC and convert it into °C using DMA? I cant find any formula in the datasheet. BR Matthias
Question moved from this thread. + Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code and a linker script content. Please read this post: How to insert source code. One more question, if you can help. BSP_TS_GetState(& osc->touchScreen); BSP_TS_Init(ILI9488_TFTHEIGHT, ILI9488_TFTWIDTH); BSP_TS_Init and BSP_TS_GetState are not recognized by IDE versions 1.19 and 1.20. I have to disable them to compile, so the TOUCH doesn't work. C:/Users/Valter/STM32CubeIDE/workspace_1.19.0/Oscillo_STM32G431CBU/Debug/../Core/Src/oscilloscope.c:48:(.text.oscilloscopeInit+0x138): undefined reference to `BSP_TS_Init' C:/Users/Valter/STM32CubeIDE/workspace_1.19.0/Oscillo_STM32G431CBU/Debug/../Core/Src/oscilloscope.c:231:(.text.serveTouchScreen+0x10): undefined reference to `BSP_TS_GetState' I have never used this command before. Thanks
Hello to everyone,I'm using a custom board based over STM32H743XIH6.I'm developing a project that need to use TouchGFX, FreeRTOS and LWIP over ethernet. My first goal it's to be able to PING the card while TouchGFX is running, but i'm having lot of problems (hardfoults) If I enable only TouchGFX + FreeRTOS all run wellIf I enable only LWIP + FreeRTOS I can PING the cardIf I enable all (LWIP-FREERTOS-TouchGFX) I have lot of problems (HardFAULTS).Someone could share a simple project that can use all of them?I'm using a Custom board but i could try to a NUCLEO H743ZI KIT too.Best Regards.Roberto
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.