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, I am working on the STM32N6570-DK board using the Load & Run boot mode.XSPI2 is used to interface the external flash (boot device).XSPI1 is used to interface an external PSRAM.The FSBL is loaded by BootROM and runs from internal SRAM.The FSBL initializes both XSPI2 (for reading the application image) and XSPI1 (for PSRAM).The FSBL copies the application into internal RAM, deinitializes the peripherals, and jumps to the application.Everything works correctly after a power-on sequence (disconnecting and reconnecting board power).However, after any system reset, either by:pressing the reset button on the board, orcalling NVIC_SystemReset() in firmwarethe device does not boot up again and it seems that the FSBL never starts.If the FSBL only initializes XSPI2 (and does not touch XSPI1 at all), the board boots correctly after both power-on and any kind of system reset. I am using STM32Cube FW_N6 V1.2.0 and STM32CubeMx v 6.15.0.
We are working on a bare-metal application using USBX on an STM32N657X0H3Q device.In CubeMX, we configured USB1_OTG_HS under Connectivity and enabled USBX in Middleware. However, when we execute the following function: static void MX_USB1_OTG_HS_PCD_Init(void) { /* USER CODE BEGIN USB1_OTG_HS_Init 0 */ /* USER CODE END USB1_OTG_HS_Init 0 */ /* USER CODE BEGIN USB1_OTG_HS_Init 1 */ /* USER CODE END USB1_OTG_HS_Init 1 */ hpcd_USB_OTG_HS1.Instance = USB1_OTG_HS; hpcd_USB_OTG_HS1.Init.dev_endpoints = 9; hpcd_USB_OTG_HS1.Init.speed = PCD_SPEED_HIGH; hpcd_USB_OTG_HS1.Init.phy_itface = USB_OTG_HS_EMBEDDED_PHY; hpcd_USB_OTG_HS1.Init.Sof_enable = DISABLE; hpcd_USB_OTG_HS1.Init.low_power_enable = DISABLE; hpcd_USB_OTG_HS1.Init.lpm_enable = DISABLE; hpcd_USB_OTG_HS1.Init.use_dedicated_ep1 = DISABLE; hpcd_USB_OTG_HS1.Init.vbus_sensing_enable = DISABLE; hpcd_USB_OTG_HS1.Init.dma_enable = DISABLE; if (HAL_PCD_Init(&hpcd_USB_OTG_HS1) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN
Hello All, I'm working on a board, wherein i am using DRAM 256Mb 200MHz with Mfr. No: part no APS256XXN-OBR-BG (as recommended in STM32N65 DK) but while going through it i found that this part no is not recommended for the new design. Can anyone please share the alternative of this part no or guide in this. Best Regards, Sakshi
Hello Everyonelinux kernel version: 6.6.78After configuring the device tree, I can see the SPI device /dev/spidev6.0 on the STM32MP257F-DK board. However, when I run spidev_test[1], it returns the error message "Invalid argument."I tried using an oscilloscope to measure the signals on the CLK, MOSI, and MISO pins separately, but no signals were detected.Please give me some suggestions to help me fixed it. Thanks in advance.//------------------------------------------------------------------------------------------------------the SPI device tree setting as following:Path:~/STM32MPU-Ecosystem-v6.6/Developer-Package/BSP/sources/ostl-linux/linux-stm32mp-6.6.78-stm32mp-r2-r0/linux-6.6.78/arch/arm64/boot/dts/st/stm32mp257f-dk.dtsaliases { serial0 = &usart2; serial1 = &usart6; serial2 = &usart1; ethernet0 = &eth1; spi6 = &spi6; }; &spi6 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&spi6_pins_a>; pinctrl-1 = <&spi6_sleep_pins_a>
Hi, I'm a circuit engineer in korea.I want to make really small BLDC FOC controller with STM32G491KE, because It has the smallest pin counts compare to other G491 family.For FOC Control, I have to use three TIM channel. For use external ociliator, I have to use TIM1_CH1_CH1N, TIM_CH2_CH2N, TIM8_CH1_CH1NIf I use TIM channel with that combination, Will FOC controller work well? Is there any differences with TIM1 and TIM8?I want to use 491KE Series for smallest FOC Controller. Thank you.
Hello guys. I'm currently trying to use the dsp libraries of the cmsis pack with no success.My device is a WBA55CG nucleo board and the version of my ide is 1.19. I tried to download the cmsis package manually, by selecting embedded software package maneger and then from local/url and successfully installed the packages. (CMSIS 5.9). I enabled core and selected CMSIS from source and dsp. I enabled dsp and core on mx configuration->middleware and hit generate. I tried to inlcuded the arm_math lib on my program to see if the installation was successful and if cube could build my program..... aaaand all hell broke loose.../Middlewares/Third_Party/ARM_CMSIS/Source/SVMFunctions/SVMFunctions.c:29:10: fatal error: arm_svm_linear_init_f32.c: No such file or directory 29 | #include "arm_svm_linear_init_f32.c" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. ../Middlewares/Third_Party/ARM_CMSIS/Source/TransformFunctions/TransformFunctions.c:29:10: fatal error: arm_bitreversal.c: N
So I have a board which I'm correctly using with threadX and TouchGFX.I want to implement a function that calculates the FFT of a signal, but I'm having a hard time finding the CMSIS-DSP libraries.I need to include the classic math library for ARM#include "arm_math.h" #include "arm_const_structs.h"But in cubeMX I'm finding various DSP librarieswhat should I use?
When I used the MMT tool in STM32CubeMX to configure a 256MB NAND FLASH based on FMC, an error appeared. I am using the STM32H743IIT6 chip and have configured NAND FLASH in the FMC. I want to know how to solve this problem.
Hi,I am Working on STM32H745XIH6 MCU which embed in our custom board. I have bootloader code which is working fine on STM32H745I-Discovery board. But when I use bootloader in out custom board problem is unable to jump on application code, but same thing is working fine with STM32H745I-Discovery with same bootloader code and application code.I have debug more and got same interesting things happen which mention in below When I flash the application code from STMcubeProgrammer into my custom board and then give power cycle that time jump from bootloader to application code is working fine. When I flash the application code from bootloader into my custom board, that time I will face the issue in jump from bootloader to application code. Then I have check the Flash memory section of application code and compare in both scenario when flash through bootloader or flash through STM32CudeProgrammer. Application code is match properly. So writing into flash memory through bootloader code is wor
Hello all,Anyone successfully implemented the Standby Mode for STM32WBA52/55? I am struggling going thru the examples and I wouldn't be able to enter the standby mode level. My board still consume about 70mA when I enter the standby mode. From the datasheet, it should be under 1uA with SRAM.Thank you.
I have just received 2 NUCLEO-WL55JC1. Upon connecting either one of them via I see The Red (main power) and green LEDs on. The other thre are flashing alternatively (red, orange, blue). I haven't changed the default jumper settings.The following debug probes were found:[0]: STLink V3 -- 0483:3754:0026003A3234510A33353533 (ST-LINK)12:21:32 : STM32CubeProgrammer API v2.21.0 | Linux-64Bits12:21:46 : UR connection mode is defined with the SWrst reset mode12:21:46 : ST-LINK SN : 0026003A3234510A3335353312:21:46 : ST-LINK FW : V3J16M812:21:46 : Board : NUCLEO-WL55JC12:21:46 : Voltage : 3.24V12:21:46 : Unable to get core ID12:21:46 : No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication12:21:46 : ST-LINK SN : 0026003A3234510A3335353312:21:46 : ST-LINK FW : V3J16M812:21:46 : Board : NUCLEO-WL55JC12:21:46 : Voltage : 3.23V12:21:46 : Error: Unable to get core ID12:21:46 : Error: No STM32 target found! If your product embed
Hi everyoneI am looking for a tutorial on: how to integrate your code in TouchGFX with some used case examples such as ON/OFF control of an LED or sending data over serial port to Putty terminal on PCI am using the following Board:STM32F469I-DISCO
Split from old thread Nucleo-H755ZI-Q How can I resolve ST-Link "No device found on target" error? - which is solved.i am using same mcu i have this error in the begining like target dectection now that target is dectecing problem is resolved but now getting this issue STMicroelectronics ST-LINK GDB server. Version 7.11.0Copyright (c) 2025, STMicroelectronics. All rights reserved.Starting server with the following options:Persistent Mode : DisabledLogging Level : 1Listen Port Number : 61234Status Refresh Delay : 15sVerbose Mode : DisabledSWD Debug : EnabledInitWhile : EnabledWaiting for debugger connection...Debugger connectedWaiting for debugger connection...Debugger connectedWaiting for debugger connection...-------------------------------------------------------------------STM32CubeProgrammer v2.20.0 ------------------------------------------------------------------- Log output file: C:\Users\kavya\AppData\Local\Temp\STM32CubeProgrammer_a01920.logST-Link S
Hi We have a custom board using STM32MP257F and would like to program external NIOR flash using STM Cube programmer over a UART interface.We have the following modified TSV file, where we have modified the first line to use - 0x01 fsbl-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp257f-ev1-cm33tdcid-ostl-serial-ca35tdcid-optee-programmer-uart.stm32- 0x02 fip-ddr FIP none 0x0 fip/fip-stm32mp257f-ev1-cm33tdcid-ostl-serial-ca35tdcid-ddr-optee-programmer-usb.bin- 0x03 fip-boot FIP none 0x0 fip/fip-stm32mp257f-ev1-cm33tdcid-ostl-serial-ca35tdcid-optee-programmer-usb.binDo we also need to modify the second and third lines to use a UART version of the FIP files? We cannot find these files in our distribution, we only have ones with xxx-usb.bin.How can we proceed?
Hi, team I previously worked with a SWB (dual core) microcontroller, and I was able to obtain the stack version using the SHCI_GetWirelessFwInfo function. Now, I am working with a SWBA (single core) but I was unable to find an equivalent function to do it. Do you know if there is an equivalent?, I want to know the stack version on compilation time or runtime, it does not matter. Thanks in advance.
Requesting ST to kindly provide a working example for STM32U545 using stand-alone USB HOST MSC to interface with a USB Pen drive. A Tech-Note explaining the code to be added to the various CUBEMX generated files would help.I have been logging to the USB Pen Drive for years using the F105 and F405 series.For battery operated devices I planned to move to U545 expecting a simple code migration but the USB interface has changed from the familiar and simple FATFS.I tried to refer to the available USBX/FILEX samples of various other devices but could not get them to work as many refer OTG types while U545 has DRD types.I referred to various threads on the community.st.com but they trail off without answers.Thanks.
This article documents step by step the changes to be done in a CUBEMX generated U545 project to access a USB Pen Drive using ST Usb_Host MSC and FatFs Working Code for the NUCLEO-U545RE-Q board is available at https://github.com/NereusF1/stm32u545-classic-coremw-usb-host-fatfsBuilt using embedded software package STM32U5 v1.8 and STM32CUDEIDE v1.19.0This project is tested on the NUCLEO-U545RE-Q board.USB Pen drive must be formatted to FAT32.The classic Middleware versions are ST USB Host Lib V3.5.1. and FatFs VR0.12c (ST modified 2023-08-18). The classic Middleware are copied over from an F439 project built using embedded software package STM32F4 v1.28.31. Create a projectStart a new project in STM32CubeIDE by selecting File → New → STM32 Project. Navigate to the [Board Selector] tab and choose [NUCLEO-U545RE-Q].2. Keep the default board options3. After creating the project, navigate to the [Con
(MCU:STM8AF6223A-TSSOP20 MCU Label: STM8AF6223PDXLibrary: SPL V2.2.0Compiler SDCC:4.5.0 Debugger:stm8-gdb 8.1Custom MakefileMCU uses internal oscillator runnnig 16 MHz)Hi I'm Attila.When I enable the ADC1 Scan Mode and DataBuffer with ADC_Channel >= ADC1_CHANNEL_2 TIM1_CH2N waveform distorted.Oscilloscope CH1(Yellow) -> TIM1_CH1NOscilloscope CH1(Light Blue) -> TIM1_CH2NFor example when ADC_Init() with ADC1_CHANNEL_2when ADC_Init() with ADC1_CHANNEL_1ADC1_CHANNEL_2 is the AIN2 but Before the operation, i program the option bytes for enable the complementary channels.What causes the distortion?Best regards.Bonus.I also try disable TIM1_CH2N with TIM1_OC2Init() function i realized that ADC sampling effect that pin .Some piece of code void main(void) { CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1); ADC_Config(); TIM1_Config(); ITC_SetSoftwarePriority(ITC_IRQ_ADC1, ITC_PRIORITYLEVEL_2); TIM1_Cmd(ENABLE); TIM1_CtrlPWMOutputs(ENABLE); TIM1_SetCompare1(66); TIM1_Se
Hi there and happy new year! I am currently trying to develop a dimmable color light with an stm32wb55 (Nucleo Board). Everything seems to work when connecting the device to a zigbee2mqtt server over zigbee. But actually all color server related callbacks are never invoked and i have no clue why. The other clusters are working just fine and the callbacks are called (on/off, brightness). My endpoint setup code: /** * @brief Configure Zigbee application endpoints * None * @retval None */ static void APP_ZIGBEE_ConfigEndpoints(void) { struct ZbApsmeAddEndpointReqT req; struct ZbApsmeAddEndpointConfT conf; memset(&req, 0, sizeof(req)); /* Endpoint: SW1_ENDPOINT */ req.profileId = ZCL_PROFILE_HOME_AUTOMATION; req.deviceId = ZCL_DEVICE_COLOR_DIMMABLE_LIGHT; req.endpoint = SW1_ENDPOINT; ZbZclAddEndpoint(zigbee_app_info.zb, &req, &conf); assert(conf.status == ZB_STATUS_SUCCESS); /* Basic client/server */ zigbee_app_info.basic_client_1 = ZbZclBasicClientAlloc(zigbe
Heyho,not really a bug, but the register ETH_MACCSRSWCRis missing in the struct ETH_TypeDef, in the CMSIS / STM32H7 header files, at least for H723 .. H735.Also checked the github repos.Any specific reason for that?
I need an RF communication solution which has the properties of minimum 2Mbit/s, 200m line of sight, below 1ms RF synchronization, mesh capability, 50m for tall building floor to floor, and wake on RF
I'm working on a project based on the STM32WB5MMG module that must support the following three building blocks:ZigBee APS Coordinator - Only APS Layer packets, I dont need nor want the ZCL or any compatibility.USBFreeRTOSThe examples for the STM32WB5MM-DK are non-existent and the only useful examples I could find in the STM32Cube_FW_WB_V1.24.0 repository were for the P-NUCLEO-WB55.Nucleo.After weeks of tweaking and much struggle I was able to create a project with USB, FreeRTOS, and ZigBee APS Coordinator that compiles and kinda works. This is how I did it.First, I created a project for the STM32WB5MMG using STM32CubeMX where I added and configured the USB and FreeRTOS. I Also added "RF" since that is the only thing related to ZigBee you can do there. This project which only has USB runs fine and works well.Then, I took the two P-NUCLEO-WB55.Nucleo projects; Zigbee_APS_Coord and Zigbee_OnOff_Server_Coord_FreeRTOS, and I was able to merge them together
Yes I should have taken a backup - but modern software must always have build-in backup solution so you do not corrupt your own files. Ask chatgpt if you need the code. I used 2 days to make this project, luckily I have the main.c so I can copy names from this. I am on Linux Mint version 22.2 with STM32CubeMX version 6.16.1 and Visual Studio Code Version: 1.107.1.The fault was in STM32CubeMX, that did not save correctly. During my work I experienced the software closing without saying a word on the error, especially in the ADC1 setup. But every time I could just start it again, but not this time:-(Attached you find the surviving part of the IOC file.Thank you for listening to my disaster. Best regards
Dear Forum members. Could you please help me with a .PDF version of the suggested PCB footprint for the LDLL16EN (QFN32L 5x5 mm package) not the Ultra librarian or Samac Sys options. The plane original pdf version. Thank you
Dear Forum members. Could you please help me with a .PDF version of the suggested PCB footprint for the L99LDLH32TR (QFN48L 7x7 package) not the Ultra librarian or Samac Sys options. The plane original pdf version. Thank you
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.