Developer support experience survey - We value your feedback
Join conversations with your peers and ST experts. Explore the full potential of STM32 microprocessors for your embedded design.
Most recent activity
Hello,I've implemented the solution proposed in https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx?tab=readme-ov-file by @Tilen MAJERLE for efficiently using the DMA in circular mode with a buffer for the UART in a STM32L4 board.I'm trying to port my driver to the M4 processor of a STM32MP157-DK2. I've successully configured the UART3 in the M4 project with DMA in normal mode and I'm receiving one byte at a time and adding them with the RxComplete callback to my buffer.However, when I changed the DMA mode to circular, my surprise was that there is no HAL_UARTEx_ReceiveToIdle_DMA function in the HAL driver and no HAL_UARTEx_RxEventCallback callback. So I can use the RxComplete and RxHalfComplete callbacks but no idle line callback, which is a big problem when using a long circular buffer size.Can anyone explain what is the problem, why there is no Idle line detection here or how can this feature be implemented for this board? Thanks in advance.
Running the code "MP13_BSP_BasicTemplates" in the DDR of the STM32MP135F-DK succeeds,But running the code "UART_Receive_Transmit_Console_A7" in the DDR of the STM32MP135F-DK fails(“USE_DDR” Macros added,Link text has been modified),Errors are as follows:
Hi,I am using a STM32MP151AAA3 and i need to control an RGB LED via PWM control (something like the WS2812B). I was looking into the PWM driver options for Linux side control and can't find options for PWM control for specific buffer sizes or anything like that (only for fixed PWM outputs).On the bare metal MCU's i can control this via PWM and DMA and send a specified data buffer. does anyone know if there is a similar option for a Linux controller PWM driver?The other option is to control these LED's via the secondary M4 core but I rather not if possible.Kind regards,Richard
hello,my custom board use the same ddr as STM32MP135F-DK board. but when I debug the example DDR_Init_A7.erro occus when verify data in address 0xc0000000 + 0x80。as show in picture.pls help me
Hi!! I have STM31mp157C and I want to use the ADC. I am exploring the available GPIOs and have observed that some are present in both ADC1 and ADC2.For example, according to the datasheet, PA4 can be used with ADC1/ADC2.Is there any difference between measuring from ADC1 or ADC2?Is there any use for a GPIO to be in both ADC1 and ADC2 (such as performance improvement, special modes of operation or similar)? Thanks!A.
Dear community,I need your help.I'm using a ES8388 Codec on a custom board with STM32MP157 MPU. ES8388 codec connected on i2c1 and sai2. In the codec driver, ES8388 is in salve mode and MPU is in master mode. mclk cannot be obtained.device tree:kernel source:boot log:
Hi there, I'm using a custom STM32MP153 board with OpenSTLinux distribution (5.15.24) on it, and I have a problem with the Wake UP. I successfully set PWR gpio to wake up from low power modes. In fact, I can successfully wake from CSleep and CStop mode. But I can't execute a correct wake up from CStandy mode. (setting from M4 firmware is OK I think, I took the example code from FW1.6.0 repo) Is there any common pitfall that I must be awared of? NOTE: I'm using STPMIC1 . Thanks
Hello everyone, I was attempting to migrate my existing raspberry pi application for GPIO control to the STM32MP157 but I encountered a roadblock. I was using gpiod to drive the pins from the userspace app but the following guide:https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_control_a_GPIO_in_userspacedoesn't mention gpiod C API at all in section 3. Is it possible to use gpiod instead of the character device? How do I add the gpiod library to the toolchain for cross compilation? Thanks,
I have a stm32mp135F-DK and I am attempting to do some GPIO control. My question is where can I find the mapping of libgpiod chip/line mapping to physical pin. I am particularly interested in the mapping to the CN8 pins as I will be wanting to read/write signals coming from external sources. I have looked at the toggle_led.sh script and see that LD7 (green LED, PA14) is mapped to gpiochip0 line 14. One note is when I attempt to run this I get a Device/Resource is busy and when I run gpioinfogpiochip0 - 16 lines:line 0: unnamed unused input active-highline 1: unnamed kernel input active-high [used]line 2: unnamed kernel input active-high [used]line 3: unnamed kernel input active-high [used]line 4: unnam
I'm doing a project, that I need a rotary encoder working on cortex-a7 core of stm32mp157.I met problem, my rotary encoder can not work. This is what I have done:1. In kernel menuconfig I have config: use rotary encoder as a build-in module;2. Write dts, and I am sure these gpio not been use anywhere: rotary@3 { compatible = "rotary-encoder"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>, <&gpiog 3 GPIO_ACTIVE_LOW>; linux,axis = <6>; rotary-encoder,encoding = "gray"; rotary-encoder,relative-axis; status = "okay"; }; In dmesg I can see my roary is startedIn /proc/device-tree, I can see the device nodeIn evtest nothing output, when I turn the knob of encoder. what is the problem, I need your help, thank you!
Hi all!Environment: I use MX to configure the DCMI Peripheral including DMA!MX generates MX_DMA_Init() and MX_DCMI_Init()After DCMI initialization in main with the above mentioned functions I use the functions HAL_DMA_RegisterCallback(&hdma_dcmi, HAL_DMA_XFER_CPLT_CB_ID, &DcmiDmaFullCplt) and HAL_DMA_RegisterCallback(&hdma_dcmi, HAL_DMA_XFER_HALFCPLT_CB_ID, &DcmiDmaHalfCplt) to register Halffull and Full DMA Callbacks.Both callbacks are registered in the hdma_dcmi structure. Everthing ok so far.Problem:But when I execute HAL_DCMI_Start_DMA(&hdcmi, DCMI_MODE_CONTINUOUS, (uint32_t) ae_dma_buffer, AE_DMA_BUFFER_SIZE); to start the peripheral, the function overwrites the dma full function pointer. Therefore the HAL callback is used and not my dma full callback function (half full works fine). Otherwise if I try to register the callbacks after calling HAL_DCMI_Start_DMA(), the registration is refused because the hdma-->state is different to HAL_DMA_STATE_READY.So how
We are pleased to announce you that the official release of STM32CubeMX V6.9.0 is available for download here What is new in STM32CubeMX V6.9.0? Added the support for new microcontrollers in the STM32U5 series Added the support for new microcontrollers in the STM32WBA series Added the support for two new boards related to the STM32U5 series: STM32U5G9J-DK1 and STM32U5G9J-DK2 Added the support for one new board related to the STM32L4+ series: STEVAL-SMARTAG2 Added the support for the memory management tool for the STM32H5 and STM32U5 series Added the support for new boot paths for the STM32H5 series Added makefile generation in dual context for the STM32H7, STM32L5, and STM32U5 series Added hierarchical project support in the Example Selector for the STM32U5 and STM32WL series Added user authentication functionality Added the support for processing before and after code generation Upgraded the JDK11 to Adoptium™ Termurin™ 17.0.6 Main fixed issues 121529 [Example selector] Managem
I am using the SDMMC1 interface without an SD card, utilizing only the data lines. Therefore, the CMD line is not needed, and I have deactivated the CMD pin. However, the HAL_SDMMC library sends CMD data and expects a response from the SD card, causing errors.Even though I have commented out all the sections related to response error handling, it still does not work. Is there a way to use only the data lines and deactivate the CMD line?Thank you for your assistance.
Hello,I am developing on a custom STM32MP151AAC board, the software is openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23. The board successfully booted, and most of the part works fine. The problem is I cannot make USBOTG run. My board use FUSB302 instead STUSB1600.Now, the problem is I cannot make a usable device tree for usbotg_hs and fusb302, the kernel always complains OF: graph: no port node found in /soc/i2c@5c002000/typec-portc@22 I had try my best to find where the problem is but without success. The device tree file and dmesg are attached in the thread. Could anyone give me some suggestions?Thanks.
Hello all,I'm looking for the STMCubeProgrammer for STM32MP257F-EV1.The actually on web site available version 2.16 seems to not support my board.At least it does recognize my board but tells it's not supported13:41:26 : Error: Database cannot be found. DatabasePath = C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/../Data_Base/STM32_Prog_DB_0x505.xml13:41:26 : Error: CUBEPROGRAMMER_ERROR_NOT_SUPPORTEDSomebody can help me?Thanks in advance.Cheers Alex
My question is:Can I use PE12 AND PE13 pins as TAMPER_IN type or not ?
HelloI wrote the following code to activate the display.The code below is written in kernel/stm32mp157a*.dts and u-boot/stm32mp157a*.dts.panel_rgb: panel-rgb { compatible = "panel-dpi"; label = "lcd"; power-supply = <&vdd_panel>; status = "okay"; port{ panel_in_rgb: endpoint@0 { remote-endpoint = <&ltdc_out_rgb>; }; }; panel-timing { clock-frequency = <63700000>; hactive = <1280>; vactive = <720>; hfront-porch = <20>; hback-porch = <20>; hsync-len = <20>; vback-porch = <24>; vfront-porch = <24>; vsync-len = <24>; }; }; &ltdc{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&ltdc_pins_mx>; pinctrl-1 = <&ltdc_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN ltdc */ port { ltdc_out_rgb: endpoint@0 { reg = <0>; remote-endpoint = <&panel_in_rgb>; }; }; /* USER CODE
Hello all,The startup of the M4 core is easy enough, echoing "start" to the state enables the core.Shutdown is also simple, echoing "stop" to halt the coprocessor. However on shutdown, peripherals such as the PWM sometimes end in a high state. For my application this is unacceptable. Before shutdown I would like to disable these peripherals and drive them low. This page indicated the IPCC mailbox is used to inform the processor, without giving any implementation details. After looking for the IPCC documentation on this, I have not found anything that describes a shutdown channel, or message. Can someone point me towards documentation on this? Going further, are there any examples of a clean shutdown of the M4 core anywhere?TIA.
Hello, I am in the process of planning and testing the STM32mp13 Line.We have equipped our project board with the STM32mp13 CPU, but we encountered an issue when trying to connect it via St-link; it did not establish a connection.The St-Link version we are using is V2. Could you please provide a response? SL1
I downloaded the STM32MP151AAC3 example model (.zip file) that routes traces to the DDR3L memorySTM32MP151A - MPU with Arm Cortex-A7 650 MHz, Arm Cortex-M4 real-time coprocessor, TFT display - STMicroelectronics Then I measured DDR_Q1 to DDR_7, DQM0, DQS0_P and DQS0_N and filled the Excel table that is included inside the downloaded .zip file.Here is the result:I have been using Altium CircuitMaker (very similar to Altium Designer).I measured by first pressing CTRL+H and then mark one part of the track and then I press this button.But when I look at the Excel spred sheet that ST have made, they show me these numbers.My question is: What are ST doing to getting the length of DQ0, DQ1, DQ5 and DQ6 ? It seems that they are the only ones that differs. Others seems to be similar. If they are changed in the model, but not in the Excel spred sheet, which values should I follow? The values made by ST, or the hard ware example model made by ST? The reason why I'm asking this ques
Hi!I noticed this.The FC-135 32.768 kHz crystall with CL = 12.5 pF, ESR max = 70 kOhm and C0 = 1.0 pF is suitable for MP1 products.The gmcrit is 2.1631 uA/V.When I do the math, i found out that gain margin is below 5.C0 = 1.0*10^-12;CL = 12.5*10^-12;ESR = 70*10^3;F = 32.768*10^3;Cs = 7*10^-12; % Assume that stray capacitance is 7 pFgm = 8.5*10^-6;% Gain margins criticalgm_crit = 4*ESR*(2*pi*F)^2*(C0 + CL)^2gain_margin = gm/gm_crit% CapacitorsC = (2*CL - 2*Cs)*10^12 Output:gm_crit = 2.1631e-06gain_margin = 3.9295C = 11.0000 Because the gm value of 8.5 can be found here Why does ST recommend FC-135 32.768 kHz when the gm_crit_max is below the gm_crit value?
Hi! I have tried to compile OP-TEE version 3.19.0-stm32mp-r1.1 for the STM32MP157F-DK2 board. With the official source on STMicroelectronics OP-TEE Github repo ,but I get the following error:$ make CROSS_COMPILE=arm-none-eabi- PLATFORM=stm32mp1-157F_DK2 all GEN out/arm-plat-stm32mp1/core/include/generated/arm32_sysreg.h [...] CC out/arm-plat-stm32mp1/core/mm/core_mmu.o core/mm/core_mmu.c:1514:6: error: conflicting types for 'core_mmu_get_mem_by_type' due to enum/integer mismatch; have 'void(unsigned int, vaddr_t *, vaddr_t *)' {aka 'void(unsigned int, long unsigned int *, long unsigned int *)'} [-Werror=enum-int-mismatch] 1514 | void core_mmu_get_mem_by_type(unsigned int type, vaddr_t *s, vaddr_t *e) | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/include/mm/tee_pager.h:13, from core/include/mm/fobj.h:11, from core/include/mm/sp_mem.h:10, from core/arch/arm/include/kernel/secure_partition.h:14, from core/include/kernel/user_mode_ctx.h:11, from core/mm
Hi there, I'm trying to configure a CubeMX project, starting from scratch, for a custom board based on a STM32MP153CAC3. And I'm having an issue with the MPU clock setting. In particular, I can't select any MPU Clock Mux option and see the PLL1 tree as not editable: Is it normal? Do I have to change something to unlock the configuration? It seems very strange to me that I can't change the MPU clock! NOTE: used CubeMX v6.9 and v6.11, standalone version, same result. Please help me :) Thanks
I am using the FMC peripheral of the STM32MP157 to access the FPGA, the FMC is configured as a Synchronous read synchronous write PSRAM. For the simplicity of the FPGA logic design I would like to have the burst reads and burst writes with CRAM page size (CPSIZE) fixed at 1024 bits.This is the device tree configuration: &fmc { pinctrl-names = "default", "sleep"; pinctrl-0 = <&fmc_pins_mx>; pinctrl-1 = <&fmc_sleep_pins_mx>; status = "okay"; psram@0,0 { compatible = "mtd-ram"; reg = <0 0x00000000 0x100000>; bank-width = <2>; st,fmc2-ebi-cs-transaction-type = <8>; st,fmc2-ebi-cs-cclk-enable = <1>; st,fmc2-ebi-cs-mux-enable; st,fmc2-ebi-cs-buswidth = <16>; st,fmc2-ebi-cs-clk-period-ns = <60>; st,fmc2-ebi-cs-cpsize = <128>; st,fmc2-ebi-cs-data-latency-ns = <0>; st,fmc2-ebi-cs-write-bus-turnaround-ns = <0>; st,fmc2-ebi-cs-max-low-pulse-ns = <0>; }; psram@1,0 { compatible
Hi there, I'm developing a Linux Embedded system on an STM32MP153-based custom board. I have a problem regarding shutdown vs low power modes. I have a gpio (active low) that acts as a "final switch off" for the whole system (a.k.a. when that gpio goes down, the board is no longer powered). I need this gpio to act like that only when the user asks for a shutdown. When entering any low-power mode (sleep/stop/standby), that gpio is not toggled. Of course, I could lower the signal of the gpio in the user space, but this would cause a dirty power off of the whole system, and that's not good (I think?). Is there a clean/official way to achieve that result? Thanks for your help!
WATCH ON-DEMAND | STM32 Summit 2026
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.