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 Community,I am currently working on a custom board based on STM32MP257FAI3, derived from the STM32MP257F-EV1 evaluation board.We initially built our own custom image and successfully enabled several peripherals (SPI, USART, Timers, ADCs, and Interrupts) and tested on evaluation board as well.Now, while adapting the configuration for our custom hardware, I have modified all pin assignments according to the alternate functions listed in the datasheet and reference manual.Most of the pins are configured correctly and appear as expected in the system.However, I’ve noticed that certain pins (for example, PZ7 and PZ8, which were used for LPUART1 on the EV1) and some other pins in list are still shown as “consumer = kernel” in the output of: gpioinfo -c /dev/gpiochip11even though I have:Removed their references from TF-A, U-Boot, and Linux kernel device treesDeleted their entries from the corresponding pinctrl and pinmux configurationsDespite these removals, the
why do I get these:Project setup failed with following error: No service available
Hello.I have problem using STM32 USB Host HID. I`m stuck in the USBH_Process() function in usbh_core.c, or its better to say stuck in USBH_HID_Process() function in usbh_hid.c file. I am trying to connect a USB keyboard to my own designed stm32f407zgt6 board, code is generated through STM32CubeMX v5.2.1 with package software v1.24.2 and I work with IAR IDE v8. I`ve made a project just same as (https://www.youtube.com/watch?v=Co4ChSgVSek), but with different pins pack, every time I connect the keyboard the MCU gets the descriptors, but it never gets data from keyboard. I only used one keyboard model, also searched a lot about the problem. I`ve tried what pavel.a said in (https://community.st.com/s/question/0D50X00009XkZ4KSAV/usb-host), nothing changed, when I printf() the logs on uart, at first I get: after some "HOST_ENUMERATION"s it recognizes keyboard: and at last the process goes on like the: for ever "HOST_CLASS..." from USBH_Process() fuction in usbh_core.
Hi,I am trying to understand some features of STHV200 Dual channel ±100 V, high voltage 3 A linear amplifier and 2 A pulser transmitter.I could not find a detailed datasheet of the product. Only data brief. I want to use it to amplify the received low voltage signal. The data brief mentions an internal amplifier but I could not understand how it works. Am I able to amplify the received signal coming from the T/R switch? Or is the internal OP-AMP configurable for example as a differential amplifier?
Hello, We have designed a custom PCB using the STM32H745IIK6 MCU. When we try to connect with STM32CubeIDE using ST-LINK, we get the following error: Failed to read ROM table via AP 3 Error in initializing ST-LINK device. Reason: Unknown. Please check power and cabling to target. In our design, we did not use the SMPS configuration — instead, the MCU is powered in LDO mode. The VCAP pins are connected according to the LDO configuration, and the MCU supply voltage (VDD, VDDA) is at 3.3 V. Could this issue be related to using the LDO power configuration instead of SMPS? Or are there any specific points we should check. Any guidance on how to properly verify the power configuration and debug connection would be greatly appreciated. Best regards, Kemal
This is a custom-made PCB antenna board utilising the ST25R3911B chip, but I am unsure how to proceed with impedance matching debugging and parameter configuration. Could you offer some guidance? Below are the antenna dimensions, the calculated impedance matching values, and the original impedance matching diagram. Communication is currently possible at very close range. To increase communication distance and stability, what modifications should be made? *This post has been translated from Chinese to comply with the ST Community guidelines.
Currently, we are developing a card reader featuring a circular NFC antenna. However, due to the lack of equipment for measuring antenna parameters, we are reliant solely on calculated theoretical values. The circuit board and antenna are depicted in Figure 1, impedance matching is shown in Figure 2, and simulation diagrams are presented in Figures 3 and 4. Is there any means to optimise the antenna design or draw the antenna? Alternatively, are any circular antennas readily available? The circular antenna requires a minimum diameter of 42mm and a maximum diameter of 50mm. *This post has been translated from Chinese to comply with the ST Community guidelines.
I drew a board of stm32h503rbt6, including a screen and a NOR flash. The flash model is mxl6433f. Currently, the problem I'm facing is that when I try to program the board using stprogram, I encounter an error that the programming cannot be completed. The error message shows that the memory deletion failed. I have been looking into it for a week, but still haven't been able to solve it. I hope a senior can help me with it.I'm really in a bad mood right now.
Heyho,strange things happening that I'd like to understand for a STM32L073 (Nucleo for now).Setup on a L073 @ 32MHz:- ADC is clocked by PCLK/4- ADC prescaler = 2 -> divide by 4 -> 2 MHz- 12 bit right aligned- ref V = VDDA = 3.3V- hardware oversampling + shift is used (great feature!)- 7 ADC channels sequenced- DMA, with buffer for 8 samples per channel -> u16AdcDmaBuf[56] In non-circular mode (CIRC neither set in DMA- nor in AD-registers), after each DMA's transfer complete interrupt, DMA and ADC are restarted, everything is as it should be, and as it is set in the sequencing registers.Here's what the DMA buffer looks like, and all this makes sense:buffer[0] = 2031 is the DAC output set to 2047,buffer[1] & buffer[2] = 4095 are connected to VDDA -> 4095 ok,buffer[5] is internal VREF = 1.2V -> perfect,buffer[6] is internal temperature sensor -> ~24°C -> perfect1) ADC & DMA: not circular DmaBuf [00] 2031 4095 4095 1926 3083 1524 0604 [07] 2031 4095 4095
I am using STM32CubeIDE as my development environment,and the board is STM32F429I-Discovery (MCU: STM32F429ZITx). I created an LCD display program using the BSP drivers (such as stm32f429i_discovery_lcd.c).The project builds successfully and flashes without any errors. However, after powering on the board, the LCD remains completely white and nothing is displayed. I downloaded the official firmware package from ST’s website:https://www.st.com/en/embedded-software/stm32cubef4.htmland imported the necessary BSP files from stm32cubef4-v1-28-0.zip into my CubeIDE project. Current situation: The folders Drivers/BSP/STM32F429I-Discovery and Utilities/Fonts are properly included in the project The build and flashing process complete successfully The LCD backlight turns on, but the screen stays white all the time I used the example project LTDC_Display_2Layers as a reference I would like to know what kind of initialization or configuration might be missing,or what are the common ca
From the listed applications, it is noted that RF3L05150CB4 is suitable for HF and VHF communication ranges. However, the available application note mentions frequencies at 520 MHz and 860 MHz. Is there any application note available specifically for HF and VHF ranges?
Hello,How can I attach to running microcontroller in the STM32CubeIDE?The IAR has the Attach to running target function. The STM32CubeIDE have not this function.
Hello fellow community members.I recently needed to find a method for the microcontroller on a board to detect which variant of a board it is installed on. In this particular case, the PCB comes in (for now) two different variants: One with all components mounted, and one with the bare minimum mounted. This is for cost saving on the less advanced devices.To simplify firmware uploading and updates, the firmware for the two variants is going to be the same. The firmware is to figure out by itself which board it is installed on, in order to handle the differences properly.I was running out of pins, and couldn't waste ADC inputs on this. Also, pulling one digital input pin high or low only gave me two possibilities, which might not be enough in the future. But then I thought of something else, which I wish to share with the community.With one resistor on one general-purpose input pin, I can detect four different configurations. This requires the use of the built-in weak pull-up and pull-do
HAL_ADC_Start on STM32U5G9J results in HAL error.Initializing the ADC/* ADC4 init function */ void MX_ADC4_Init(void) { /* USER CODE BEGIN ADC4_Init 0 */ /* USER CODE END ADC4_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; /* USER CODE BEGIN ADC4_Init 1 */ /* USER CODE END ADC4_Init 1 */ /** Common config */ hadc4.Instance = ADC4; hadc4.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV256; hadc4.Init.Resolution = ADC_RESOLUTION_12B; hadc4.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc4.Init.ScanConvMode = ADC4_SCAN_DISABLE; hadc4.Init.EOCSelection = ADC_EOC_SINGLE_CONV; hadc4.Init.LowPowerAutoPowerOff = ADC_LOW_POWER_NONE; hadc4.Init.LowPowerAutoWait = DISABLE; hadc4.Init.ContinuousConvMode = ENABLE; hadc4.Init.NbrOfConversion = 2; hadc4.Init.ExternalTrigConv = ADC_SOFTWARE_START; hadc4.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; hadc4.Init.DMAContinuousRequests = DISABLE; hadc4.Init.TriggerFrequencyMode = ADC_TRIGGER_FREQ_LOW; hadc4.Init.Overrun = ADC_O
Im getting hardfault at 0x817c364 address and can not debug where exactly hardfaults and why because no source available:I moved my heap to external SDRAM and it started hardfault at this function, maybe someone knows why? and how can I debug it if function not exist?Im using STM32H743ZIT6 and IS42S16400J-6TLI sdram.
Hello, dear friends. I'm new to STM and looking for your help. I've completed the hardware part for 0-10V, 4-20mA, MODBUS analog signal outputs with STM32F030F4P6. Some artificial intelligence applications reported faulty and missing components, while others reported no components. I'm looking forward to your comments. Best regards.
I am working with STM32H747I -DISCO board I am using CubeMx version 6.15, firmware: H7_V1.12.2, Freertos CMSIS2 - V10.3.1configuration 1 : Generating from touchgfx and configuring Eth other all parameters commented in code (Touchgfx parameters).Here ETH is working fine configuration 2 : only configuring ETH with same configurating as above but generating from cubemx Here Eth Communication worked for abt 10 to 20 min and then MCU stucked.I compared both projects : it's all same (MPU configuration Linker script DMA Descriptor and RAM Heap pointer) ...middleware package, CMSIS files, Freertos config files, Lwip folder(lwip.c .h and ethernetif.c and lwipopt.h),LAN files all are same but still I am facing this issue. I have attached wireshark snip when MCU got stucked and IOC files 1. Touchgfx generated 2. CubeMx Generated @STea @STackPointer64
Dear ST members,I'm designing a new board with STM32WBA65RGV6 in LDO power supply scheme. The datasheet and reference manuals are not clear how to connect certain pins in this configuration. Please, clarify the queries below:Is VDDSMPS to be connected to GND or to VDD? On the reference manual page 299 it says to connect to ground, but on Figure 31 it is connected to VDD with a capacitor. If a capacitor is to be added, please specify the value.Is VDD11 to be connected to capacitor like in Figure 31? If so, what is the capacitor value?Regards
Hello, I am using the x-nucleo-67W61M1 and the supported STM32N6 nucleo and I run the HTTPS Server application. The sample works well. I want to transfer loads of data and I do it through cJSON. I understand that i need to set a different get command and add an if statement in the HTTP_process_response that will handle the request and it will respond accordingly. I have set also a script in Matlab that does continuous gets and after a while i see that the STM is stuck and is no longer responding (I have the LEDs toggling in a different RTOS task) the log when that happens is:[ERROR] [114031] [HTTP_00000001] (w61_at_net.c:441) W61_AT_SetExecute: W61_STATUS_TIMEOUT. It can lead to unexpected behavior. [ERROR] [114031] [HTTP_00000001] (httpserver.c:524) [1] *****> SEND ERROR <***** [ERROR] [116031] [HTTP_00000001] (w61_at_net.c:351) W61_AT_SetExecute: W61_STATUS_TIMEOUT. It can lead to unexpected behavior. [ERROR] [118033] [defaultTask] (w61_at_net.c:1130) W61_Net_GetSocketInfo
I am currently seeking to implement motor rotation control to any desired angle using the P-NUCLEO-IHM001 motor kit. Is this feasible? If so, how should I proceed? Are there any relevant tutorials or documentation available? Thank you. *This post has been translated from Chinese to comply with the ST Community guidelines.
Hello! I am working on a custom OTA bootloader system on a STM32G473RBT6 MCU in a custom board I have been using maybe for 3 years with no problem. My board is connected to a Raspberry Pi over RS485 network. My idea is this:There are 3 virtual sections: 24 KB OTA Bootloader starting from 0x0800 0000. 52 KB Storage space starting from 0x0800 6000 and 52 KB Application space starting from 0x0801 3000. In total 128 KB as the STM32G473RB MCU has.The custom bootloader reads incoming data, erases storage space and stores this new data in storage space, check CRC32, etc. Then the bootloader erases previous application in application space, and copies storage space to application space and starts from new application address.The problem is that the bootloader only succeeds if the following condition met (basically full flash erase):I have a fully erased chip and only bootloader loaded. If I want to load a simple LED blink application which FLASH.lb file configured as following:MEMORY{RAM (xrw)
Hello, I’m trying to perform ADC measurements with the STM32H563ZIT. I’ve shared my configuration settings from the .ioc file below. The ADC reading fluctuates by about ±40. When I short the ADC pin to GND, the reading varies between 0 and 30 instead of staying stable. I can’t get a constant value. What could be causing this issue?static void MX_ADC1_Init(void) { /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; /* USER CODE BEGIN ADC1_Init 1 */ /* USER CODE END ADC1_Init 1 */ /** Common config */ hadc1.Instance = ADC1; hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV10; hadc1.Init.Resolution = ADC_RESOLUTION_12B; hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc1.Init.ScanConvMode = ADC_SCAN_DISABLE; hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV; hadc1.Init.LowPowerAutoWait = ENABLE; hadc1.Init.ContinuousConvMode = DISABLE; hadc1.Init.NbrOfConversion = 1; hadc1.Init.DiscontinuousConvMode = DISABLE; hadc1.Init.
I've gotten myself into an odd bug or something. I had been using the Motor Profiler successfully from the Workbench for a month or so and I had to stop for a while and work on other items. I may have played around the graphing/plotting stuff in Motor Profiler the last thing I did. Not totally sure. When I went through the normal connection process to run Motor Profiler today I got a weird pop up that only stays on for 2 seconds and then disappears. I'm not sure if I've ever seen this screen before. It could be a GUI. It could be settings for a plot, but it is not the Motor Profiler GUI that I expected. I captured the 2-second pop up from a video in the attached image. Does anyone know if this is a bug or corrupted files or settings. How do I reset Workbench to get it to just open the profiler GUI again? Thanks for any assistance you can provide.
Hello,as a first time user of STm32CubeIDE, I wanted to toggle a few IOs with a serial output.I used the JTAG port to connect to the STM32 and program it BUT after the first programing, I can't connect to it anymore.....Here is the pinout that I used:Afterwards, I discovered that I should have activated the JTAG debug.... but it is too late.....What can I do to access/program the STM32 again?This might be a simple question but I would appreciate the help.Thank you
In the default configuration, the SMPS on the development board is disabled. As such the VDDA18PMU appears to be floating. According to the spec sheet, it says that the pin MUST be tied to Vss when the SMPS in not used. Is there an internal pull down?
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.