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 community !I was working on a custom STM32 board as part of a robotics project. We started evaluating STM32H7 through the Nucleo boards, and now that we've confident with our chip selection, I designed a custom nucleo-type board, which can later be integrated on our main robot PCB. Since we didn't need any additional features, main focus was to have a board with just the STM32 chip (STM32H755ZIT6) along with the basic components needed. During the evaluation, I am not able to establish connection between ST-Link V3 MiniE, it shows "No target found". The board is powered by an 5V external supply, which powers the STM LDO, providing 3.3V for the chip. I tried playing around with the ST-Link config settings like Frequency, Mode, Reset Mode and Speed, but it doesn't help in fixing the error.Upon testing the ST-Link with the Nucleo board, it is able to connect to the STM32 onboard (so the ST-Link board is working fine). Upon reviewing my schematic, I realized that there were tw
I am working with the NUCLEO-WBA55CG board on a Zigbee_OnOff project, and I am facing an issue with the LED behavior.EnvironmentBoard: NUCLEO-WBA55CGMCU: STM32WBA55CGSTM32CubeMX version: 6.17.0Firmware package: STM32CubeWBAApplication type: Zigbee On/Off example / based projectThe project is able to run, and Zigbee side behavior appears to be partially working, but the LED is not blinking/toggling as expected.The problem is:button press has no visible impact on the LED, orZigbee On/Off action does not toggle/blink the LED as expectedIn my case, the issue looks more related to the GPIO / board mapping / callback path than to Zigbee network joining itself.
Hi, I am trying to configure the X-NUCLEO-GFX02Z1 display expansion board with the NUCLEO-F767ZI board. The LCD controller used is ST7789, and the interface is configured via FMC. During BSP initialization (BSP_LCD_Init), I am encountering an error: Return status: BSP_ERROR_COMPONENT_FAILURE The LCD ID read is not as expected (expected value: 0x858552U as per the BSP driver) However, if I bypass this failure and proceed: I am able to set the orientation using BSP_LCD_SetOrientation I can retrieve the orientation using BSP_LCD_GetOrientation successfully When attempting to draw on the display using:BSP_LCD_FillRGBRect(0, 0, (uint8_t*)buffer, 0, 0, 100, 100); there is no visible output on the screen. Could you please help identify: Possible reasons for incorrect LCD ID reading? A minimal working example to display a solid color on the screen using this setup? Any guidance on debugging steps or known issues with this board combination would be greatly appreciated. I am already
Hello everyone, I am currently working with the STM32G431CBT6 and designing a custom ESC using the DRV8301 gate driver. My application requires a total of 9 ADC channels: ADC1 → 4 channels ADC2 → 5 channels I configured both ADCs in independent mode with DMA (circular) using STM32CubeMX. Issue Description When I start ADC with DMA using the following function: void ADC_Start_System(void) { // 1. Calibration HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED); HAL_ADCEx_Calibration_Start(&hadc2, ADC_SINGLE_ENDED); HAL_Delay(10); // 2. Start ADC1 if (HAL_ADC_Start_DMA(&hadc1, (uint32_t*)adc1_buffer, 4) != HAL_OK) Error_Handler(); // 3. Start ADC2 if (HAL_ADC_Start_DMA(&hadc2, (uint32_t*)adc2_buffer, 5) != HAL_OK) Error_Handler(); } Observed Behavior ADC1 + DMA works perfectly MCU gets stuck when calling: HAL_ADC_Start_DMA(&hadc2, (uint32_t*)adc2_buffer, 5); No error returned, but CPU halts inside HAL (likely waiting on a flag) What I Ha
hello community ! I'm facing issue wiht RS485 mod on USART3. Please find here a TL;DR of the issue, context, workaround and finaly request for answers. HARDWARE PLATFORMMCU: STM32U595USART: USART3 configured in RS485 modePROBLEM DESCRIPTION:During development of RS485 communication firmware for the STM32U595, we encountered anunexpected issue that challenged our understanding of the USART configuration: USART3 is configured with RS485 mode via HAL_RS485Ex_Init() which correctly sets the DEM (Driver Enable Mode) bit in CR3 for hardware-controlled driver enable:HAL_RS485Ex_Init(uart_handle, UART_DE_POLARITY_HIGH, 16, 16);This is the documented, correct approach for RS485 with automatic driver enable pin control.However, after extensive investigation and troubleshooting, we discovered that working RX/TX communication on this specific hardware appears to require ALSO calling:HAL_HalfDuplex_EnableTransmitter(); // - before transmission HAL_HalfDuplex_EnableReceiver(); // - in tran
Now that that the CRA dates are near, why is there isn't a forum for regulatory compliance and CRA specific questions ?For example, which products STM offers now will not be CRA compliant ? This is important as those products would have to be revised or removed from the market.For example an STM32F072 would still meet requirement 1. as the main controller of the product with our without an RF/network connection (via UART/I2C etc..) or 2. as a peripheral connected to the main MPU (indirect) which connects with LAN or WIFI to outside world
I have set up a STM32U5 nucleo board with an additional 8M of memory using an APS6404, following the example in AN5050. Initial setup was straightforward, but trying to create a ThreadX thread that uses an array in that section of memory as its stack isn't working -- local variables within the thread are fine, but function calls like printf("foo") or tx_thread_sleep(10) cause a hard fault.This is my first project using a STM32 microcontroller, and think I'm missing some fundamental understanding of how this is supposed to work -- any suggestions for what I've missed / what I should try?------------------ Details about what I'm trying ----------------- After following the steps given in AN5050, I updated my .ld file to create a corresponding memory section:MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 2496K SRAM4 (xrw) : ORIGIN = 0x28000000, LENGTH = 16K FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 4096K OCTOSPI1 (xrw) : ORIGIN = 0x90000000, LENGTH = 8M } SECTIONS { .octospi1 :
Hi,I encountered this bug with a previous update and after searching I added the -z noexecstack parameter as given in a 2025 post.That cleared the problem at the time. The IDE has updated itself to V2.1.1 and the bug has re-appeared, despite the noexecstack parameter still being present? Full error:C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7e-m+dp/hard/crtn.o: missing .note.GNU-stack section implies executable stack C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../
Hi : I’ve been working on planning an STM32WBA25 series product recently. Regarding the antenna design, I’ve been referencing ST’s development board “NUCLEO-WBA25CE1.” From the MCU pin, the signal goes through an IPD, then a matching network, and finally to the antenna.Currently, the IPD is a major challenge for me. Is it possible to replace the IPD with discrete components?
Hello,I am following AN4803 to simulate my board with an STM32MP151 with DDR3L memory, but there seems to be a problem with the IBIS model. These IBIS models have missing receiver voltage thresholds, which may affect analysis:IBIS File: C:\Users\...\IBIS\stm32mp151_153xaa_lfbga448_sm.ibsIBIS Model: MSD_D3RP3L_48Model does not have a [Receiver Thresholds] section.Only Vinh and Vinl thresholds are specified in the [Model Spec] section, and will be used for both AC and DC thresholds.Net: $9I75\DDR_DQ0Controller pin: U1.E21 (DDR_DQ0)Net: $9I75\DDR_DQ1Controller pin: U1.F21 (DDR_DQ1)Net: $9I75\DDR_DQ2Controller pin: U1.H21 (DDR_DQ2)Net: $9I75\DDR_DQ3Controller pin: U1.E20 (DDR_DQ3)Net: $9I75\DDR_DQ4Controller pin: U1.J21 (DDR_DQ4)Net: $9I75\DDR_DQ5Controller pin: U1.H20 (DDR_DQ5)Net: $9I75\DDR_DQ6Controller pin: U1.H22 (DDR_DQ6)Net: $9I75\DDR_DQ7Controller pin: U1.G19 (DDR_DQ7)Net: $9I75\DDR_DQ8Controller pin: U1.N22 (DDR_DQ8)Net: $9I75\DDR_DQ9Controller pin: U1.R21 (DDR_DQ9)Net: $9I75
Hello everyone,I am designing a USB-C Sink-only application (5V/3A) using a standard STM32 MCU. My power architecture is as follows:Input: USB-C Connector (VBUS, CC1, CC2).Protection: TCPP01-M12 controlling an external N-channel MOSFET on the high side of VBUS.Regulation: A 3.3V LDO is connected downstream of the MOSFET.Supply: The 3.3V output from the LDO powers the MCU and the VCC/DB pins of the TCPP01-M12.The Constraints:The MCU's internal UCPD peripheral is not used (pins are allocated to other functions).The system must rely entirely on the autonomous hardware logic of the TCPP01-M12 for the initial power-up.The "Zero-VCC" Paradox:I have a technical question regarding the Dead Battery startup sequence. When the system is first connected to a charger and is completely unpowered:VCC of the TCPP01-M12 is strictly 0V because the LDO hasn't started yet (the MOSFET is still open).DB pin is also at 0V.My Questions:Internal Powering: How does the TCPP01-M12 energize its inter
Hello,A custom control board using an STM32G0C1 stopped working after some time. Upon plugging into the board and stepping through the program using the CubeProgramer, it was discovered that the PC was cycling through the same addresses repeatedly and getting hung up. These memory addresses were traced back to various HAL delay functions using addr2line. Normal operation involves the board initializing and executing various state machines in a superloop (no RTOS), not getting stuck in a "boot loop" delay. The entire flash memory was dumped to a .bin file and then an attempt was made to erase the flash using the CubeProgrammer with no luck and an error thrown. No fuse bits or any kind of erasure protection was enabled during the programming of this board. Then the CubeIDE was used to compile some code and start a debug session. Somehow, the CubeIDE had no issue loading a program into flash. This is where it gets interesting. 
Hello, I'm reading the article on "How to create an STM32N6 FSBL load and run" and have a couple of questions about DFU implementation on the STM32N6: 1. Is DFU possible with the application as part of the FSBL? 2. Is there an example on how to implement DFU for when the application is part of the FSBL and also where the application is separate from the FSBL? https://community.st.com/t5/stm32-mcus/how-to-create-an-stm32n6-fsbl-load-and-run/ta-p/768206 I'm using the stm32n6570-dk eval board. Thanks!
Board:B-L4S5I-Iot-01A discovery kitMCU: STM32L4s5Vit6Hello , We have an application in which we are using the USB_OTG interface configured in host-only mode with the USB CDC class. Our requirement is to receive data at a rate of once per second through this interface. However, upon configuring the USB CDC class, the USB_OTG_FS global interrupt gets enabled automatically. In our application, we want to minimize the use of interrupts, as frequent interrupts may impact overall system performance. Therefore, we would prefer a polling-based approach, where data can be read only when required rather than being interrupt-driven. Could you please advise if it is possible to: Disable the USB_OTG_FS global interrupt, and Use the USB CDC host driver in a polling-based manner to retrieve data on demand? Any guidance or recommended approach for achieving this would be highly appreciated. Thank you.
Hi people,i have trouble with writing to the internal eeprom / flash. I can write values one time to the EEPROM and read it correct back from eeprom. When i write next time values to the eeprom and read them, the values changed but are incorrect. I tried many solutions, but know i am perplexed.//EEPROM Funktionen void EEPROM_Unlock(void) { while ((FLASH->SR & FLASH_SR_BSY) != 0) /* Wait for FLASH to be free */ { /* insert timeout test */ } if ((FLASH->PECR & FLASH_PECR_PELOCK) != 0) /* If PELOCK is locked */ { FLASH->PEKEYR = FLASH_PEKEY1; /* Unlock PELOCK */ FLASH->PEKEYR = FLASH_PEKEY2; } //FLASH->PECR = FLASH->PECR | (FLASH_PECR_ERRIE | FLASH_PECR_EOPIE); /* enable flash interrupts */ } // EEPROM lock void EEPROM_Lock(void) { while ((FLASH->SR & FLASH_SR_BSY) != 0) /* Wait for FLASH to be free */ { /* insert timeout test */ } //FLASH->PECR = FLASH->PECR & ~(FLASH_PECR_ERRIE | FLASH_PECR_EOPIE); /* disable flash interr
Hi all,I was super exited to test the new STUSB4531 IC on the EVAL-SCS006V1.The PPS support of the chip is the main reason to pass over from the STUSB4500. I have done a lot of test with 100W PPS enabled USB-C supply but without luck. i did not manage to get it working. Attached is a screenshot of an attempt to trigger 18V via different method:18V Fixed PDO: This was obviously not going to work as 18v is not a fixed PDO.18V APDO: This also was not supposed to work because the source's PDO does not fall into this rangePPS: a 16V-18V was asked and should have been asked first de to PPS_PRIORITY set to 1Things to note:1- All three options have also been tested individually without success2- Multiple current from 1.5A to 5A have been tested3- Source is offering from 3.3V-21V@5A in PPS as you can see in the capture (also on the product label)4- A power reset (USB unplug/plug has been done between every test)5- ABOVE_5V flag has been tested on/off and behave as expected.6- Multipl
Hello,I'm developing the software to exchange secure data between a remote host (Linux-OS computer) and a electronic board based on STM32U5 MCU and STSAFE-A110 secure chip. I already implemented the board authentication and I chose to use the symmetric key encryption that the two hosts securely exchange data. For that the two hosts computes each on their own the shared secret after sharing their own public key. That's works fine!But I don't know what functions of stsafe library to use to encrypt and decrypt data using the computed secret key board-side.Could you please help me?Best regards,Alex
Title edited to note that this is not a genuine ST-Link11:19:26 : ST-LINK SN : 37FF71064E5734365279154311:19:26 : ST-LINK FW : V2J46S711:19:26 : Board : --11:19:26 : Voltage : 3.24V11:19:26 : Error: Unable to get core ID11:19:26 : Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication I am using a LoRa module E77-900M22S that has incorporated a STM32WLE5CCU6. Also i am using a ST-Link V2 mini connected to program the micro. I have connected SWDIO and SWCLK properly and the module has 3.24V so the problem its not the connections. I dont know why it doesnt detect the MCU.
Hi ST Support Team,I am using MXCube for STM32U5A5VJ. I have enabled the RTC, and cube generates the following Init Function. In this way, everytime I restart the controller, the RTC date is gonna be overwritten. In practice, I would like to have the bracket at line 9 down in line 21. Thank you for your support.Best Regards, Gianmarco Cerutti void MX_RTC_Init(void) { ... /** Initialize RTC and set the Time and Date */ if(LL_RTC_BKP_GetRegister(RTC,LL_RTC_BKP_DR0) != 0x32F2){ LL_RTC_BKP_SetRegister(RTC,LL_RTC_BKP_DR0,0x32F2); } RTC_TimeStruct.Hours = 0x0; RTC_TimeStruct.Minutes = 0x0; RTC_TimeStruct.Seconds = 0x0; LL_RTC_TIME_Init(RTC, LL_RTC_FORMAT_BCD, &RTC_TimeStruct); RTC_DateStruct.WeekDay = LL_RTC_WEEKDAY_MONDAY; RTC_DateStruct.Month = LL_RTC_MONTH_FEBRUARY; RTC_DateStruct.Day = 0x11; RTC_DateStruct.Year = 0x25; LL_RTC_DATE_Init(RTC, LL_RTC_FORMAT_BCD, &RTC_DateStruct); ... }
Hi,I have a working 3-phase STPM33/34 energy meter. Voltage is correct. The current is wrong by a fixed factor of approximately 60.Setup:CT: 80A primary / 5A secondaryBurden resistor: 6.8 ΩGain: x2Mode: UART with auto-latchExpected reading: 0.6A → Actual reading: 0.01AWhy I think this is a calibration/formula issue and not a hardware fault:The error is consistent and proportional (not random)Voltage on same chip reads correctlyCRC passes on every frameNo register corruption detectedMy question to the community:Has anyone seen a x60 error factor on STPM33/34 current channels? Which misconfigured parameter — CT ratio in firmware, KI calibration register, Kint constant, or gain setting — would produce exactly this ratio?
We are currently experiencing issues with the LPS28DFW.We observe pressure values dropping to 0 or even negative ranges (e.g., around -400 mPa), as well as unexpectedly high values (up to approximately 1200 mPa), while the expected range should be around 950 mPa. We are also seeing abnormal temperature outputs, including unrealistically low values (e.g., around -400°C).this happens when the sensor is in contact only with air and also when it is in contact only with water. When the sensors from the field they are brought back in the lab the sensors seem to recover on their own and return to normal readings.
I have a platform where I need two different Linux distros, one kinda like Android's recovery environment, and one main application environment.They will have different packages, and probably also different init-systems, as the recovery environment should be as small as possible, so I probably need to build them in separate steps and separate Yocto distros.Additionally the recovery environment will be completely stored in a separate NOR flash, where also the bootloader is stored, the main application distro will be in a NAND flash.How can I get the OpenSTLinux build system to generate an appropriate flashlayout for this?So far I got it to work with the bootloader in NOR and rootfs in NAND, but the extra system in NOR seems to be a bit more effort.
Hello, I have been working on a project attempting to get Lua 5.5, Freertos running on a STM32h723.I used cubeMX to generate my project with Freertos enabled.I brought in Lua 5.5 library from their website https://www.lua.org/download.htmlI was able to get it compiling and my project as a whole builds and flashes without errors.Now the part that I'm struggling with. If for any reason Lua has a error the STM32 goes into hard fault and most of the time it seems to be a BusFault caused by IMPRECISERR.I'm trying to figure out if getting Lua to work on the Cortex-m7 is more involved than just adding the library. As I was watching a video from a person that was getting LuaJIT ported to the STM32h7 and he had talked about a few issues he had in regards to the Cortex-m7 https://www.youtube.com/watch?v=U9Jnah4uXBY Though I will admit he was trying to port over the Lua Just In Time compiler and other things that I don't believe base Lua has. I would appreciate it if anyo
Hi,I'm using the LIS2DUXS12 in FIFO Stream mode with DEC_TS_32. FIFO watermark is set to 64. Looks like every ~17 FIFO reads (~1055 XL samples), exactly 1 accelerometer sample is lost. The pattern is consistent and repeatable.Each FIFO read of 64 entries normally contains 62 XL samples + 2 timestamp tags. However, every 17th read contains 63 XL + 1 timestamp tag. Looks like before this batch with 63 XL samples, there is 1 XL sample gap in data.I use only the timestamp present in the FIFO batch to calculate timestamp for each sample. And with that approach samples in that FIFO batch aligns with next FIFO batch exactly - no gaps, no overwriting, fixed period. So despite the fact that this FIFO batch contains one XL sample more than the other, there's still a gap in data. Configuration:- ODR: 200 Hz (HP mode)- FIFO mode: Stream (continuous)- bdr_xl: ODR- dec_ts: DEC_TS_32- xl_only_fifo: 1- FIFO watermark: 64I couldn't find errata for LIS2DUXS12. Questions:1. Is th
Dear ST Community,We are currently working on the STM32H747 controller using the MIPI DSI interface in video mode.In our setup, we are using the SN65DSI83TPAPRQ1 bridge to convert MIPI DSI signals into LVDS signals for our display panel.The MIPI configuration and bridge configuration details are attached below.After configuring the CSR registers on the bridge side, we are reading Register 0x0A and Register 0xE5 for status verification, as specified in the SN65DSI83TPAPRQ1 datasheet initialization sequence.We have also enabled the test pattern, and the display turns ON (screenshot attached below).Observations:For Register 0x0A, bit 7 is not reading as 1For Register 0xE5, the expected value is 0x00, but it is reading as 0x01We are observing clock signals at the bridge outputHowever, no data signals are present on the LVDS sideQueries:What could be the reason for bit 7 not being set in Register 0x0A?What does Register 0xE5 reading 0x01 instead of 0x00 indicate?Does this behaviour su
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.