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
I am using STM32U575 Nucleo development board and I am trying to configure DMA through STMCube IDE. I have configured the DMA and generated code through it. Added required code but I am not getting data on serial through DMA. Is there any alternate way to get data on serial using DMA?
I am working on an isolated monitoring system for currents, voltages, and heatsink temperatures, and am using the ADCS on the Nucelo-F446RE to take the readings. Initially testing was going well demonstrating good linearity and accuracy across a range of set-values. However, after having reworked one of my temperature channels, and making minor adjustments to the configuration of the Nucleo board to configure it to read a different ADC channel, the values collected by the ADC suddenly became very erratic (inaccurate) and imprecise (larger range). For example, in the attachments I have included x2 sets of values collected before and after the issue started to occur. A quick summary of the full results can be seen the the table below Pre IssueRaw Value3.3V Ref EQ60V Full Scale EQError vs Ideal (%)Post IssueRaw Value3.3V Ref EQ60V Full Scale EQError vs Ideal (%)Average = 1946.9631.56859828.5199695.06653 Average = 2155.3441.73648331.57242105.2414High =20441.6467772
Post Edited by ST moderator to apply source code formatting and translate from Chinese to English to comply with the community rule: Best regards, Gyessine Hello everyone, I am trying to implement the 6-Step Trapezoidal Control using the COMG event in STM32F411RE as said in the datasheet. Situation: I am using 3 half bridges each driven by a single IR2110, IR2110 requires only one input signal to be high at a time to drive each half bridge as planned. I am using TIM1 PWM mode CH1-3 for HINs and CH1N-3N for LINs of each half bridge's IR2110. So in theory, for example, for first commutation, I only need CH1 & CH3N to be active. But as far as my understanding goes, if CH1 is active, I will be getting a complementary signal at CH1N as well. If IR2110 receives signal at HIN and LIN, it might cause overshoot for MOSFETs. There is a dead-time between both signals but, the point is I don't need the signal from CH1N so in my understanding the best way is to set the CC1NE bit to
Hello everyoneI joined a somewhat finished project, which has working TouchGFX display using assets saved in external flash memory. The next phase is to enable A/B FW update, meaning that now the assets might end up either in the start or middle of the external flash. Ive been tasked with enabling the program to read the assets at runtime, deciding if they exist in the start or middle using a flag provided by the bootloader. So far, I managed to read Images, Videos, Audio and Texts from the back half of the flash by redirecting pointers with an offset, but im having real difficulties with the generated Fonts. For some reason I cant get it to work. My strategy is to intercept the GFX getFont function by a new class inheriting ApplicationFontProvider, but I simply cannot get it to work. Currently I dont think I even managed to connect it properly and I dont think the code even run through it.Is there some sort of example someone made for this scenario? Would greatly appreciate any help.&
Hello.Is there any way to exclude some GPIOs from Linux, when I control them from M4 core and I don't want to give an ability to control them from Linux apps? I would like to exclude e.g. PG12. I tried this, which should be exactly for such use:&gpiog { gpio-reserved-ranges = <12 1>; /* Reserve PG12 for M4 */ }; But it doesn't help, still the GPIO is listed and possible to control under Linux.We use OpenSTLinux custom Yocto build with kernel 5.15.67Thanks
Can i use UART + DMA ( normal ) + RTO ? I try to add RTO but when activate RTOE bit the DMA buffer stops fills .I take interrupt with active RTOF , stop DMA , but nothing in buffer !? I use stm32H7 with hardware implemented RTO. Can some one to give working example ?
Hi,I am currently working on the firmware of a PCB with an STM32G031K8T6 as the MCU, supplied by a 1.8V voltage.When I enter Stop 1 mode, the consumption of the MCU drops to 100uA, instead of the 7uA stated in the datasheet.The app_stop function is as follows :void app_stop(void) { timer_uninit(); i2c_slave_uninit(); i2c_master_uninit(); gpio_stop_mode(); HAL_SuspendTick(); SystemClock_Config_StopMode(); HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); } void gpio_stop_mode(void) { GPIO_InitTypeDef GPIO_InitStruct; GPIO_InitStruct.Pin = GPIO_PIN_All; GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_All; GPIO_InitStruct.Pin &= ~(GPIO_WAKEUP_PIN); GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); __HAL_RCC_GPIOB_CLK_DISABLE();
I've seen that, trying to download the STM32CubeH7RS Firmware Package from CubeMX, I'm seeing the latest version is 1.3.0.On the actual documentation and GitHub repository https://github.com/STMicroelectronics/stm32h7rsxx-hal-driver I'm seeing that the version is 1.2.1Dates are the same, so I think the version is the same, just with different numbering; is it correct?
Hello,I inherited an old software project from a colleague who retired. (He originally worked on Windows XP.)The software was designed to run on an STM32L-Discovery board.Since some packages need to be maintained, I want to build the software on a Linux machine (Ubuntu 24.04.4 LTS). I managed to create a CMake project that successfully builds the binary for the target.The issue I’m facing now is that I can’t flash the binary to the target hardware because STM32CubeProgrammer displays the following message:“Error: Old ST-LINK firmware version. Upgrade ST-LINK firmware.”I also tried on a Windows 10 machine and got the same result.On the official board page [1], there’s no mention of STM32CubeProgrammer.I’ve been searching for a solution since this morning, but I haven’t found the right hint yet.Can anyone confirm whether CubeProgrammer is unable to write to this Discovery board?Can anyone recommend a programmer I can use to flash the binary? (I know a few are listed in the documentation,
HelloI am connecting the ST-LINK and downloading the firmware to the programmer.I have a question. Can I do power from ST-LINK and download firmware instead of supplying external power to the MCU? Currently, I use external power, but I wonder if there is such a way.Thank you.
I'm currently working on a project using an STM32G473RCT6. I've integrated the STL Lib (Self-Test Library) and intended to use STM32_Programmer_cli.exe with the -sl option to add the CRC block.The application starts at 0x08040000 and continues for a maximum of 128K, up to 0x08060000.There will therefore be an area of 0x20000/1024=128 CRCs, which will occupy 128×4=512 bytes.In practice, the application itself can only occupy 0x1FE00 bytes because the last block will be available for the CRC Area.Based on the STL documentation, these CRCs will be inserted at address 0x08060000−512=0x0805FE00.The command I'm using is:STM32_Programmer_cli.exe -sl "firmware.bin" 0x08040000 0x08060000 0x400The resulting binary has the entire section between the end of the original binary and 0x0805FE00 padded with 0xFF.Upon checking the CRCs that were inserted starting from 0x0805FE00, I can see that the first ones correctly match the CRC of the application blocks. However, when it reaches the CRCs cor
I am using VL53L4CX with VL53L4CD ULD driver v2.2.2, due to an I2C issue on my side the VL53L4CD_RdWord fails and the number_of_spad variable is set to 0. The divide by zero happen at the very end of VL53L4CD_GetResult.I checked the function in ULD v2.2.3 and the number_of_spad value is still used for division without checks :VL53L4CD_Error VL53L4CD_GetResult( Dev_t dev, VL53L4CD_ResultsData_t *p_result) { VL53L4CD_Error status = VL53L4CD_ERROR_NONE; uint16_t temp_16; uint8_t temp_8; uint16_t raw_spads; uint8_t status_rtn[24] = { 255, 255, 255, 5, 2, 4, 1, 7, 3, 0, 255, 255, 9, 13, 255, 255, 255, 255, 10, 6, 255, 255, 11, 12 }; status |= VL53L4CD_RdByte(dev, VL53L4CD_RESULT__RANGE_STATUS, &temp_8); temp_8 = temp_8 & (uint8_t)0x1F; if (temp_8 < (uint8_t)24) { temp_8 = status_rtn[temp_8]; } p_result->range_status = temp_8; status |= VL53L4CD_RdWord(dev, VL53L4CD_RESULT__SPAD_NB, &temp_16); raw_spads=temp_16; p_result->number_of_
Friends, I've encountered a bug while running CubeIDE 2.0 on my Ubuntu (KDE desktop). When I open my project, I notice the code editing area flickers. This often happens when the sidebar scrollbar is activated (forgive me, I'm not sure how to describe this element). Has anyone else experienced a similar issue? How should I resolve it?
I have an STM32H747I-DISCO board that I am trying to bring up with the Tutti Frutti Demo. I have followed the instructions in UM3008 to program this as it appeared to be blank upon arrival from Digikey. External loader was set to: MT25TL01G_STM32H747I-DISCOProgramming of CM4 with intflash.hex and CM7 with target.hex completed successfully.After programming, the board does not display anything and LD10 just flashes red a couple of times and then pauses on green then repeats.Power LED is good (green). I am not familiar with these development tools so it is likely I'm missing something but whatever it is is not clear to me.I have tried resetting both through STM32CubeProgrammer (V2.21.0) as well as hard reset on the board.Power cycling the board does not help. LD10 just solid red until I connect up STM32CubeProgrammer at which point it cycles between green and red as described above. I have seen this is a common issu
When I view the information panel after selecting the "X-CUBE-BLE2" -> "Device BLE2_Applications" -> "Application" -> "SensorDemoBLE..." and clicking on the "Documentation: STMicroelectronics X-CUBE-BLE2_GettingStarted..." link, the "Software Packs Component Selector" popup window hangs and cannot be closed. The document is never displayed. From what I can tell, it is attempting to load "/home/me/STM32Cube/Repository/Packs/STMicroelectronics/X-CUBE-BLE2/3.3.0/Documentation/STMicroelectronics.X-CUBE-BLE2_GettingStarted.pdf". I ran the IDE software updates via the "Help" menu yesterday, so I assume it is the latest version. The command line shows it is running "/opt/st/stm32cubeide_1.12.0//plugins/com.st.stm32cube.ide.jre.linux64_3.1.0.202310310920/jre/bin/java" with "-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.14.1 -Declipse.buildId=Version 1.14.1"The "Help" -> "About" shows:Version: 1.14.1Build: 20064_20240111_1413 (UTC)There were
I am currently working with the STM32 Motor Control SDK and would like to ask a question regarding the Placement Electrical Angle.Due to hardware limitations (single-shunt current sensing) and tool constraints, I am unable to use the Motor Profiler.In this situation, I would like to know:Is it possible to measure or determine the Placement Electrical Angle without using the Motor Profiler?If so, does ST recommend a manual or alternative procedure (for example, forced alignment using d-axis current, open-loop control, or hall-sensor-based methods)?Are there any application notes, user manuals, or example projects that describe this procedure in detail?For your reference, I am using a motor with Hall sensors and the STM32 Motor Control SDK.Thank you in advance for your support.Best regards,Pelino
Hi everyone,I'm having a hard time with the FDCAN on a NUCLEO-H723ZG. I’ve tried several setups (external with transceivers, external loopback with wires), but I’ve stripped everything back to Internal Loopback mode on FDCAN1 to simplify things.Current situation: I can actually see that the frame is sent successfully (no TX errors), but the receive interrupt/FIFO never triggers. It’s like the frame is going out into the void and not looping back into the RX FIFO.I'm using the HAL drivers.Here are the errors/status I'm getting via printf:Full code is available here: https://github.com/mpek29/FDCAN-NUCLEO-H723ZGHas anyone experienced this "TX works but RX fails" issue on the H7 series?Thanks for any help! mpek29
Hello everyone,My team and I are working with a custom board based on the STM32WB55RG. Due to limited pin availability, we need to use USB as a virtual COM port for serial communication. We successfully configured the USB Virtual COM and were able to print messages on the console without any issues.However, we encountered a problem after integrating SBSFU.The USB Virtual COM works fine within the SBSFU application, but once the SBSFU process completes and our custom application starts, the USB stops functioning. We can no longer see messages in the terminal, even though our application is running as expected by debugging it with the USART / LPUART.We have already checked the USB and clock configurations in both the SBSFU app and our custom application, and everything seems to be set up correctly. Furthermore, we also attempted the following:Forcing a USB re-enumeration by pulling the D+ pin low for a few milliseconds.Playing around with initializing and de-initializing the USB in both
Hello,I am attempting to measure the current consumption of an STM32L4 before and after entering STOP2 mode using a DC power supply. I expected the initial current of 165mA to drop down to the $\mu A$ range upon entering STOP2 mode, but it only decreased by 5mA.For my configuration, I have only enabled System Core - SYS - Debug - Serial Wire and a single GPIO pin for toggling to monitor the status via an oscilloscope. When STOP2 mode is activated, I confirmed with the oscilloscope that the GPIO toggling stops completely, indicating the CPU has halted. However, the power supply current remains high.I have attached my main.c file for reference. Could you please check if I have missed any necessary configurations or if I am doing something wrong?Thank you in advance for your help.
Greetings ST Community,I am a junior embedded developer, and I have recently worked on a project utilizing some old systems which run on the STM32L100R8T6TR chips. I had a need for an unique chip identifier for use in a communication protocol, and therefore I attempted to use the 96-bit UIDs in these chips. However, I now have two questions regarding these UIDs.First off, I used the firmware created for the platform I was developing on, and the UIDs fetched using the addresses specificed in this firmware access the address 0x1FF80050U as the UID_BASE address, and then +4U and +8U for the next sections of the 96-bit UID respectively. The values extracted using those value seem like the correct values, however I have now found two chips from a sample of 16 with the exact same UIDs unfortunately: 30h 35h 47h 04h 39h 39h 32h 39h 03h B7h FCh 48h I investigated this issue by consulting the documentation, which led me to my next question...Secondly, the documentation instructs me to
FUS and BLE update.I would like to know if it is possible to update FUS (1.2.0)(2.1.0) and BLE (1.23.0) via SWD. I need to update two boards simultaneously and am having problems with programming via DFU. One of the boards always shows an error. I usually program one board at a time, and before, I only updated BLE without updating FUS, and everything worked correctly via SWD. Now that I need to update FUS and BLE simultaneously, an error occurs. Is it possible to perform this update, or can I only do it via DFU (it works with one board, but with two, one of them always shows an error)? What is the best way to perform this update? I use the CLI with a script to write, I think it's faster. Edited by Moderator to comply with the community rules.Please use the English language as it is an international community, ensuring that all Community users can understand your post.
The application bundle contains Contents/MacOs instead of the required Contents/MacOS. On case-sensitive file systems, this prevents LaunchServices/Finder from starting the app.The binary runs correctly when launched directly from Terminal.Renaming MacOs → MacOS also seems to solve the issue.Seems to be an error in the ST packaging system.
CASE 1:I am using sdmmc for SDIO bulk transfer at 400khz initially then switch to 25 mhz.Its not working with nucleo h743/53 where cpu frequency 480 mhz and sdmmc input clock is 480 mhz.Its working with nucleo h743/53 where cpu frequency 480 mhz and sdmmc input clock is 48 or 50 mhz.Its not working with nucleo h743/53 where cpu frequency 160mhz and sdmmc input clock is 160 mhz.Its is working fine with nucleo_u5 when CPU frequecy is 160mhz and SDMMC input clock is 160 mhz which gets converted to like:26.66 mhz.I have not checked upto which max sdmmc frequecy it is working fine with nucleo_h743/53.It seems to be working when sdmmc input clock is ~50 mhz with nucleoh743/53. Q1: Is there any recommendation with sdmmc input clock frequency with nucleoh743/53? CASE2: Along with CASE1, I also found that its not working at all with nucleo h743/53, if I give 3.3V External power to SD card(external power also uses voltage regulator) , but same works when giving 3.3V power from nu
I am implementing a CAN communication structure with one master and two slaves. Both slave devices perform exactly the same function, meaning their hardware and firmware are essentially identical. The master’s intention is to send commands only to a specific slave at a given time and receive data only from that targeted device. However, the issue I am facing is that any CAN frame transmitted by the master is being accepted by both slaves. Because both devices share the same ID filtering configuration, each slave interprets the incoming message as if it were intended for itself. As a result, the system behaves like a broadcast communication instead of the desired unicast structure, which leads to unintended and incorrect operation. Is there a solution
I developped my own PCB based on STM32L051K8U6 MCU and manufactured by JLCBCP. I'm using EasyEDA.At first I used a ST-LINK V2 ( probably a clone) to flash my card with CubeIDE and Cube Programmer but I got Error : Unable to get Core ID.So I bought a ST-LINK V3 MINIE and a breakout board and I get the error. 13:50:07 : UR connection mode is defined with the HWrst reset mode13:50:07 : ST-LINK SN : 001F002A414250182035345113:50:07 : ST-LINK FW : V3J16M813:50:07 : Board : STLINK-V3MINIE13:50:07 : Voltage : 3.30V13:50:07 : Error: Unable to get core IDI think, I read all knowledge database from STM website-I manage to use shorter dupont as possible to link breakout board to my board.-Each VDD and VDDA pin has 100 nf découpling capacitors ( and 1 uF capacitor in parallele )-There is a steady 3.3V on each VDD pin - a perfect continuity beetween SW pins (SWDIO and SWCLK) from MCU side and SW pins from ST-LINK V3 MINIE side.- NRST pin is pulled up at 3.3V and linked t
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.