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
Hi everyone!Just finished a dual boot system but during testing I bumped into a weird issue. With BFB2 bit unset firmware starts smoothly but when it is set, it ends up in some bootloader loop although it should switch to opposite bank (FB_MODE = 1) and run second firmware code. It looks like bootloader is waiting for update as it initialized I2Cs, CAN1 and USB.System option word for this case is 0xFB7FF8AA (nBoot0 = 1, nSWBoot0 = 0, nBoot1 = 0, BFB2 = 1). Actual Boot0 pin is connected to ground (along with quartz generator). Initial stack values of both bank firmware are within SRAM range (it is mandatory to start firmware correctly).What is most interesting, another board based on the same chip but slightly different on connected periphery works perfectly. It seems, the bootloader somehow disregards options and starts to check periphery to update but catches only noise (induced by unconnected pins or by sensor outputs) so it hangs.Is there something I missed?Regards
Hi,Do we have sample code demonstrating continuous conversions for U545 ADC1 with GPDMA using "Standard Request Mode". The sample code should use two or more channels - say IN1, IN2. I am migrating a project from F105/F405 and am a little overwhelmed by the setting options to be configured with U545.The ADC_DMA_Transfer example at STM32Cube\Repository\STM32Cube_FW_U5_V1.8.0\Projects\NUCLEO-U575ZI-Q\Examples\ADC\ADC_DMA_Transfer uses Linked-List Mode and only demonstrates a single ADC channel. Thanks.
I have been developing successfully with STM32CubeIDE for several years. My current project has been going ok, with lots of in-application debugging, until my latest revision. The debugger quits with the following error message:----------------------------------Error in final launch sequence:Failed to execute MI command:load C:\\Users\\feath\\OneDrive\\Documents\\Featherweight\\BlueRaven\\IDE_Workspace\\BlueRaven\\Debug\\BlueRaven.elf Error message from debugger back end:You can't do that when your target is `exec'Failed to execute MI command:load C:\\Users\\feath\\OneDrive\\Documents\\Featherweight\\BlueRaven\\IDE_Workspace\\BlueRaven\\Debug\\BlueRaven.elf Error message from debugger back end:You can't do that when your target is `exec'Failed to execute MI command:load C:\\Users\\feath\\OneDrive\\Documents\\Featherweight\\BlueRaven\\IDE_Workspace\\BlueRaven\\Debug\\BlueRaven.elf Error message from debugger back end:You can't do that when your target is `exec'You can't d
I am currently evaluating the X-NUCLEO-IHM16M1 motor control expansion board and would like to ask whether it is suitable for measuring the electrical parameters of the motor described below.The motor specifications (translated from the datasheet image) are as follows:Rated Voltage: DC 24 VRated Torque: 0.063 N·mRated Speed: 4,000 RPM ±10%Rated Current: < 1.7 ARated Output Power: 26 WNo-load Speed: 5,000 RPM ±10%No-load Current: < 0.3 ANumber of Poles / Phases: 8 poles / 3 phasesInsulation Class: Class BOperating Temperature: –10 °C to 40 °CAccording to the X-NUCLEO-IHM16M1 documentation, the maximum output current is specified as 1.5 A RMS. My question is:Is it possible to use the Motor Profiler tool in STM32 Motor Control Workbench to measure Rs, Ld/Lq, and Ke for this motor when using the X-NUCLEO-IHM16M1, considering its 1.5 A RMS current limitation?Any guidance or recommended measurement limitations would be greatly appreciated.Thank you very much for your support.Best
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. Please read this post: How to insert source code. Hi All, MCU is STM32H563. I attempted to jump from the Secure App directly to the System Bootloader so that I could program the OBK file without pulling BOOT0 high.However, using the method below, the jump never succeeds — the MCU keeps resetting continuously. Sometimes it resets immediately, and sometimes it reaches the reset vector of the system bootloader and then resets again. static void JumpToBootloader(void) { funcptr_NS NonSecure_ResetHandler; __disable_irq(); // Disable interrupts SysTick->CTRL = 0; SysTick->LOAD = 0; SysTick->VAL = 0; HAL_RCC_DeInit(); // Reset clock configuration for (int i = 0; i < sizeof(NVIC->ICER) / sizeof(NVIC->ICER[0]); i++) { NVIC->ICER[i] = 0xFFFFFFFF; NVIC->ICPR[i] = 0xFFFFFFFF; } __DSB(); __ISB(); SCB_NS->VTOR = BOOTLOADE
We are using the STM32U5 MCU and its internal RTC in our project.We are facing an issue where the RTC time sometimes goes beyond 24 hours — for example, we observed a timestamp showing 37 hours. The RTC is configured in 24-hour format, and we have initialized the RTC and its time format correctly as per the reference manual and HAL documentation.Also, After running for 23:59:59 seconds, the time changes to 24:00:00 instead of 00:00:00, and the week day has not been incremented. The main challenge is that this does not happen consistently. We see such out-of-range values only randomly, which makes it difficult to identify the root cause. Has anyone faced a similar issue with the STM32U5 RTC? Could you please suggest possible causes or solutions, or any checks we should perform to debug this behavior?
Hi Everyone,I'm currently migrating from LSM6DSM to LSM6DSO in my application and facing some issues with accelerometer accuracy in stable conditions.System Overview:MCU: STM32L4Sensor Interface: SPI (3-wire)Purpose: Reading raw accelerometer and gyroscope data, converting to physical units, and estimating roll/pitch/yaw using MotionFX.Configuration Details: Parameter Value Acc/Gyro ODR1.6 kHzFIFO Output Rate400 HzMain Loop Rate100 HzAveraging4 samples/frame What’s Working:I can successfully communicate with LSM6DSO via 3-wire SPI.I’m able to read raw data from the accelerometer and gyroscope.Sensor fusion (MotionFX) works and outputs roll, pitch, and yaw.With LSM6DSM, I was getting clean and accurate data as expected.Problem:I'm trying to measure raw linear acceleration (after converting to g).The requirement is that the noise level (in a static, stable condition) should be less than ±0.005g in all directions.With LSM6DSO, the data seems noisier and less accurate, eve
Hello,I am unable to connect to TouchGFX version 4.26 to download or access the demo and example projects from the software download section.My system is connected to the internet; however, the application itself does not connect to the server.Please let me know how I can resolve this issue.
Hello,I have a question about the flash memory map in the Secure project.I’m using the following application as an example:STM32Cube_FW_H5_V1.5.1\Projects\NUCLEO-H563ZI\Applications\ROT\OEMiROT_Appli_TrustZone\STM32CubeIDEIn the memory map, two flash regions are shown: - FLASH: 0x0c018400 - 0x0c01dfff - FLASH_NSC: 0x0c01c000 - 0x0c01c3ffQuestion:Should the FLASH_NSC region overlap the FLASH area, or should it be placed after the FLASH region?If it should overlap, what is the purpose of doing that? In this example, it overlaps.Thank You.
Hi,In paragraph 1.2 “Launch the provisioning script” I read that:Launch one of the provided scripts depending on your IDE:For EWARM or MDK-ARM: launch the provisioning.bat script.For STM32CubeIDE: launch the provisioning.sh script.I have Windows and STM32CubeIDE. Can I run the provisioning.sh script on Windows?Looking into the env.sh script, I found the following code: echo ${OS} | grep -i -e windows -e mingw >/dev/null if [ $? == 0 ]; then echo "" echo " ==========================================" echo "| For Windows OS, please use .bat scripts. |" echo " ==========================================" echo "" echo " Press any key to continue..." echo read -p "" -n1 -s exit 0 fi It seems that the script cannot be run on Windows.Could you please advise how to run the provisioning script for STM32CubeIDE on Windows?Thank you very much for your support.Best regards,Marco
All,I'm working on the basics of getting the SPI communication set up for the L9780 IC and am running into some issues, so I'd appreciate some feedback or a double-check. It appears so far that I'm able to send a command via the control word and successfully echo that back when the REG=1 bit is set. When doing so, the CB bits are correct, so everything seems to be functioning as intended.My issue is that I'm getting a SPI fault when REG=0 to get the status register as an output. The CB[1,0] bits are correct, however SPIF1 is asserted. The datasheet has a few sections on this so I'll address each of them:5.5.1 SPI data faultDatasheet says this is set when the CB[1,0] bits are not set as expected.My base control word is 0x00040F18192A8040 which appears to be OK.When enabling VCCS and INRC, byte 14 and 13 get updated so the word is 0x02040F.... and 0x0244F.... respectively.Additionally when getting my "echo" of the SI register, the control word is 0x0A440F18192A8040 which also appears to
Split from STM32WBA5MMGH6TR Debug interface PCB layout - which is a separate question.Hi , thank you very much.In my module (STM32WBA5MMGH6TRTR), there is only one pin for boot selection BOOT0. I believe when it is pulled low booting happens from main flash memory. But when it is high , from where the module is booting.
As shown in the figure, when using one QSPI, the other becomes unselectable.
Hi, I am trying to move to STM32H750 from STM32F407. To start with I have tried making simple LED blink project and it seems to work.Then I add SDMMC1 and suddenly it started hanging on exiting `static void MX_GPIO_Init(void)`. Any ideas why? Do I need some kind of other initialization or what could be wrong? /* Identify card operating voltage */ errorstate = SD_PowerON(hsd); if (errorstate != HAL_SD_ERROR_NONE) { hsd->State = HAL_SD_STATE_READY; hsd->ErrorCode |= errorstate; return HAL_ERROR; }it seems to return error here0x10000000U#define SDMMC_ERROR_UNSUPPORTED_FEATURE ((uint32_t)0x10000000U) /*!< Error when feature is not insupported */what does that mean and how to fix it?
Hello, I would like to know if I can use FP-AI-Vision to design my own application, for example, to detect trees in a yard. Or is it designed only for the three applications: food recognition, person presence detection, and people counting?
Good morning,I would like to measure the supply voltage on an STM32H573RI. To do this, I measure VREFINT and then want to calculate the supply voltage.My approach (simplified):sConfig.Channel = ADC_CHANNEL_VREFINT; sConfig.Rank = ADC_REGULAR_RANK_1; sConfig.SamplingTime = ADC_SAMPLETIME_640CYCLES_5; sConfig.SingleDiff = ADC_SINGLE_ENDED; sConfig.OffsetNumber = ADC_OFFSET_NONE; sConfig.Offset = 0; HAL_ADC_ConfigChannel(&hadc1, &sConfig); while (!__HAL_ADC_GET_FLAG(&hadc1, ADC_FLAG_EOC)); return HAL_ADC_GetValue(&hadc1); Using the ADC value of VREFINT, I calculate the supply voltage as follows:static uint16_t Calc_VREF(uint16_t adc_value) { uint16_t vrefint_cal = (uint16_t) (*(uint16_t *) (0x08FFF810)); uint16_t vrefint_voltage = 3300; return (uint16_t)(vrefint_voltage * vrefint_cal / adc_value); } My ADC delivers a value of 1.562 digits for VREFINT, while the calibration value is 1.503 digits. According to my calculations, the reference voltage is therefor
Hello, I am new to programming the NUCLEO-H563ZI. I am interested in the low-power STOP MODE function. I have watched an STM32 video tutorial for a different core. Everything works fine except for this function __HAL_RCC_PWR_CLK_ENABLE(); ../Core/Src/main.c:98:3: warning: implicit declaration of function ‘__HAL_RCC_PWR_CLK_ENABLE’ [-Wimplicit-function-declaration] 98 | __HAL_RCC_PWR_CLK_ENABLE(); | ^~~~~~~~~~~~~~~~~~~~~~~~ What is causing this error? Thank you for your help.
Hi community,I am working with STM32H747I-DISCO Board(Dual cortex M7+M4)MP34DT05-A digital MEMS microphone is integrated on the board and issues are facing while bringup.Issues follows:As per the schematic there is one digital microphone connected to the MCU using SAI Interface with default connectionsI am trying to bringup it with the help of refernce document(Ref AN5027).When i am understnading this document a few questions have been raised. Those question as follows.1.There are two types of mode mono modestereo mode stereo modeIf we see the schematic:One digital microphone is connected to stm32 MCU and it looks like mono mode configuration But when I am following mono mode configuration process to bring up it then pins which are enabling while configuring is mismatching with pins which are connected to this digital microphone as per the schematic.Connection pins – (SAI4_CK1) PE2, (SAI4_D1) PC1 (as per the schematic)Enabling Pins :In stereo mode config
Motor Proiler 识别无刷空心杯电机的时候,卡在28%,套件用的是 Translation: When the Motor Profiler identifies a brushless coreless motor, it gets stuck at 28%. The kit uses...
Dear ST Support Team,We are using the STM platform in our motor controller for the past one year. Our controller is developed for the automotive EV application.Currently, we are facing challenges at the software and code level related to motor control performance and optimization. We are stuck with code-level improvements and require technical support to analyze and fix the issues completely.We are looking for guidance and support on:Motor control software optimizationCode-level improvements and debuggingA complete and stable software solution suitable for automotive EV requirementsWe request your support from the STM motor control software team to help us resolve these issues.Please let us know the next steps to proceed further.Regards,Govind Dhongadi
Hello,I am new to STM and have been using TI MCUs in the past for motor control. I am considering using STM for a new project. I need to be able to control 5 BLDC motors with position control. They will each have their own closed loop control but will be somewhat be intertwined. I would like to start with an STM dev board and start with the control of one motor and move to more then continue to develop my own PCB. Any guidance on MCU selection/dev board selection would be greatly appreciated. And any suggestions on example projects to start with and easily modify for 5 motors. Also, I would like to know if it is possible to use absolute encoders for the motors rather than incremental for the position feedback. Thanks you!
I am using STM32WBA5MMG in my design. This the development board schematic. Below image is from development board schematic.As per the constrains , SWDIO and SWCLK must be length matched. Also need to provide a shield.My questions are given below.SWDIO and SWCLK are not differential lines, why length matching is required for them.By shield did they mean routing SWDIO and SWCLK on top of a solid GND plane
Hi,I'm working on custom board where i have to use the USB CDC class to demonstrate the USB virtual com port feature along with data transfer and receive.We have generated the project using CubeMX 6.15 and STM32Cube IDE 2.0 but not able to detect the com port.We are using PA11, PA12, PA9 pins for USB.Kindly provide a step-by-step guide.Thank you.Ram
HelloI am working on an academic research project involving a hybrid converter topology, where a controlled shoot-through state is intentionally required as part of the converter’s operating principle.I am currently using:STM32F446REIHM16M1 inverter driver boardMCSDK (Motor Control SDK)From my understanding, the IHM16M1 gate driver enforces hardware-level interlocking and dead-time, which prevents simultaneous conduction of the high-side and low-side devices in each inverter leg. Even when overlapping PWM signals are generated at the MCU level, the driver appears to mask them internally.My question is:Is there any supported or undocumented method to override or bypass the hardware interlocking / cross-conduction protection on the IHM16M1 board?I would like to clarify whether:This limitation is strictly hardware-bound, orAny alternative configuration (timer mode, driver pin usage, or hardware modification) exists that could allow controlled shoot-through for research purposes.Thank you
Hi everyone,I’m trying to get the LwIP examples from the stm32-hotspot GitHub (this one: https://github.com/stm32-hotspot/STM32H7-LwIP-Examples) running on my NUCLEO-H723ZG, but I’m hitting a wall.The README is actually great and super clear, which is why I’m surprised I can’t get it to work. I’ve built the project and flashed it to the board, and I have it connected directly to my laptop via Ethernet.The docs say the IP should be 192.168.1.10, but when I try to ping it, I get nothing. I also took a look at the code and it looked like the IP might be set to 192.168.1.1 instead, so I tried pinging that too, still no luck.Am I missing something basic here? Is it enough to just build and flash the code, or do I need to tweak some jumpers on the Nucleo or change my laptop's manual IP settings to be on the same subnet?I’d really appreciate it if someone who has used this repo could point me in the right direction.Thanks!mpek29
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.