Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hi,my system working fine from EMMC(written through cube programmer). I also have on my board an SD-Card slot and boot configuration pins. Is it possible to upgrade the system through SD-Card to EMMC via dd if=... from rootfs?How to prepare EMMC....raw file, is it possible?I try to write sd_card.....raw file using dd application to EMMC, but the system can't start. After powering on, nothing is shown on uart debug log (boot pins changes, of course).Thanks in advancedBR Michal
I've just made the switch for V4.0.0 (A-TF 2.6, Linux 5.15 but with Barebox instead of U-Boot) using Buildroot as before.I had trouble to bring the system up because of what has been changed in regard to SCMI.The DT node's compatible name was changed to force OP-TEE, which is a no go in my case for now.I'll just leave the solution here in case anyone faces the same issue.Simply override the scmi node with the old values:&scmi { // Revert OP-TEE to SP_MIN // Previously compatible = "linaro,scmi-optee"; compatible = "arm,scmi-smc"; arm,smc-id = <0x82002000>; };This will allow you to boot without any changes compared to V3.
Does it have a linux driver and is it supported? How can I use it?
Hello,actually, our processor STM32MP153 (dual core) is completely full with the "normal" memory regions regarding the MCUs (M4) code and data. So now, we decided to add the RETRAM_data form ORIGIN = 0x00001000, LENGTH = 0x0000F000 /*60k*/The linker works as expected but if I start a DMA transfer with variables placed inside this area, the DMA stucks directly with a transfer error. The same code but placed in the RAM1_dataORIGIN = 0x10030000, LENGTH = 0x00010000 /* 64K*/works fine.I know this problem only if the area is not accessible by the DMA as on the H7 but if I have a look at the memory layout and master/slave bus matrix, both DMA should be able to send data from the RetRAM.Any ideas what could lead to this problem? I checked also to place the segment at 0x38000000 but this leads to a linux boot stuck.My actual workaround is to place variables not used by the DMA into the RetRAM section .bss1 with the __attribute__((section (".bss1")))command. This works but, this is my next smal
In stm32mp157c-ed1.dts, the MPU pin setting is written in the stm32mp15-pinctrl.dtsi file, but in CubeMX, a node called @pinctrl is created in the generated .dts file and written in it.Why?Can I delete this part and create a ***.pinctrl.dtsi file?
Hello , Can anyone please point me to the example of SPI communication between stm32(F4/L0/L4) with A7 of STM32MP1?A7 could be a driver or any user application but both should be able to send and receive the data over spi.on A7 I suppose it will be SPI5.please assist.Thanks in advance!Br,,P
Our hardware has an STM32MP151DAx.In order to make use of the Cube Programmer and the boot-via-USB method I need the equivalent of the tf-a-stm32mp157d-ev1-usb.stm32 file but for our hardware.I have worked through the IOC stuff, have DTS files and got the hang of building TF-A (and U-Boot and Linux) according to instructions but how do I build this -USB variant as used in the .TSV files ?Jon
Hello all ~I have STM32MP157A-EV1 and STM32MP157C-DK2. I want to change system time and keep it. But It is not working well. Below is the test log on EV1.root@stm32mp1:~# date -s "20031025 18:00:00" Sat Oct 25 18:00:00 UTC 2003 root@stm32mp1:~# date Sat Oct 25 18:00:03 UTC 2003 root@stm32mp1:~# root@stm32mp1:~# hwclock --systohc --utc root@stm32mp1:~# hwclock 2003-10-25 18:00:18.632338+00:00 reboot .... root@stm32mp1:~# date Mon Jun 27 03:19:28 UTC 2022Am I miss something?:sad_but_relieved_face: thanks.
Hi,me and my team are working on a project on STM32MP1-DK2. While everything is working fine on the previous ecosystrem release (v3.1.0),after updating to the latest release v4.0.0, our demo stop to work, even after recompiling.This is caused by the following code:wl_display * display = wl_display_connect(NULL); if (display == NULL) { std::cout << "can't connect to wayland display" << std::endl; return false; }wl_display_connect keeps returning null and thus I cannot get the current Wayland display.What's more interesting is that even the built-in "weston-info" tool has the same issue and in fact it doesnt work.Can anyone help?Thank you
We are having issues getting USB to work as both ethernet and gadget serial.In kernel configuration, We have the CONFIG_USB_ETH configured as inbuilt and CONFIG_USB_G_SERIAL as inbuilt as shown below. ## USB Gadget precomposed configurations#CONFIG_USB_ETH=yCONFIG_USB_ETH_RNDIS=yCONFIG_USB_G_SERIAL=y# end of USB Gadget precomposed configurationsInitially we do not see the dev/ttyGS0 appearing, however when we do ifconfig -a we see usb0 appear. Now we run the stm32_usbotg_eth_config.sh script which assigned it an IP address and we are able to ssh into the target device. The script also bring up /dev/ttyGS0. The windows PC shows the VCOM port enumerated, but when the PC application tries to open the COM port it throws up "A device attached to the system is not functioning. Operating system error code 31".Also when we disconnect the USB cable and connect it back the windows cannot recognize it and the console in target logs the following statement"[ 6858.235935] dwc2 49000000.us
We created the project for the M4 with CubeMX. We use FreeRTOS with CMSIS_V2 and OpenAMP as Middleware.We assigned TIM1, TIM2 and TIM3 to the M4 and use TIM1 as SYS Timebase Source.The program runs fine if started with fw_cortex_m4.sh or with the SW4STM32 menu "Run As".But if we try to debug with "Debug As", osKernelStart returns osErrorISR in both Engineering and Production mode. But osKernelStart is in the main function. Also if we create a Mutex it returns NULL. Both functions "fail" on IS_IRQ.This is a very similar question. From there i used the code to read the IPSR, it is already 41 at the beginning of the main function.If i don't initialize TIM1 so that no interrupts from TIM1 can occur IPSR is 14 at the start of main.If i apply the "patch" from this question IPSR is 0 but the creation of RPMsg channels with VIRT_UART_Init fails with:[ 3044.562749] virtio_rpmsg_bus virtio0: creating channel rpmsg-tty-channel addr 0x0 [ 3044.568797] virtio_rpmsg_bus virtio0: channel rpmsg-tty-ch
I have the M4 core using a UART core to send and receive data using DMA. This works just fine but over time after 30-60min the core crashes/locks up and reinitializing the UART channel does not help at all it actually crashes the sytem. Under normal operation the reinitialization sequence works properly. The only thing I can get debug-wise is the gState which shows up as 0x21, and the state never changes after the lock-up. Reloading the m4 firmware from a7 side does not help and the UART core is broken until I do a system reboot.Under normal operation, I do get the UART error callback triggered and the error code is 0x10, but the tx and rx continue to work without any action required.Is there any sequence for resetting the UART physical core to recover without a reboot? Are there any known reasons why the UART core would lock up after extended use?
I am trying to configure a DMA stream to capture the RX channel of a UART core on the m4, however, I get very undesirable behaviour.I am trying to set up a circular rx buffer that is of size 10 since the data coming back is of multiples of 5. Unfortunately, I don't get the trigger at half full for many seconds, and when I finally deinit the uart and DMA and abort any tx or rx the half transfer complete callback finally comes.If I change the dma receive size to 8 I get the trigger at half full (4), so is there a limitation or alignment problem?static void MX_USART3_UART_Init(void) { /* USER CODE BEGIN USART3_Init 0 */ /* USER CODE END USART3_Init 0 */ /* USER CODE BEGIN USART3_Init 1 */ /* USER CODE END USART3_Init 1 */ huart3.Instance = USART3; huart3.Init.BaudRate = 2500000; huart3.Init.WordLength = UART_WORDLENGTH_9B; huart3.Init.StopBits = UART_STOPBITS_1; huart3.Init.Parity = UART_PARITY_NONE; huart3.Init.Mode = UART_MODE_TX_RX; huart3.Init.Hw
Hi,We are using stm32mp157c MCU/board and it has DSI output built-in. Now we want to add display port support via DSI to eDP bridge SN65DSI86. It seems that stm32 does not support Displayport output or it has never been done. At least the driver dw_mipi_dsi-stm.c should be updated not to require a panel. Any idea how this can be achieved please?
Hi, we using the STM32MP157 custom board in this we are developing the bare metal drivers for the all the peripherals. Now we are able to send and receive the character on UART4 perfectly. But when we are configuring for the interrupt mode it's only forwarding the Rx event till GICD (pending state). But i had seen the Linux drivers for the UART4 in that wakeup event is activated i think this may be the issue. To activate wakeup event in the UART4 we need to enable the EVENT30. To enable the event30 what is the procedure. please let us know.
Hi,I am using STM32MP153a SOC.Linux kernel version is 5.4.56 (openstlinux-5.4-dunfell-mp1-20-11-12).I would like to generate square signal of 50-200 uS on a certain GPIO every 40 ms using Linux kernel.Also ,at this point I need to read certain registers.What are my options? If there is already an example/application note on the subject,please let me know.I was looking into these options:1)I have already a working timer on my system,which is arm arch timer.It's already generating interrupts ( I can see that number of interrupts is increasing in /proc/interrupts).The question is how do I configure it to generate interrupt every 40 ms and I how do I generate callback to have my registers reading.2)TIM6/TIM12 -STM32 timer.As far as I could see,current examples - pwm,counter,trigger ,does not fit my needs , since they don't have any form of periodic interrupt.PWM example is the closest to what I need - it possibly could generate a signal that I need,but it doesn't have an option to have an
I noticed that some ST Cpus support large amounts of RAM. Does this mean that they would run Linux, too. Are there any demo boards and such. Our volumes are 100-400 per year, if we ever start building our own Linux boards.
I cannot make the Ethernet work on my custom board (STM32MP153CA + automotive Ethernet PHY NXP TJA1101) in U-BOOT (haven't even tried loading kernel). The PHY is connected to an external 25MHz xtal. I'm working with 5-10-dunfell-mp1-21-11-17 files included on the 3.1.0 ecosystem. I tried the ecosystem 4.0.1 but got panic errors with RNG, UARTS, etc. After a few days I gave up and went back to 3.1.0After U-Boot finishes loading, I configure the ethaddr, ipaddr, gatewayip, netmask and serverip, but whatever command I send I got straightaway:STM32MP> ping 192.168.1.6--- net_loop Entry--- net_loop UDP handler set (00000000)--- net_loop ARP handler set (00000000)--- net_loop timeout handler cancelledTrying ethernet@5800a000eqos_start(dev=ddf05618):eqos_start_clks_stm32(dev=ddf05618):clk_enable(clk=ddf07290)stm32mp1_clk_enable: id clock 105 has been enabledclk_enable(clk=ddf072b0)stm32mp1_clk_enable: id clock 104 has been enabledclk_enable(clk=ddf072f0)stm32mp1_clk_enable: id clock 103 ha
Hi, and yet another question...We would like to perform electrical compliance testing on our USB ports. This requires each port to send a test pattern.Our board has one upstream and two downstream facing ports. The upstream port can be set into various test modes using a standard tool (USB xHSETT). Unfortunately, this is not possible for the downstream ports.Can you give me any advice, how to set a usb host port into the TEST_PACKET test mode?Regards
Hi,We are using Stm32mp157a processor in my custom board.We are trying to work on dac with DMA but it is not working.You can see my configurations below.In cube mx for DAC there is no Dma option.so we added DMA manually with reference Stm32mp1 Uart Tx DMA.2.When we do with reference of Stm32mp1 UART TX DMA we are getting DAC request in DMAREQ_ID[6:0] in DMA_MUX CR register and source and destination address and Data size we are able to see.But unable to get DMA IRQ.How can i Resolve this. And one more thing how can i trigger DMA through Software?
Hello , I am trying to configure RX (only) with dma. I am using DMA2 stream5 on usart3 I have connected USB to UART bridge (4 wire) on 40 pin headers RX,TX,VDD(3) and GND on CN7. Whenever I am trying to send any data from the comport (teraterm ) from windows PC , nothing happens (on the RX side) on the CM4 of MPU.My code : /* Peripheral clock enable */ __HAL_RCC_USART3_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /**USART3 GPIO Configuration PB10 ------> USART3_TX PB12 ------> USART3_RX */ GPIO_InitStruct.Pin = GPIO_PIN_10; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF7_USART3; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); GPIO_InitStruct.Pin = GPIO_PIN_12; GPIO_InitStruct.Mode
I was wondering if its possible to directly flash the STM32MP1 using UART using the STM32CubeProgrammer ? if so are there any tutorials that can be followed ?
I followed the steps to install the mongodb from the openSTLinux distribution.when I run the mongodb from the terminal, it is crashing with the bus error.root@stm32mp1:/usr/bin# mongodBus error (core dumped) Appreciate your help..
Hi, Is there any way to give a more meaningful name to a serial port with the device tree, so that is shows up in the linux kernel?Right now, in a device tree, it is possible to choose an alias in the alias node. But they do show up as ttySTMx in the /dev directory.Is there a way to make it work so that it gets a more intutive name like rs232? For my specific layout some serial ports are connected to a specific interface./ { aliases { serial1 = &usart1; }; }; /*root*/ // Instead / { aliases { rs232 = &usart1; }; }; /*root*/
Hi,I was following the instructions from the ST wiki (How to build kernel for Android) on how to build the android kernel, however, on the last step, when instructed to build the final android images (make -j) I get the following error:"Cannot extract kernel configs in out/target/product/eval/kernel"I am attempting to build without any configuration changes or modifications to the kernel.
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.