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
HelloAfter upgrade STM32CubeIDE to 2.0.0 I have problem with programming multi core STM32WL55. Can download program to CM4 core, but not to CM0+. Before upgrading it worked OK. Now it generate message when programming CM0+: Erasing memory corresponding to segment 0: Erasing internal memory sectors [64 77] Download in Progress: Error: failed to download Sector[0] Error: failed to download the File Encountered Error when opening C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.300.202508131133\tools\bin\STM32_Programmer_CLI.exe Error in STM32CubeProgrammer Shutting down... Exit.It suggest the software try to program sector [0] dedicated for CM4 instead sector [64] dedicated for CM0+.When I erase whole chip in Cube programmer, I can download firmware for first time.Also path suggest older version of software (C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE)
Translator I would like to identify the following two diodes, please.
Hi @all @stforum @stforum2 @stforum.tormod9 @stforum23 @jkn_stforum I’m using STM32U535CBTx MCU, using STM32Cube IDE.Peripherals in use:I2C1UART4LPUART1SPI2GPIO PB8, PB9, PB10 for LEDsIssue: SPI2 works fine when TRNG is disabled.After enabling TRNG, SPI2 stops working.I’ve attached both .ioc files (with TRNG enabled and disabled). Could someone please review them and suggest a solution?Could anyone please:Review my .ioc filesExplain why this happens and how to fix this issue?Suggest how to use TRNG and SPI2 togetherI have attached two .ioc files for reference:sensor nodewith TRNG.ioc – this version has the TRNG peripheral enabled.sensor node without TRNG.ioc – this version does not use TRNG and SPI2 works correctly.Please review and help identify why SPI2 stops working when TRNG is enabled.”Thanks in advance!
Hi, I am using encoder mode TI1 and TI2 on TIM1 and TM3 to read encoder, however the polarity is just rising edge or falling edge. How do I know this encoder in x1, x2 or x4 mode?Thank you!
Hi,I'm experiencing an issue with the X-Cube-AI Pack (version 10.2.0) on Windows 10.After using the X-Cube-AI Pack, the syscalls.c file is either not generated at all, or if it already existed in the project, it gets deleted during the process.This is causing build failures since the file is required for proper compilation. I've tried this on multiple projects and observed the same behavior consistently.Could you please investigate this issue? It would be helpful if you could confirm whether this is a known problem or if there are any workarounds in the meantime.Thanks in advance for your support!Best regards
I have an application that needs to use several VL53l0x ToF sensors. The measurements need to be fairly responsive to a slow moving object approaching the sensor; so something like taking readings at 10Hz would be reasonable. Having tried a quick prototype with a single sensor on an Nucleo-F767ZI board it seems there is going to be a lot of I2C communication which will more-or-less saturate the CPU and not leave much spare time for the application functionality. One thought was if there is any way to use DMA to offload the heavyweight I2C communication. Something like setting the sensor(s) in continuous reading mode and then getting DMA to gather the readings and drop them into memory from where the application could pick them up as and when it needs them.The application is not especially 'critical' so there is no great need for accurate timing synchronisation or anything like that - just so long as the readings give a reasonable indication of a slow moving obje
Hello,I am exploring the STEVAL-25R200A, and I want to build a pollingTagDetect application, using NFC10A1_PollingTagDetect that comes with the X-CUBE-NFC10 package, in STEVAL-25R200-STM32G0B1.ioc but i can't get it to work.When i flash the code into the steval, this prints in the com4 port:Welcome to X-NUCLEO-NFC10A1Toggling Wake Up mode ONAnd that's it, nfc tags are never detected.I made sure to update the IPs for the ones that STEVAL-25R200-STM32G0B1.ioc includes. The steval works just fine in ST25R200 EVAL GUI and ST25PC-NFC GUI.I appreciate your help
My STMCubeIDE is not opening the ioc files or creating STM32 projects, it is acting like the ioc files are text files, not using the STMCubeMX mode to open them. I'd already tried reinstalling the STMCubeIDE a few times, in the C folder and in other disk, tried checking for updates, confirming the installed plugins, deleting the folder after uninstalling the program and many other ways to fix it. Can someone help me?? Please
The most viewed and commented post on the Imaging page had to do with an Init failure on the multizone part. These parts have large I2C writes at the beginning, which is downloading the Firmware (on the L5 and L7) and downloading patch updates on the L8. The solution was: uint8_t WrMulti(VL53L8CX_Platform *p_platform, uint16_t RegisterAddress, uint8_t *p_values, uint32_t size) { uint8_t status = HAL_OK; // Initialize status as HAL_OK uint32_t remaining_size = size; // Calculate remaining size to write uint16_t current_address = RegisterAddress; // Initialize current address // Loop until all data is written while (remaining_size > 0) { // Calculate the current chunk size to write uint32_t current_chunk_size = (remaining_size > chunk_size) ? chunk_size : remaining_size; // Perform write operation for current chunk status = HAL_I2C_Mem_Write(&hi2c2, addr, current_address, I2C_MEMADD_SIZE_16BIT, p_values, current_chunk_size, 100); // Check for error if (status
We are pleased to announce that STM32CubeMX 6.16.0 release is available. What is new in 6.16.0: Added support for new microcontrollers across the STM32WBA, STM32N6 and STM32H5 series and the STM32WL3x product line. The related new boards include the NUCLEO-WL3RKB1 and NUCLEO-WL3RKB2. Implemented the "Start from Board" feature for NUCLEO-WL3RKB1 and NUCLEO-WL3RKB2: Preconfigured board setup through the Start From Board feature simplifies project creation and significantly reduces development time. Released a new installer that natively supports Apple® Silicon : Native support of ARM64 for mac computers. Implemented the memory management tool for STM32N6: This feature is designed to assist developers in configuring and optimizing the memory layout of their STM32N6 projects efficiently. Enhanced the build process using CMake: Default configuration: ST ARM CLANG with its own linker instead of GCC linker. Picolib is selected as default library for the b
Hi,I'm attempting to write to an SD Card using a Riverdi STM32U5A9 display board. Since TouchGFX natively uses FreeRTOS, I'm attempting to keep it within FreeRTOS. Porting to ThreadX has caused it's own issues which I have in a separate thread. In the Configurator, there is no longer an option for FATFS, so I'm using the STM32U5 Classic MW Git Repository as recommended by the FAE. I copy over and update the templates as required, but am still getting a Hard Fault during f_mkfs while the HAL library is initializing the SDMMC. I believe that my configuration is incorrect, but the example is only for SDRAM, so I'm not entirely sure where I've gone wrong... I have it setup for 4-bit width and I've changed the clocks to be 24MHz at the SDMMC clock output. The examples within the configuration are for older MCUs and have a tab to enable the DMA. My understanding is that the STM32U5 has an Internal DMA, so it's not required to setup the DMA with
hi, I'm trying to debug stm32mp157f-dk2 by using stm32cubeide by using open OCD and gdbAfter connection, I'm constantly getting below error.I can't even single step in or run. "failed to insert all hardware breakpoints; you may have requested too many hardware breakpoints/watchpoints"
I have been trying for a while now to do something simular to this with threadxhttps://community.st.com/t5/stm32-mcus/how-to-use-stm32u5-with-freertos-in-tickless-mode/tac-p/857701#M1715I want to be able to put the MCU into STOP and wake from uart traffic, I am using threadx not freertos. I should note here that I have written a lot of code on the STM32U575 in the last couple years and have used threadx successfully quite a few times. Ultimately I want to add this to FW that is already running on a product so I would rather not change to freertos. For the purposes of figuring this out I am working on the nucleo board.The problem I am encountering is that the MCU never enters Stop at all unless I kill SRAM3. As a sanity check I also tried doing this without an RTOS:https://community.st.com/t5/stm32-mcus/how-to-wake-up-the-stm32u5-from-stop2-using-lpuart/ta-p/49436Its the same thing as the first link just without freertos or my threadx adaptation. It w
Hey, I want to open a project from my peer, but i cant because the version for STMCubeMX with which it was generated is newer then mineI then do that and 'Check for Updates', which doesn't work and gives me an error. When i try to manually access the website, it doesn't work. I really don't understand what chatgpt.com has to do with any of this either. I can't seem to find any other post mentioning this, but I apologies if I'm wrong.Thanks for the help!
Hi all,This is my first time posting here.I have a problem with STM32 VSCode Extension v3.5.1 where the DMA on my STM32 H7 (STM32H725RGV6) doesnt work.I tested this with UART TX and ADC Circular DMA mode.The function HAL_UART_Transmit_DMA() returns HAL_OK at first, and then returns HAL_BUSY for the next calls. No data was transmitted at all recieved on the serial terminal. UART and DMA blocking functions and with IT works fine.The same setup with CubeIDE and with the older extension v2.5.1 works fine. Any input is greatly appreciated.Many thanks Steps to replicate:Start a new stm32 vscode project with STM32H7 like normal and enable uart1 (with all interrupts) and sw debug, max clock 550MHz with HSI.call HAL_UART_Transmit_DMA() and it doesnt work :)Here is my full main.c code though:/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body **************
DMA stops working when I enable IWDG in .ioc on my STM32, even when commenting out the IWDG initialization for testing. DMA stops working when I enable IWDG in .ioc on my STM32, even when commenting out the IWDG initialization for testing. Before enabling IWDG, DMA is functioning normally.If anyone can help me, I don't have much experience with stm32, I'm just starting out. /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include <stdio.h> #include <string.h> #include "microwave_sensor.h" /* USER CODE END Includes */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ #define ADC_CHANNELS 2 /* USER CODE END PD */ /* Private variables ---------------------------------------------------------*/ ADC_HandleTy
Hello,I'm working on a low power project using STM32U073 with FreeRTOS, LPUART2 and LPTIM1.To achieve the lowest system power possible I am trying to use STOP2 for when the system is idle.Currently I have LPTIM1 releasing a semaphore every 1 second which then controls an I2C ASIC by grabbing the latest data then setting it going again for the next measurement.This part of the project works perfectly and will allow the MCU to fall into STOP2, wait for the LPTIM1 compare interrupt, wake the MCU and control the I2C device before then falling back into STOP2.While the MCU is in RUN mode, caused by LPTIM1, I can successfully service LPUART2 in that it will respond to a 'request for data' Modbus message.If a message is sent to the MCU while it is in STOP2 the request for data is missed.For testing I have disabled LPTIM1 IT and am trying to wake the MCU using LPUART RX alone and force the MCU to hold RUN for 100 ms so that I can see it on my power profiler, but all I am seeing is ~2ms activit
Hi, I am trying to configure my STM32G071GBU6 to enable reprogramming the flash throguh USART1. I check the datasheet of STM32G071x8/xB, reference manual RM0444, and application note AN2026. It says I am supposed to configure the PA9 (USART1_Tx) and PA10 (USART1_Rx) pins. The problem is when I configure the USART1 as asynchronous mode in STM32CubeMX, the software automatically set PB6 and PB7 pins as USART1_Tx and USART1_Rx. There are no available options like USART1_Tx and USART1_Rx for PA9 and PA10.I am wondering why the manual is inconsistent to the STM32CubeMX and how should I configure the MCU to correctly reprogram through USART1?
I'm having a hard time understanding when to use Unicode::snprintf vs Unicode::strncpy, also because I'm seeing different behavior when it comes to wildecards.I have a font where I've set various wildcard characters (see below)Now, I have a text area with a buffer of 10.If I use Unicode::snprintf(myTextBuffer, MYTEXTTEXT_SIZE, "%s", "myText");I'm seeing the text on the touchscreen as ???, so it basically falls back to the fallback characters.Instead, if I use Unicode::strncpy(myTextBuffer, "myText", MYTEXTTEXT_SIZE); I correctly see myText as the textWhy is that?
Hello I have custom board with STM32N657. I have set timer 2 to output PWM pulse on channel3 and output compare pulse on channel 1 as trigger to another timer. The timer starts when external trigger - TIMER4_ETR (mapped to timer 2) detects rising edge. All works good, there are continuous pulses as expected. I want timer2 to run once per trigger so enabling One Pulse Mode. static void MX_TIM2_Init(void) { /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; TIM_SlaveConfigTypeDef sSlaveConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; TIM_OC_InitTypeDef sConfigOC = {0}; /* USER CODE BEGIN TIM2_Init 1 */ /* USER CODE END TIM2_Init 1 */ htim2.Instance = TIM2; htim2.Init.Prescaler = TIM2_PRESCALER; htim2.Init.CounterMode = TIM_COUNTERMODE_UP; htim2.Init.Period = TIM2_PERIOD; htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; if (HAL
Hello everyone, Some time ago I asked on this website information about jitter on a PWM : Solved: PWM jitter - STMicroelectronics CommunityThe problem was that when generating a PWM, it wasn't very stable. At the time changing the source clock to the external clock of the nucleoboard worked and stabilized everything.Since then, I created my own board using an STM32G474QE (128 pins) with an 8MHz (+/-50ppm) external oscillator.I tried to generate the PWM and I am encountering the same exact problem again, the jitter is back. This time, I directly setup the clock as the external one. I checked it up and it feels to me that the problem could be coming from the stability of my oscillator (I have frequency variation on it's output ranging from 7,999,950 to 8,000,050Hz). Now my question is, could this really be the problem and could a lower ppm oscillator work ?I tried looking up information on my own especially using AN2867 but I only get information about crystal os
We have integrated LSM6DSV16X (IMU) and ISM303DAC (magnetometer) on Android 10 running on the NXP i.MX8MM EVK.The magnetometer and accelerometer, gryoscope drivers are working correctly, and raw values are verified using sysfs and logcat.However, the compass heading is always 0°, and the GEOMAGNETIC_ROTATION_VECTOR output from the STM fusion HAL remains constant, even though the raw sensor data is correct.Observed Behavior:Raw ACC, GYRO, MAG readings are valid and updating.Android framework registers all sensors correctly.But heading never changes in any compass or mapping application.Rotation Vector, Geomagnetic Rotation Vector, and Orientation sensors always report zero output (all axes = 0).Issue in Fusion HAL:The STM software fusion implementation (SWAccelMagnGyroFusion9X + STMSensorsFusion) contains only placeholder stubs for the main functions int STMSensorsFusion::getQuaternion(...)int STMSensorsFusion::getEulerAngles(...)int STMSensorsFusion::getGravity
Hello, i created a custom external loader for a STM32F429 board.The problem is now, my code needs HAL_Delay() for generating short delays between flash device accesses. And the code freezes when executing HAL_Delay(). So i have read that interrupts are no longer allowed at newer versions of CubeMXProgrammer.But HAL_Delay() seems to need a working SysTick interrupt.I used this tutorial for my custom EL:https://community.st.com/t5/stm32-mcus/how-to-add-your-spi-flash-into-the-stm32cubeprogrammer-s/ta-p/49392 IsSCB->VTOR = 0x20000000 | 0x200;the right value for my F429? Further i tried uncommenting#define USER_VECT_TAB_ADDRESSand#define VECT_TAB_SRAM But still no success. Does someone know what else has to be fixed? Thank you.
I'm using STM32G474 with dual ADC injected simultaneous mode. İndividual ADC injected mode works ok. ADC1 is triggered by TIM1 Channel 4 and the interrupt is firing correctly, but ADC2 always returns zero. Questions: Why does ADC2->JDR1 always return 0 in dual injected simultaneous mode? Is it correct that HAL_ADCEx_InjectedStart_IT(&hadc2) returns HAL_ERROR in dual mode? You can see my ADC1 and ADC2 configuration. void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc) { if (hadc->Instance == ADC1) { HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_SET); HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_RESET); adc1 = ADC1->JDR1; adc2 = ADC2->JDR1; } } static void MX_ADC1_Init(void) { /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_MultiModeTypeDef multimode = {0}; ADC_InjectionConfTypeDef sConfigInjected = {0}; ADC_ChannelConfTypeDef sConfig = {0}; /* USER CODE BEGIN ADC1_Init 1 */ /* USER CODE END ADC1_I
I have developed a c application, I have some html pages that are ran through nginx . For now they are exposed , any one gets the board access can see these files and copy the files. My question is How can I secure my files.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.