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,I’m working on a project using the STM32N6 NPU, and I’m consistently encountering a HardFault during model inference.To set up my project, I followed this tutorial:https://community.st.com/t5/stm32-mcus/how-to-build-an-ai-application-from-scratch-on-the-nucleo-n657x0/ta-p/828502I also used a TFLite model from the Model Zoo on GitHub (I tested several models from the zoo as well as my own custom models).Using the debugger, I was able to pinpoint that the crash occurs on the following line in network.c:LL_Arithacc_Init(2, &Conv2D_7_mul_scale_4_init3);More specifically, the fault happens inside ll_aton.c at:uint32_t t; uint32_t A = Ap != NULL ? LL_ATON_getbits(Ap, bitcnt_A, nbits_A) : (uint32_t)conf->A_scalar;The convolution configuration generated in network.c looks like this:static const LL_Arithacc_InitTypeDef Conv2D_7_mul_scale_4_init3 = { .rounding_x = 0, .saturation_x = 0, .round_mode_x = 0, .inbytes_x = 2, .outbytes_x = 2, .shift_x = 0, .rounding_y = 0, .satura
Hi everyone, I am facing an issue with CAN communication on STM32F446ZCT6, where the CAN controller frequently enters the Bus-Off state. Hardware Details MCU: STM32F446ZCT6 CAN Transceiver: (TJA1042T) I am working with CAN communication on STM32F446ZCT6, and the CAN controller is frequently going into the Bus-Off state. I am using the HSI clock, configured from 8 MHz to 42 MHz, with the CAN clock derived from APB1 = 42 MHz I have enabled Auto Bus-Off Management and tested multiple bitrates (500 kbps, 250 kbps, and 125 kbps), but the issue still occurs. I see bit errors and acknowledgment errors, which eventually cause Bus-Off.Can you please help me to solve this issue.
I am working on STM32h747 series. I am debugging both CM4 and CM7. After a while, CM4 stops responding and the debug messages shows:"Error in final launch sequence: Failed to start GDB serverFailed to start GDB serverError in initializing ST-LINK device.Reason: (4) No device found on target." If I run CM7 independently, it works but CM4 is not responding. I tried to erase the entire board but CM4 is still not responding and the same message is appearing.
Does anyone have a component to display audio spectral graphs, specifically for the STM32N6570 Discovery?
I installed the latest STM32Cube AI Studio along with STM32CubeMX 6.16.0, STM32CubeProgrammer 2.21.0, and ST Edge AI Core.CubeMX has STM32CubeU5 Firmware Package V1.8.0 / 04-June-2025 installed.All attempts to run a neural network end with: ../../Middlewares/ST/AI/Misc/Inc/ai_device_adaptor.h:624:8: error: unknown type name 'UART_HandleTypeDef' When AI Studio generates a project from any neural network, it disables the UART in stm32u5xx_hal_conf.h.Even if I uncomment the #define of HAL_UART_MODULE_ENABLED, the app cannot be compiled because the stm32u5xx_hal_uart.h header was never generated.If I click on the little gear at the upper right in Cube AI Studio, it shows me that the COM5 LPUART1 is configured.So I'm stuck -- Cube AI Studio cannot be used with the stm32u5xx devices.Any advice?Thanks! --Mike
During Startup,after MX_NVIC_Init();when it jumps into /* USER CODE BEGIN 2 */The code is interrupted by TIMx_UP_M1_IRQHandler() in its routine, (void)R3_2_TIMx_UP_IRQHandler(&PWM_Handle_M1);the code gets stuck at /* We can not change OPAMP source if ADC acquisition is ongoing (Dual motor with internal opamp use case) */ while (0x0u != pHandle->pParams_str->ADCDataReg1[pHandle->_Super.Sector]->JSQR) { /* Nothing to do */ }I'm not able to understand why this is happening. I have not initialized any custom ADC (RCM) yet.Everything that has run, until that point is generated code only.With some research I have understood that the TIM1 update routine is infinitely waiting for the ADC(Injected Conversion) to finish. Is this some kind of race condition ?This doesn't happen always on every boot/startup. Only randomly, some times. If it does not crash at this point, I have not observed it to crash at a later point of time.Am I suppose
I'm checking the output of internal opamp in the STM32U083C-DK.In both PGA and Follower modes, I found that the opamp output voltage was lower than the actual input signal. Follower mode/before calibration(Factory trim/0xe13): - Input signal: 0.2502V -> Output signal: 0.2488V PGA mode(Gain: x8)/before calibration: - Input signal: 0.1010V -> Output signal: 0.7942V So, I used the opamp's internal calibration function. Follower mode/after calibration(User trim/0x1f12): - Input signal: 0.2502V -> Output signal: 0.2350V PGA mode(Gain: x8)/after calibration(User trim/0x1f12): - Input signal: 0.1010V -> Output signal: 0.6852V However, the opamp output signal level was further reduced, indicating that something was wrong.Before calibration, the opamp's factory trim code was 0xe13, but after calibration, the user trim code was set to 0x1f12. It appeared that the P terminal calibration value was set to the max (0x1f). (As an additional condition, I opened SB12 on the STM32U083C-DK bo
Hello, I have an STLINK-V3MINIE that I've connected to a B-WB1M-WPAN1 board with a 10 lead cable. I'm trying to flash firmware/my code onto the board, but am running into some errors.First, I tried uploading my code using STM32CubeIDE, but am hitting a "No ST-LINK detected! Please connect ST-LINK and restart the debug session". Sometimes there is also a GDB server error. Then, I tried connecting and flashing firmware using STM32CubeProgrammer. When I first refresh, the ST LINK is detected and I tried updating it through the "Firmware upgrade" button. In the STLinkUpgrade tool (v3.16.8), I get an "Upgrade canceled, corrupted firmware data", then "Upgrade successful" (sometimes I see "Failure exiting upgrade mode (Error 33)" instead of success). When I refresh the device list and open in update mode again, the version of the ST LINK hadn't successfully updated or changed. When I try connecting through CubeProgrammer, the connection fails and I see "UR connection mode is de
In my custom FSBL on an STM32MP135AAE3, everything runs great except anytime I try to modify one of the GIC flags it pretty much ignores me completely (when I read it back, my changed bits aren't changed). I'm guessing this is some kind of trust zone or secure state or similar situation.BTW, when I run my FSBL by setting the chip to serial boot and uploading it that way, it runs great, so I know the code is solid.What do I need to change so my FSBL has full privileges? Is there a document that talks about this?
Hi everyone,I'm trying to interface a DVP camera (like OV5640) with the STM32F469I-DISC0 board using the DCMI peripheral in 8-bit parallel mode.What I have:- The camera is configured and outputs data correctly via I2C.- I'm using bare-metal code (no HAL or CubeMX), and SDRAM + USART debug are working.- DCMI pins are being mapped as per the STM32F469 reference manual.- I verified that I can access and remap the following DCMI pins:- D0 – available- D1 – available- D2 – available- D3 – available- D4 – not available(e.g., PE5)- D5 – available - D6 – available- D7 – available- HSYNC, VSYNC, PCLK – availableProblem:- DCMI_D4 is not brought out on any connector** on the DISC0 board. It's internally routed to LCD or unused.- I checked the board schematic and there’s no easy way to solder to it either.My questions:1. Can DCMI work with 7-bit data (skipping D4)? Will DCMI capture still be valid if D4 always reads 0?2. Is there any known workaround for the missing D4 line (e.g., using
Hi!I wonder how I can bypass"Locking RIF conf for peripheral" inside CubeMX.In this case, op-tee is locking peripheral 34, which is the USART6 console output. Hence, that's the last message.I need to unlock peripheral 34. How can I do that? F/TC:0 0 probe_driver_node:543 Probing stm32-exti on node interrupt-controller@46230000 D/TC:0 0 stm32_exti_rif_parse_dt:423 No global lock on RIF configuration D/TC:0 0 probe_driver_node:556 element: stm32-exti on node interrupt-controller@46230000 deferred 1 time(s) F/TC:0 0 probe_driver_node:543 Probing stm32_gpio-pinctrl on node pinctrl-z@46200000 D/TC:0 0 probe_driver_node:556 element: stm32_gpio-pinctrl on node pinctrl-z@46200000 deferred 1 time(s) F/TC:0 0 probe_driver_node:543 Probing stm32-tamp on node tamp@46010000 D/TC:0 0 probe_driver_node:556 element: stm32-tamp on node tamp@46010000 deferred 1 time(s) F/TC:0 0 probe_driver_node:543 Probing stm32-rtc on node rtc@46000000 D/TC:0 0 probe_driver_node:556 element: stm32
Hello! I have STM32N6570-DK and i would like to disable or make Trust Zone transparent to me and develop the project without safety like your products with cortex M3,M4 and M7 cores with all resources available. I can find some video content on disabling Trust Zone on STM32L5 and STM32U5 but not for STM32N6. STM32CubeIDE offers me a Secure or Secure-Non Secure project generation. Any tips ? Thank you
Embedded ST-Link via CN1 USB is working fine. I followed the direction as below when external ST-Link v2 was tried on STM32L552ZET6Q Nucleo-144. The error message "No Target" was displayed on STM32CubeIDE with external ST-Link. Could you provide me with any advice?
Hello everyone,I am working on a custom board based on the STM32U575RGT6 (1MB Flash). I am encountering a hard fault (SecureFault) during the initialization of the Non-Secure application after integrating the SBSFU.Context:Hardware: Custom board with STM32U575RGT6.Initial Project: A working application using TrustZone active + FreeRTOS (generated via CubeMX). The Option Bytes were set to a default 50/50 split (Secure/Non-Secure).Goal: Implement a Secure Boot / Firmware Update mechanism.What I did:I used the ST example for B-U585I-IOT02A as a reference.I integrated SBSFU_Boot and SBSFU_Loader into my project folder.I adapted the linker scripts (.ld), postbuild.sh, and flash_layout.h to match the 1MB Flash size of the U575RGT6 (vs 2MB on the B-U585I).In my original application, I replaced the .ld files and startup_xx.s files with those provided in the SBSFU_Appli example.Configur
Custom board. STM32U5G9. I am running Zephyr and trying to use PB8 and PB9 for the FDCAN peripheral. In loopback mode, it does not get any errors but in normal mode it does. The odd thing is that if I change the pins in the dts file to PA11 and PA12, it works fine. I am guessing that it is a timing/clock issue or something but I have been arguing with this for two days and I am out of ideas. The device tree entry is: &fdcan1 { // pinctrl-0 = <&fdcan1_rx_pb8 &fdcan1_tx_pb9>; pinctrl-0 = <&fdcan1_rx_pa11 &fdcan1_tx_pa12>; pinctrl-names = "default"; bus-speed = <250000>; bus-speed-data = <250000>; status = "okay"; can-transceiver { max-bitrate = <250000>; }; }; If I uncomment the first pinctrl (pb8 & pb9) I see no output on the TX GPIO pin (PB9). If it is configured as shown, I do see packets on PA12. Thanks!
Hello,A question on STM32CubeMX v6.16.1, when I select OpenAMP in Middleware and Software Packs, I can see configuration options, like COMMUNICATION_MODE, SHM_START_ADDRESS, SHM_SIZE etc, but they are all greyed out and not allowing me to change anything.Is there a way to change these options in STM32CubeMX GUI? (I'm aware that the code generated by CubeMX is cutrrently broken so CubeIDE cannot build this code, and I hope for the fix in the next CubeMX version). Another question - the code in CM33/ folder that is generated by CubeMX, can it be built by the Yocto bitbake, like it does for CA35/ folder?Thanks! Regards,Sergei
Does ST maintain any automated tests for ST development boards and Zephyr? If so, where may I find more details about the hardware used and test coverage?
This release introduces the latest version of RTEdbg, a high-performance toolkit engineered for real-time embedded system analysis and debugging. The latest update streamlines event visualization via VCD viewers and introduces FreeRTOS trace integration, alongside several core enhancements.Unlike traditional logging and tracing solutions (such as Tracealyzer or SystemView), RTEdbg provides deep runtime insights with a minimal footprint. Its logging functions are significantly faster than commercial alternatives and consume substantially less stack space, making it the ideal choice for both resource-constrained devices and complex, large-scale RTOS-based systems.Relying solely on classical debuggers often feels like "flying blind" when managing intricate timing and RTOS scheduling. RTEdbg bridges this gap by providing:VCD-based visualization for synchronized event and data tracking.RTOS trace support for better scheduling visibility.Enhanced trace macros allowing you to log any data typ
I have been looking at the CRA Q&A and was wondering what you you are meaning with the reporting of security incidents 2026-12-11. Do you mean the reporting according to article 14 that enters into force 2026-09-11?
Not sure that I have the latest version of the HAL but I used two ip address for the ETH MAC and tried to enable both in the L3 filter.But I could not get any data to the second interface. with the filter turned on-Looking more closely on the HAL_ETHEx_SetL3FilterConfig I found what can only be a copy paste mistake.Writing the destination address for IPv4 was mede to the MACL3A0R1R register instead of the expected: MACL3A1R1RMight be fixed in newer version but using two IP-address perhaps is a bit unusual.
Hello,I'm trying to run a simple validation or application on the NUCLEO‑N657X0 but I can't seem to get past build errors. I don't know if it's the setup in CubeMX or what. Thanks
Hello, I need to have D-Cache enabled to improve performance of FMC external SDRAM (it's >3x slower without D-Cache enabled). I also want to use I2S for audio. But with D-Cache enabled, I don't get any data from ADC. What can I do to use I2S with D-Cache enabled?
Hi,I am compiling a MiniFASNet-based liveness ONNX model for STM32N6 using ST Edge AI Core v2.2.0.The model behaves correctly in Python, but when deployed on STM32N6 the performance degrades noticeably.What is confusing is the following:Original ONNX model → good results in PythonST-generated optimized model (*_OE_3_3_0.onnx) → also good results in Python (not compared to original model)Same compiled model running on STM32N6 → significantly worse liveness performanceModel & Compilation DetailsCommand used:./stedgeai generate \ --model best_model_quantized_calib.onnx \ --target stm32n6 \ --input-data-type float32 \ --output-data-type float32 \ --inputs-ch-position chlast \ --no-onnx-optimizer \ --verbosity 3Compilation summary (excerpt):Input: f32 (1x128x128x3)Output: f32 (1x2)Model format: ss/sa per tensor119 epochs (2 software: QuantizeLinear, DequantizeLinear)Native float enabledActivations allocated in NPU RAM regions(Full log pasted below)What Has Been VerifiedPreprocessi
Hello ST Community,I am working on my final year project: an autonomous "Multimodal Medical Assistant Robot" based on the NUCLEO-H723ZG (Cortex-M7, 550MHz). I would like to have your expert opinion on the feasibility and technical architecture.Key Features:100% Offline AI (Edge AI):Audio: Keyword Spotting (7 commands) using INMP441 (I2S) and CMSIS-DSP (MFCC).Vision: Fall detection using OV2640 (DCMI) and a light MobileNet model.Software Stack: X-CUBE-AI, TensorFlow Lite Micro, FatFS.Innovation (Dynamic Loading): We plan to load the AI models (.tflite) and voice responses (.wav) dynamically from a USB Flash Drive (USB Host MSC) into RAM at boot time.Specific Questions:Is the NUCLEO-H723ZG powerful enough to run both Audio and Vision inference concurrently while managing motor control (PWM) and USB Host?Regarding the USB Host / RAM loading: Does X-CUBE-AI support "relocatable weights" loaded into RAM from an external storage device via FatFS? Any specif
Hi. I have a newly purchased NUCLEO-U575ZI-Q. I followed the instructions here to install the toolchain on Windows 11:https://www.st.com/en/evaluation-tools/nucleo-u575zi-q.html#documentationhttps://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Step1_Tools_installationAfter one unsuccessful attempt where I chose my own installation folders, I uninstalled everything and took the defaults.What a mess! The default installation folders are spread between AppData, Program Files, and C:\ST. But OK, if that's what it takes.Unfortunately, I got to step 5 and found that the instructions diverge from reality.They never said to click Finish to complete the Import Projects dialog. And there is no way to select the project they mention from it. But if I click Finish, then a tiny icon appears on the upper left. If I click it, then there is a Project Explorer window.The next step is:My IDE has no Debug icon (the the little yellow blob on its lower left). Bu
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.