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
Hello ST team,I am studying the flash security mechanisms (RDP, WRP, PCROP) on STM32L476RG and I understand how to configure Option Bytes using STM32CubeProgrammer or firmware.What I am trying to understand is the hardware-level enforcement flow of Option Bytes:• During reset / power-up, which hardware blocks read the Option Bytes?• How are these values propagated to the Flash controller and debug access logic?• At what point relative to CPU reset release are these protections enforced?I understand that enforcement happens before user firmware execution, but the reference manual does not describe the internal sequence in detail.Could you please clarify (at a high level) how Option Bytes are latched and enforced by hardware during the boot/reset sequence on STM32L4 devices?Thank you.
I just installed CubeIDE 2.0.0 on Ubuntu 24.04 (finally!). However I cannot launch it (I do get the initial workspace selection popup, but after selecting "Launch" I get this error):$ /opt/st/stm32cubeide_2.0.0/stm32cubeide_wayland Could not create GBM EGL display: EGL_NOT_INITIALIZED. Aborting...A little bit of poking around on Google suggests that installing libnvidia-egl-wayland1 should fix this issue, however on my system libnvidia-egl-wayland1 is already installed:$ dpkg -l | grep libnvidia-egl-wayland1ii libnvidia-egl-wayland1:amd64 1:1.1.13-1ubuntu0.1 amd64 Wayland EGL External Platform library -- shared libraryii libnvidia-egl-wayland1:i386 1:1.1.13-1ubuntu0.1 i386 Wayland EGL External Platform library -- shared library I have tried rebooting a couple of times but I keep getting the same error. Does anyone know how to fix this?
Hi,I'm designing a custom PCB and I'll be using a VNQ9080AJ to drive 4 inductive loads (hydraulic valve spools).Is the protection diode in the datasheet sufficient for that application?The device will drive up to 28 VDC ~3.5 to 5 amps inductive loads.I need to know if I need to add external flyback diodes.Thanks!
SOMETIMES (not always), when i try to debug (and only when i try to debug, run does its job well) with STM32CubeIDE my Riverdi board, i encounter the "Could not verify ST device! Please verify that the last version of the GDB-server is used for the connection" error. It happens right afterLoading RTOS driver... ThreadXConnecting to GDB server 127.0.0.1 on port 61234 ... ConnectedListen for GDB connection on port: 60000 ... Connected.if this helps.Downloading code with run is always fine, and sometimes the debug option works, but not always. It is really annoying to rely on luck to make the *** thing work. I tried unplug-replug. The board is definitly not counterfeited, same goes for the ST-Link.
I made a support pack for better support of CAN connections.But there is no possibility to create a "Platform Setting" for CAN connections I tried to edit the "Modes.xml" manually. Than the PackCreator shows the correct IP, but STM32CubeMX doesn't accept it. Additional: if I create a not usable platform setting there will be "unsovlable" warning.
HelloI am currently developing a quadruped robot using a NUCLEO-H753ZI. My setup involves a mix of Dynamixel AX-12+ (UART3, 1Mbps, Protocol 1.0) and MX-series motors (UART6, 2Mbps, Protocol 2.0) using an SN74LS241N transceiver.The Problem:UART3 (AX-12): Works perfectly at 1Mbps. This confirms my basic transceiver logic and wiring are functional.UART6 (MX-Series): No response at all. I’ve tried downgrading the MX motors to 1Mbps and using Protocol 1.0 to match the AX-12, but still nothing.Technical Context & MPU Setup: To provide more context, I have implemented an MPU configuration primarily to handle IMU sensor data via DMA. I wanted to ensure cache coherency for the IMU data buffers.However, I am now concerned that this MPU/Cache setup might be interfering with my UART6 communication. Since the MX motors on UART6 require much higher timing precision (especially at 2Mbps), I suspect the D-Cache or MPU regions might be causing issues with the UART TX buffers, even though I'm curren
Hi I have been testing secure function calls from non-secure world in STM32U575 - TrustZone Enabled environment.I have a LED_Port which is in secure world (secure peripheral). I have implemented a toggle function in secure project - secure_nsc.c/hCMSE_NS_ENTRY void SECURE_BlinkBlueLED(void) {...}I can be able to compile without any issues:Here are some linker details:.....................................I verified the map files as below.......................Now I am calling this function from non-secure project: It went to Hard Fault as it calls original function which is in the secure world.How to call veneer instead of direct function?Any help?
I am trying to build the basic LED Blink on the STM32-N6570-DK , since i have build the code and try to run with the default settings it ends up with the following problem , whats the reason and how to solve this ?
Hello Everyone,I am currently using LPUART2 for communication between an MCU (STM32U031) and an MPU (Application Processor).Configuration parameters:Baud rate: 9600Stop bits: 1Parity: NoneData bits: 8Description:Data exchange between MCU and MPU works perfectly when both devices are operating in normal power mode (i.e., not in sleep or stop modes). However, I am facing an issue when both MCU and MPU wake up from sleep/stop mode. After wake-up ,The MCU is unable to receive data from the MPU, even though the MPU continues transmitting data. No IRQ handler is triggered on the MCU side.Additional Details:I deinitialize the LPUART before entering sleep/stop mode.I reinitialize it immediately after wake-up.Scenarios Tested:Only MPU enters sleep (MCU remains active): After MPU wake-up, communication works perfectly.Both MPU and MCU enter sleep: After wake-up, communication fails (MCU doesn’t receive data).Observation:It seems that the issue is related to LPUART behavior du
For the microcontroller STM32H562IIT6, does it support code execution from External flash(Xip)? Also does it support Quadspi interfacing in given Octospi lines?
Is the flash dual-BANK feature of H563 enabled by default? How to switch banks
I select a new project and select the STM32L100C6U6A. STM32CubeMX says it has 4 kBytes of RAM.I generate the project for EWARM.But when I generate the project for EWARM it puts stm32l100xba_flash.icf file in the project and that files says RAM is 16384 bytes.And the datasheet for STM32L100C6U6A says 4 kByte.Is this a bug in STM32CubeMX?My application still seems to run without errors. IAR reports 9511 bytes of readwrite data memory used.Why does it still work? Is the datasheet wrong and this device is actually delivered with 16 kBytes RAM?
I have been trying to add freeRTOS to simple LED - TrustZone enabled project (default LED project). I just followed the instructions as given here: How to use STM32U5 with FreeRTOS™ in tickless mode - STMicroelectronics Community This instruction shows enabling X_CUBE-FREERTOS for NS but this gave me the following errors: So, I enabled for both, secure and non-secure versions in Cube MX This solved my previous errors but code hang in HAL_GTZC_MPCBB_ConfigMem() [Note: before enabling RTOS I did not see any issues in calling this function] Any suggestions?
Hello,I was trying to implement extended calibration for ADC1 on my STM32U575 according to RM0456 Rev 5. I have a revision ID 0x3001 chip which should support extended calibration. The chip would hang very badly (can no longer connect with debug probe!) after step 6 ("Set the LATCH_COEF bit"). I took a look at the HAL code in stm32u5xx_hal_adc_ex.c and it is doing a few things differently:Using DMB instructions between setting CALINDEX and CALFACT and between setting CALFACT and setting LATCH_COEF.Preserving the low-order 8 bits of CALFACT when writing 0x03021100 to the register.When I changed my code to do those two things the ADC now completes calibration properly and doesn't hang my debug connection.It would be helpful if the RM could be updated accordingly!Thanks,TG
hiim trying to design ADC module with STM32L452.in datasheet table 77, t_s must be 0.03125us - 8.00625us when f_ADC is 80MHzbut in table 78 the range of sampling time is 32.25ns - 8006.75ns.isnt it must be 8006.25ns?
Can the STM32G031Y8Y6TR be subjected to ultrasonic cleaning after being mounted on the board? Are there any internal structures that do not allow ultrasonic cleaning?1. **Cleaning agents**: ST-240KKA or pure water2. **Temperature**: 55°C or below3.**Duration**:Within 6 minutes4.**When using ultrasonic cleaning**:*Frequency: less than 45 kHz
Dear ST Support Team,I am working with the STEVAL-ESC001V1 evaluation board and a drone motor listed at the following link:https://www.dys.hk/product/D2826.html RPS for power supply given directly to ESC power pins of 12V and 2A current.My objective is to run this motor using ST MC Workbench software version 6.4.1. I would like to confirm whether any additional hardware, such as an STM32 development board, is required in order to operate the motor with this setup.During system configuration in MC Workbench, I created a new project and selected STEVAL-ESC001V1 for the inverter section and Bull Running BR2804-1700KV for the motor section. However, when I later attempted to edit the project, the motor selection options displayed only two types of PMSM motors. Could you please clarify whether MC Workbench supports only PMSM motors? The motor I am using is a BLDC motor, as specified above.Additionally, I would like to inquire whether an example project for STEVAL-ESC001V1 is available
Zephyr RTOS 4.3.I am trying to get this sample working on my STM32 Nucleo F767ZI board:zephyr/samples/drivers/uart/async_api/I created an overlay file.nucleo_f767zi.overlay dut: &usart3 { dmas = <&dma1 2 STM32_DMA_PERIPH_TX>, <&dma1 3 STM32_DMA_PERIPH_RX>; dma-names = "tx", "rx"; }; &dma1 { status = "okay"; }; Building and running the sample I get the following output: *** Booting Zephyr OS build v4.3.0-929-g1d6e0d533a81 *** [00:00:05.000,000] <inf> sample: Loop 0: Sending 3 packets [00:00:05.000,000] <err> uart_stm32: Tx buffer should be placed in a nocache memory region [00:00:05.000,000] <err> sample: Unknown error (-14) [00:00:05.000,000] <err> uart_stm32: Tx buffer should be placed in a nocache memory region [00:00:05.000,000] <err> sample: Unknown error (-14) [00:00:05.000,000] <err> uart_stm32: Tx buffer should be placed in a nocache memory region [00:00:05.000,000] <err> sample: Unknown error
The STM32N6 reference manual shows that IC18 drives the CSI2Host and CSIPHY IP blocks at a maximum frequency of 200 MHz. CubeMX generates this clock configuration code but does not show the clock path in the clock configuration window. Additionally, it does not provide any error checking and will allow IC18 to be configured above 200 MHz.Clock tree diagram:Maximum clock rate spec:CubeMX generated code in HAL_DCMIPP_MspInit:PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_DCMIPP|RCC_PERIPHCLK_CSI; PeriphClkInitStruct.DcmippClockSelection = RCC_DCMIPPCLKSOURCE_IC17; PeriphClkInitStruct.ICSelection[RCC_IC17].ClockSelection = RCC_ICCLKSOURCE_PLL4; PeriphClkInitStruct.ICSelection[RCC_IC17].ClockDivider = 1; PeriphClkInitStruct.ICSelection[RCC_IC18].ClockSelection = RCC_ICCLKSOURCE_PLL4; PeriphClkInitStruct.ICSelection[RCC_IC18].ClockDivider = 2;
Hello,I'm using MEMS Studio to log data from a multi-sensor glasses platform for biomarker extraction research. My sensor configuration includes:ST1VAFE6AX (Accelerometer @ 240 Hz, Gyroscope @ 240 Hz, vAFE enabled)LIS2MDL (Magnetometer)LPS22DF (Pressure)STTS22H (Temperature)The CSV export includes a new_data column containing hex values (e.g., 0x08, 0x10, 0x18, 0x20, 0x400). I understand this is a bitmask indicating which sensor(s) have new data in each row, but I cannot find official documentation for the bit assignments.Through empirical analysis (checking which sensor columns actually change when each bit is set), I determined:Bit Mask Sensor CorrelationBit 30x08Accelerometer96.6%Bit 40x10Gyroscope96.6%Bit 50x20Magnetometer99.9%Bit 60x40Pressure—Bit 100x400vAFE—Questions:Is there official documentation for the new_data bitmask format in MEMS Studio CSV exports?Are these bit assignments consistent across different sensor configurations, or are they dynamically assigned based on which
I'm working on a custom stm32mp133d board and Yocto (latest release), but something has me quite puzzled.Our hardware looks like this:- Kingston EMMC04G-MT32-01G10 (mmc2)- 4Gb DDR- STM32MP133d- STM32PMIC1most of it is very similar to STM32MP135F-DK. To configure our board, I'm using the stm32cube-mx approach. My issue is, that the generated FIPS image has somehow a misaligned BL33 (U-Boot) image, which results in a failed boot:NOTICE: CPU: STM32MP133D Rev.Y NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11 INFO: PMIC version = 0x21 NOTICE: Reset reason (0x35): INFO: Power-on Reset (rst_por) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000 INFO: FCONF: Reading firmware configuration information for: stm32mp_fuse INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using EMMC INFO: Instance 2 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.10-stm32mp1-r2.0(debug):lts-v2.10.13-dir
Hello! I have a struggle to boot the isolation LRUN project from STM32Cube_FW_N6_V1.3.0/Projects/STM32N6570-DK/Templates/Template_Isolation_LRUN. 1. First i've performed the mass erase to remove the demo on the discovery board. 2. I've build and add the header to the binary with the Signing Tool for all three projects. Example below for FSBL. STM32_SigningTool_CLI -bin Template_Isolation_LRUN_FSBL.bin -nk -of 0x80000000 -t fsbl -o Template_Isolation_LRUN_FSBL-trusted.bin -hv 2.3 -dump Template_Isolation_LRUN_FSBL-trusted.bin3. I've Flashed the external memory in DEV mode with all three images:FSBL flashed to 0x7000 0000 SecApp flashed to 0x7010 0000NonSecApp flashed to 0x7018 00004. I've switched the board to Boot from ext. memory mode and pressed restart. The board doesn't boot. 5. I've loaded the FSBL project in DEV mode with debugger to internal RAM( 0x3418 0400 ) and it runs nicely. ---------------------------------------------
I am using a STM32G4 MCU and STM32CubeIDE. I want to synchronise two timers (TIM3 and TIM15) that are generating PWM signals so that they both start at the same time. TIM3 is set to 250 kHz and the PWM is modulated via DMA on channel 1. The modulated signal is a 10 kHz sine wave.TIM15 is set to 10 kHz and the PWM is a simple 50% duty cycle.I need the timers to start together to ensure that the PW Modulated 10 kHz sine wave (TIM3) is synchronised to the 10 kHz PWM (TIM15).I thought it would be straight forward enough. I have configured TIM15 as master. In CubeMX I have set Master/Slave Mode (MSM bit) to "Enable (Trigger delayed for master/slaves simultaneous start)" and Trigger Event Selection to "Enable (CNT_EN)".I have configured TIM3 as a slave. In CubeMX I have set Slave Mode to "Trigger Mode" and Trigger Source to "ITR6" (per the reference manual).To the CubeIDE generated code I have added: /* USER CODE BEGIN 2 */ HAL_TIM_PWM_Start_DMA(&htim3,
Hi!I'm new with STM32CubeIDE and STM32N657X0-Q. I'm working with them because of my bachelor's thesis. My model size es 73KB but 432KB because of activations.The input of my ML is data generated with CMSIS-DSP but I have issues in LL_ATON_RT_RunEpochBlock() line and, I can't see the output.I've followed these guidelines:https://community.st.com/t5/edge-ai/ll-aton-set-user-input-buffer-output-buffer-just-returns-wrong/td-p/842354https://community.st.com/t5/stm32-mcus/how-to-build-an-ai-application-from-scratch-on-the-nucleo-n657x0/ta-p/828502https://community.st.com/t5/edge-ai/problems-with-running-an-ai-model-on-the-nucleo-n657x0-q-board/td-p/818432https://community.st.com/t5/edge-ai/inference-blocking-on-ll-aton-osal-wfe-with-threadx/td-p/868994 This code is not mine, it was used at least to resolve printf issues that I had: https://github.com/YousefDessouki/STM32_N6_NuceloBoardwithNPU/tree/main And I have the following code:LL_ATON_RT_Init_Network(&NN_Instance
Hi Members,The EV-582B board seems to be out of stock within numerous distributors (Mouser/Digikey...) and no release date in sight.May the available SPC582-DIS replace (as both share the same microprocessor) and be reprogrammed with the already compiled Chorus1M_VNF1048_discovery.elf/Chorus1M_VNF1248_discovery.elf firmwares (with some rewiring between the mother and daughter boards if needed)?A better solution would be to publish the source code and leave the customers compile it on wathever SPC5 motherboard they own. It has been asked numerous times in the VNF1048F posts but STM does not seem to hear our voices.Hope we will get solutions soon as ST members seem reluctant to answer (7 posts under 10 about the VNF1048F without answers... my 2 cents!).Regards,Michel
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.