Join conversations with your peers and ST experts. Explore the full potential of STM32 microcontrollers for your embedded design.
Most recent activity
Hello, I am working on an application that uses the SDMMC peripheral to read the contents alternating audio files every 150ms. The buffers i have to store the data are large enough to store the entire file in a single burst within RAM. The problem I am running into is that intermittently, the sound "loops" indicating a lockup on the sound subsytem. I've added a small timer in SysTick in order to quantify how long and often this lockup occurs as the logic is running in a lower priority interrupt. I find that the system locks up between 300ms-1200ms. When I listen for this audibly and stop the code, I find that the code is stuck in:if(BSP_SD_ReadBlocks_DMA((uint32_t*)buff, (uint32_t) (sector), count) == MSD_OK) { ReadStatus = 0; /* Wait that the reading process is completed or a timeout occurs */ timeout = HAL_GetTick(); while((ReadStatus == 0) && ((HAL_GetTick() - timeout) < SD_TIMEOUT)) { } /* in case of a timeout return error */ if (ReadStatus == 0) { res
I have a Nucleo-WL33CC1 board which has been working fine, but after starting to work on a DEEP SLEEP implementation I can not connect any longer using SWD neither through Crossworks IDE nor CubeProgrammer. Any possibility to unbrick the board?
I have used a Micro USB cable and it doesn't insert. Help
Hi everyone! I am developing a custom inverter+control board and need to use motor pilot. Would someone please tell that apart from enabling UART TX and RX through Motor Control Workbench and wiring them, what additional hardware do I need for isolated connection to a PC?Thanks and Regards
On line 1695 of stm32h5xx_hal_eth.c ETH_MACTSCR_TSUPDT is used to set the timestamp counter, however page 2934 of RM0481 says this bit is used to add or subtract from the timestamp counter instead:Based on the description of this function, and its use elsewhere, this function should instead use ETH_MACTSCR_TSINIT to overwrite the timestamp counter. As it is at the moment, the current time is added to the counter every time there is a PTP sync meaning the time fluctuates wildly over a century and a half span, and the time is never close enough to use fine adjustment methods.Also consider adding a line to enable PLL1Q's output to the HAL Ethernet init function, that was another fun bug to track down...
So along time ago I created a very helpful program using an STm32H743ZI nucelo board. Then - STM discontinued that board -- GRRRR The recommended solution was:NUCELO-H755ZI-Q - so I purchased 4 of these. PROBLEM there are no usable examples in the STM32 cube suite that works with this board. I need to port my old STM32H743 code to this new chip GRRR Ok that should be easy. Turns out there is a huge problem with using this board because of the power supply, the key feature I need is exactly the ETHERNET interface. BUT - cubesuite does not have a ETHERNET example I can start from.. ie: that properly initializes the board to run at "some fast speed (i do not really care, speed is not important, I just need the 100mbit ethernet to work). The specific problem I had was I programed my board and evidently it locks the board up hard, jtag no longer works. The solution is to use a jumper force the chip into "BOOTLOADER MODE" then JTAG works again and I can flash-erase the chip via JTAG. I do no
HI,as we understand, TouchGFX does not provide support for mulitple layers, even though many targeted STM32 controllers do.We need to display a live image from the camera (at maximum possible frame rate) and overlay some gaphics on the top of it. Kind of OSD. What is the best/recommended way to achieve this task with TouchGFX? Is it feasible to do so with TouchGFX at all or the resulting performce will suffer too much?What do we do with StemWin - the hardware LTDC Layer 0 is used for the camera live image, while Layer 1 is for any graphics over the latter. Neither of two get affected by each ohter and very high frame rate is achievable without visible performance degradation.What solution TouchGFX may offer for similar tasks? Thanks.If it is matter:The display resoltion is 800x600, the camera image is a standard grayscale PAL 720x576
Hi, I am using STM32G491 with 2 FDCAN channels. FDCAN1 is working normally for sending and receiving data. FDCAN2 is sending out data normally, but it can't receive any data, not able to generate any receiving interrupts. Here is the initialization code. Can anyone have any ideas what could be the issue? Thanks. void MX_FDCAN2_Classic_Init(void) { FDCAN_FilterTypeDef sFilterConfig; __HAL_RCC_FDCAN_CLK_ENABLE(); hfdcan2.Instance = FDCAN2; hfdcan2.Init.ClockDivider = FDCAN_CLOCK_DIV1; hfdcan2.Init.FrameFormat = FDCAN_FRAME_CLASSIC; hfdcan2.Init.Mode = FDCAN_MODE_NORMAL; hfdcan2.Init.AutoRetransmission = DISABLE; hfdcan2.Init.TransmitPause = DISABLE; hfdcan2.Init.ProtocolException = DISABLE; //CAN 500kbps hfdcan2.Init.NominalPrescaler = 16; hfdcan2.Init.NominalSyncJumpWidth = 1; hfdcan2.Init.NominalTimeSeg1 = 2; hfdcan2.Init.NominalTimeSeg2 = 2; hfdcan2.Init.DataPrescaler = 1; hfdcan2.Init.DataSyncJumpWidth = 1; hfdcan2.Init.DataTimeSeg1 = 1; hfdcan2.Init.D
I am working on an STM32F746G-Discovery board using LwIP (2.1.2) and FreeRTOS (CMSIS-RTOS V1) generated via STM32CubeMX. I am facing a persistent issue where the gnetif.ip_addr.addr field is populated with a garbage/static value before DHCP can complete, specifically 0xf44fd102. The Issue: Even after performing a memset(&gnetif, 0, sizeof(struct netif)) before MX_LWIP_Init(), the debugger consistently reports the following for the IP address variable: Hex: 0xf44fd102 Decimal: -196095742 Translated IP: 244.79.209.2 (Multicast) It appears the Ethernet DMA is writing multicast network traffic into the memory space allocated for gnetif, or I am facing a D-Cache coherency issue where the CPU is reading "stale" data from a previous boot/session. Current Configuration: CPU: STM32F746NGH6 (Cortex-M7) Cache: I-Cache and D-Cache enabled in main.c. PHY: LAN8742A (RMII mode). Clock: 216MHz (HSE used as source). MPU: I have attempted to configure the MPU to set the SRAM1 regio
Hello, I am using the STM32H7B3I-EVAL board with STM32H7B3LIH6Q controller. I downloaded and flashed the official demo HEX files from the STM32H7B3I-EVAL package provided on the ST website. Programming is now successful, but I am facing an issue with the TFT display. Problem: TFT backlight turns ON No graphics, logo, GUI, or display output appears on screen Screen remains blank/black In some demo files (for example: STemWin-STM32H7B3I-EVAL_V1.0.1.hex), all 4 user LEDs PG13(1) LED1 MFX IO11 LED2 MFX IO12 LED3 MFX IO13 LED4 turn ON after boot I already checked: TFT ribbon/cable connection Successful flashing through STM32CubeProgrammer Multiple demo HEX files from the package Power supply and ST-LINK connection Still, nothing is displayed on TFT. Could anyone please suggest: Whether external memory (OSPI/QSPI SDRAM) initialization may be failing? Whether this i
Hello,i did the OEMiROT examples following How to start with OEMiRoT on STM32C5 using CMake by converting the EWARM project config. I would like to give that CMake config back as well as some fixes to the provisioning script / example_config. Where/How do I that?I know the GitHub Repo, however since there are no open/close tickets, I wounder if that is the right place.
I am trying to run this demo, but I am receiving an error.How should I program this board? Should I use an ST-LINK or a USB-to-TTL adapter, or is a direct USB Type-C connection sufficient? I am trying to program it via TouchGFX Designer. I have read the following guide, but I couldn't quite understand the process: https://www.st.com/resource/en/brochure/guide-how-to-get-started-with-tsd-knob-display-and-touchgfx.pdf"Error message :"Serial Port COM26 is successfully opened.Port configuration: parity = even, baudrate = 921600, data-bit = 8, stop-bit = 1.0, flow-control = offTimeout error occured while waiting for acknowledgement.Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...Failed connecting to target. Try unplugging and replugging the device and try again.If the problem persists, please check that the option byte nBOOT_SEL is set to false. Refer to readme.md for more information."
HelloI am using a Mac. There is software support for stm32cude ide on Mac. But I would like to ask if there is support for Touchgfx application on a Mac.On the website https://www.st.com/en/embedded-software/x-cube-touchgfx.htmlI can not find a link to download the software for Mac.Is there software support for Mac or any other way to run this application? Thank you
Hello,I use the STM32 Motor Control Software Development Kit (MCSDK version 6.4.1). I created a new project with the STM32G474E-EVAL microcontroller board, the two IHM07M1 motor-drivers (power boards), the two modified X-NUCLEO-IHM09M1 adapter (connector) boards, and two gimbal 12V 3-Phase BLDC motors with encoder AS5048A. The project code was generated. By the way, I have not bought all the hardware yet. Our project is specific. For all microcontroller boards and their software, which I know, it is true that setting zero speed holds a motor's rotor in a fixed position. We need to accelerate two motors' rotors for 180 degrees and let them rotate by inertia for next 180 degrees. In this way, a rotor makes one full 360-degree circle path. It seems that the MCSDK Motor Pilot makes a rotor in a fixed position if the motor speed is set zero. Hence, we need to depower the motors while the rotors make the 180-degree path by their inertia. I doubt that the MCSDK Motor Pilot can completely
Hi, I wanted to set up time keeping on my Discovery board for testing something. I see the following in the documentation for the larger STM32F769-EVAL: https://github.com/STMicroelectronics/STM32CubeF7/blob/master/Projects/STM32F769I_EVAL/Examples/RTC/RTC_InternalTimeStamp/readme.txt - This example runs on STM32F779xx/STM32F777xx/STM32F767xx/STM32F769xx Devices.- This example has been tested with STMicroelectronics STM32F769I-EVALboard and can be easily tailored to any other supported device and development board. - STM32F769I-EVAL Set-up- Make sure that JP15 is in position 2-3 to connect 3V battery to VBAT pin. At first I didn't know -EVAL and -DISCO are two different things and kept searching through the manual for the -DISCO where JP15 seems to have a different role. But the first line from the docs makes me think there has to be an RTC on the -DISCO board. I take it I need to put a 3.3V battery somewhere. In the diagram I see a number of 3.3V conne
Hello, I ran into an issue when testing a UART application on a STM32C562RE in loopback mode with RTS and CTS enabled. The app does the following:1. Start receiving 1 character at a time by using HAL_UART_Receive_IT.2. Send a string 3. After the received character is printed out I issue another call HAL_UART_Receive_IT.Everything works fine; the app prints out the string I sent. I wanted to make sure the hardware flow control was running correctly so I placed a HAL_Delay(1) after I print out the character received and before I issue a new call to HAL_UART_Receive_IT. This should stop the transmitter due to the CTS -> 1 (no more room in the Rx buffer) and it should restart it after I issue the HAL_UART_Receive_IT CTS -> 0 due to available room in the Rx buffer; and, it does. All the characters are received as expected however HAL_UART_Receive_IT returns HAL_ERROR. Everything seems normal except the error returned by HAL_UART_Receive_IT.I de
Hello Everyone,I'm checking the STM32WL5MOCH6TR MCU of a custom board that i made a few years ago, and I don't understand something : - On the datasheet, it says that its frequency range supported is 864–928 MHz- When I open a CubeIDE project, I'm able to set a much wider range : LoraWAN example : SubGHz_Phy example : Is that intentional ? Maybe those Middlewares are general-purpose?
Hello, we are seeing a weird symptom in our application in which all LTDC registers are reading back the same seemingly random number. This is during a debugging session via system viewer (we are using Keil 5.40 and compiler 5), OR when reading and printing out values to serial at runtime. The LTDC seems to be operating properly (mostly, working through various issues but it's displaying graphics at least. I'm stumped, and so are the AIs I use. Any ideas as to why this might be?
I have troubles using SPI3 on STM32U575VG. After some time the transfer hangs and it is not possible to amend it until whole reset.Configuration: Only transmit, is feeds LCD display, 240 lines, 54 bytes each.APB3 clock 48 MHz. Manual CS handling, SCLK 1.5 MHz.Everything looks ok, it works, but after some time and on some boards only it hangs. The problem appeared in the start of production. Symptoms: after configuration and LL_SPI_Enable(), the DMA transfers 16 bytes to the FIFO. That's ok, DMA works. But after LL_SPI_StartMasterTransfer(), the transfer doesn't start.Looking at the pins, SCLK remains low and MOSI contains some data, but very slow, one bit interval seems to be 8 ms. Reset of the SPI doesn't help. Reinit of the whole MCU after STOP2 (without reset), including all clocks doesn't help. The only thing that works is the reset of the whole MCU. I have no idea where to look at more. The SPI is not overclocked, it doesn't wait for any external signal. It happens sometimes
Is there a STM32N6 throughput test on the USB 2-480Mb happened. I'm just curious because i'm getting a throughput on my design of * 97 Mb Just wondering what is a idealistic throughput to see if i need to edit something on my end or this is a expected throughput to get.
Hello,Here are a few things I need to clarify regarding the EVSPIN32G4 current measurement and the related MCSDK software:Referring to section 5.6.1, 5.6.2 and 5.6.3 of the UM2850, I believe that the topology using three standalone OpAmps presented in section 5.6.2 is not currently supported by MCSDK, is this correct?So, considering the 2 topologies presented in 5.6.1 and 5.6.3, is there a major disadvantage to go for the internal PGA solution compared to the first configuration which requires external feedback networks on the inverting side of the OpAmp?At the end of section 5.6.3, it is recommended to connect the inverting input of the PGAs to shunt resistors to perform differential current measurement in case of high current application, but I don't have the possibility to do it in MCSDK since only the "single ended" sensing type is available, what do you propose in this case?Thanks in advance and best regards.
Hi,I am using one ADC with multiple channels on an STM32 device. I configured a timer trigger (external trigger) for the ADC, but I noticed that the trigger seems to apply to all channels of the same ADC, not just the selected channel.I would like to confirm:Is it true that one ADC has only one trigger source, and all configured channels share that trigger?Is it possible to configure different sampling/trigger properties per channel, or is the external trigger common for the entire ADC conversion sequence?My goal is to use different trigger timing per channel, but I am using only one ADC peripheral.Thank you.
Hi I have setup a small project in CubeMX v6.17.0 with FSBL and an application (secure domain only). As long as I use the default Flash and RAM region, debugging works fine. ROM (xrw) : ORIGIN = 0x34000400, LENGTH = 511K RAM (xrw) : ORIGIN = 0x34080000, LENGTH = 1536KIn the future the application will be way bigger (using TouchGFX), therfore I increased the Flash Region to 1.5 MB and the RAM Region will start at 0x34200000 with a length of 1.5 MB as well. ROM (xrw) : ORIGIN = 0x34000400, LENGTH = 1536K RAM (xrw) : ORIGIN = 0x34200000, LENGTH = 1536KSince I made this change it is not possible to step into the application. FSBL works well and is loading the App data from external Flash into SRAM (0x34000000) as requested. After jumping into the app connection to target is lost as soon as SystemInit funciton is called. Debugger can't write any more: Cannot remove breakpoints because program is no longer writable. Further execution is probably impossible. 0x3400095a
The boot fail light doesn't seem to function the way i would think it would. When* boot 0 == 0* boot 1 == 0* entire external flash == 0xff* using STM32N6-DK The boot fail light never seems to stay on? My thought is that part of the ROM would read the data from the flash do a CRC on the data and then if it matched then turn the light off. But it always seems to turn the boot fail led off no matter whats in the flash?
Hi folks,I am working on integrating SBSFU with my application. I've got one internal slot and one external slot. The update file is received fine, the header is written to the swap area to be installed after the reset. The reset occurs, SBSFU finds the header, decrypts the update file and swaps the file.However.. it gets stuck at SFU_IMG_Validation, writing the `pTestHeader` to `SLOT_ACTIVE_1_HEADER` address and triggers `SFU_IMG_FLASH_WRITE_FAILED` in `sfu_fwimg_common.c`.I assume that this part of flash is write protected? But I cannot find any mention of this in the SBSFU guides or files. It would be great if someone can help me figure out how to finalize this.09:35:13.652 > = [SBOOT] RuntimeProtections: 0 09:35:46.801 > 74640 bytes of ciphertext decrypted. 09:35:54.301 > Image preparation done. 09:35:54.301 > Swapping the firmware images.................................. 09:35:54.397 > Address = 0801D000, FwSize = 74640, len = 192 <-- added debug info 09:35:54.39
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.