Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hello , I have a few queries related to assignments of GPIO wrt to Cortex M4 and Cotex A7 . Task is to add a I2C peripheral to a GPIO and access it using Cortex M4.But I cant see the cortex assignment options ? I see on few but not on some on which I actually want.(like PA12) Also I see pin locking on some GPIO? Does that mean I can’t connect anything to these GPIOS? Also on the I2C1 , to which context it is assigned by default? Both Cortex M4 and A7 or to one of them? please advise!Thanks in advance!D
hello,I'm a new member here so if i am uploading this question in a wrong way please notify me.i am working at the moment with octavo board OSD32MP15x that integrates the STM32MP15x dual core Arm cortex A7 and an arm cortex m4.i am trying to run a simple example with HAL_SPI_TransmitReceive_DMA() just to transmit and receive the same byte every time. the code is not showing me any errors when building but when i use the logic analyser there is no data transmission or reception. i added the dma_rx and dma_tx requests using the the ioc file and working with the circular mode in both cases. is there any suggestions as to what might be the reason behind it ?PS: the same example with HAL_SPI_TransmitReceive() worked just fine.thank you in advance!
Hi,I have a small problem during stm32mp1xxx bring up. The Uart4 is debug console and is connected to stlink v2.1 on virtual serial. The problem is that this stlink makes all the time interrupt U-Boot and stack in it (stlink not connected to USB). To go system father I need to connect stlink to USB and type 'boot'. I tried to addCONFIG_BOOTDELAY=-2 CONFIG_SILENT_CONSOLE=y CONFIG_SYS_DEVICE_NULLDEV=y CONFIG_SILENT_CONSOLE_UPDATE_ON_SET=y CONFIG_SILENT_U_BOOT_ONLY=ybut without success.In the hardware, I added pull up resistorsTo prove my theory I make a shortcut on resistor R58 and the system boot-up all the time.How to correctly resolve this problemThanks in advancedBR Michal
Hi,I am using an official STM32MP157C-DK2 board.I tested to build OP-TEE 3.17.0 for stm32mp1 however the boot hangs.I am building OP-TEE OS using:make PLATFORM=stm32mp1 \ CROSS_COMPILE_core=arm-linux-gnueabihf- \ CROSS_COMPILE_ta_arm64=arm-linux-gnueabihf- \ CFG_ARM32_core=y \ CROSS_COMPILE_ta_arm32=arm-linux-gnueabihf- \ CFG_TEE_CORE_LOG_LEVEL=2 \ CFG_TEE_CORE_DEBUG=n \ CFG_EMBED_DTB_SOURCE_FILE=stm32mp157c-dk2.dtsThe full image (st-image-core) I am using is based on meta-st-stm32mp and open-stlinux (dunfell branch)The kernel is the one present in the meta layer: kernel (5.10.61)I am aware that an existing version of OP-TEE is present in the build however it's from version 3.12.0.I tried to build OP-TEE OS version 3.16.0 apart and include it in the final image and it works as expected.I investigated and the issue comes from the linux-stm32mp kernel patches because when I built the stable kernel based on the same version 5.10.61 without patches, it works with OP-TEE 3.17.0 without issu
..
I’m new to the stm32mp1, I’m struggling to figure out how to get SDL2 working with OpenGL on the platform. I can create a window with SDL, but if I try to create an opengl window, I get a runtime error that GTX is not supported.I should note that my goal is actually to get an opengl context for drawing, SDL is not a hard requirement.Are there any existing examples to get something like that working?
I want to ensure I've used the most optimized code. I'm using gcc on linux. I have 4 values to store. If I use an array, I can for() loop as a convenience and shorter code, but is there added overhead compared to just using separate variables and having a few more lines of repetitive code? Will using the for() loop use up more ticks? Sorry if I'm splitting hairs as I am not sure.So I am wondering if using:uint8_t varA1;uint8_t varA2;uint8_t varA3;uint8_t varA4;is faster than using:uint8_t varA[4]
Hi!I use buildroot - NOT openstlinux.My M4 code works fine in engineering mode, but fails in production mode.I suspect that it is due to the device tree file.The DTS file generated by STM32CubeIDE has some pinmux assignments to "RSVD", which fails in my Linux build. It doesn't know the RSVD keyword.E.g. "pinmux = <STM32_PINMUX('Z', 0, RSVD)>, /* SPI1_SCK */"Is there another way to reserve these pins?Also, what is the difference between pinctrl and pinctrl_z sections?Best regards,Mogens
This is a problem that has bothered me for months.I hope someboby could give me some help.Firstly I use STM32Programmer to flash the STM32MP157F-DK2, it runs really fun.After I rebuild the kernel V3.1.0 followed by Wiki and use "scp arch/arm/boot/uImage root@192.168.7.1:/boot" many modules can't be probed successfully.The complete boot log is in boot1.txt.So I have to compile the modules and use "scp -r install_artifact/lib/modules/* root@192.168.7.1:/lib/modules" to replace the original.There're still some problems.The complete boot log is in boot2.txt.Only the following problemsWhat's the galcore and how to solve it?Now the board can't launch the default applications automatically and I can't clicke to started them manually.
I'm trying to figure out how to add OpenCV to my STM32MP157-DK2 Discovery Board. I am not new to ST Microcontrollers, but I am new to the MP1 and Cortex A processors. I'm also not new to Linux but am completely new to embedded Linux and Yocto.I can see that there is a recipe for OpenCV included in the Ecosystem V1.2 release distribution package, but when I build the release and flash, OpenCV is not present on the DK2 board. I was able build OpenCV specifically with the bitbake command, but again, it is not present in the image. I have seen a few references to installing OpenCV in the wiki but not enough details to get to the next step.I am wondering what the correct or preferred method for getting OpenCV included in the image. Preferably, enough information or pointers to documentation that I can understand the bigger picture and know how to do this in general and not simply how just to add OpenCV in this case.
For measuring the USB signal quality, it is necessary to print out test pattern on the USB interface. How this can be done on a customer board with STM32MP15x controller. Is a test software or source code available?
Hi, I installed node.js with apt-get on my STM32MP157C-DK2, which worked great.Now I want to install another package but it failsapt-get install nodejs-npm... Need to get 7286 kB of archives. After this operation, 0 B of additional disk space will be used. E: You don't have enough free space in /var/cache/apt/archives/.But I think there is still enough free space on the SD Card:root@stm32mp1:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 715M 682M 0 100% / devtmpfs 150M 0 150M 0% /dev tmpfs 214M 0 214M 0% /dev/shm tmpfs 214M 20M 195M 10% /run tmpfs 214M 0 214M 0% /sys/fs/cgroup tmpfs 214M 4.0K 214M 1% /tmp /dev/mmcblk0p4 58M 8.5M 46M 16% /boot tmpfs 214M 80K 214M 1% /var/volatile /dev/mmcblk0p7 14G 74M 13G 1% /usr/local /dev/mmcblk0p5 15M 8.4M 5.1M 63% /vendorhope someone can help. Otherwise I have to cancel my work with node.jsregardsLukas
What's the process to add a native gcc to openstlinux-weston so I can compile from the command line on my DK2 dev board? I was able to rebuild using bitbake and started poking around to find which layer to enable to get a native gcc running on the STM32MP1 dev board (DK2) but I can't figure it out. Or should I use a different approach, is there a pre-built image for the DK2 with native gcc?Thanks,Andrew
I'm following the OpenAMP_TTY_echo example.To do a Tx it basically uses two functions: VIRT_UART_Init and VIRT_UART_TransmitAfter I use VIRT_UART_Init, I can see in the Linux terminal a log message something that suggests the initialization is working.However, VIRT_UART_Transmit returns error.I was debugging and found that rpmsg_send_offchannel_raw function is returning because "dst == RPMSG_ADDR_ANY"However, VIRT_UART_Init, is initializing destiny as RPMSG_ADDR_ANYstatus = OPENAMP_create_endpoint(&huart->ept, RPMSG_SERVICE_NAME, RPMSG_ADDR_ANY, VIRT_UART_read_cb, NULL);These are automatic generated functions by STM32CubeMX.Am I missing something? Should I set the dest address somehow?Note this is code generated with STM32CubeMX, I only added the call to VIRT_UART functions.
Hi , iam trying to use spi1 pheripheral for the cortex M4 and iam using Pz0 as CLK, pz1as MISO, pz2 as MOSI, pz3 as NSS , but i tried several ways to do it by changing the kernel DTS and TF-A as well but no result , could anyone please help me how can i configure a spi pheripheral to cortex M4 with above given pins Thanks & regardsAkshay.
Hello. I am currently working on a custom stm32mp157a Linux based board with a KSZ9896 as network switch. At this point everything works on the board expect the RGMII connection to the switch. The RGMII is currently running in 100MBit mode for easier debugging, all signals seem to be received correctly. The stm32mp1 s not receiving any data over RGMII. Even when enabling the loopback on the interface in RGMII no data is seen using tcpdump (-Qin -i eth0). This is interesting since running ethtool -S eth0 shows the rx and tx counters going up together as packages are sent and looped back. Both connections are 100Mbit with a 125 MHz clock coming from the switch and flow control has been disabled.Could anyone point me in the right direction where to start looking?
When booting off SPI NOR I would expect the device (an ST32MP151D) to possibly check the device ID then read a block starting from 0. Where is this fully documented ? What I actually see is two pairs of negative pulses on nCS then it floats open circuit. It's all within some tens of microseconds. The device is loaded with two copies of my TF-A and one U-Boot at the addresses in the TSV which are 0, 256k and 512k. Where is the documentation or application note on what exactly it does ? There is nothing in UART4 (PC10 and PC11).
I'm working on a project using the Seeed Studio STM32MP157C-Odyssey-SoM (it is a module with the STM32MP1, DDR, eMMC and STPMIC). I am making a new PCB into which the module is plugged. When using the module on the original host board from Seeed, both the eMMC (SDMMC2 controller) and the SD-Card (SDMMC1 controller) boot work. On my board only the eMMC boot works. When using the SWD debugger, I found that the CPU does not even enter the FSBL, but remains stuck in the boot ROM. By checking the SD-Card connection, I found that the CPU does not even attempt a write (and the SDMMC1 controller has only the reset values in its registers). I also determined that the boot mode is properly detected in the SYSCFG_BOOTR register. Is there a way to debug the boot ROM? I understand the code is not available, but I hope to be able to determine what is happening by reading peripheral registers, which ones should I check? Thanks for your help
Hello,I am working with an STM32MP157 -DK2The Distribution Package currently offers a Yocto version that is aligned with Dunfell (in particular meta-st-linux)Is this repository maintained somewhere in a way that it is aligned with current Yocto releases such as hardknott?Regards
I have the following pinctrl entry in my 5.10 device tree to use the USART1 and the serial port fails, due to an incorrect pin configuration for PZ7 AF7.usart1_pins_c: usart1-2 { pins1 { pinmux = <STM32_PINMUX('Z', 7, AF7)>, /* USART1_TX */ <STM32_PINMUX('A', 12, AF7)>; /* USART1_RTS */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins2 { pinmux = <STM32_PINMUX('Z', 1, AF7)>, /* USART1_RX */ <STM32_PINMUX('A', 11, AF7)>; /* USART1_CTS_NSS */ bias-pull-up; }; };Does anybody know why this is happening?Does the PZ7 require any specific setup to be used as USART1_TX?Best regards,--Mike
Hi everyone, I am using stm32mp157f-dk2 with ecosystem 3.1.I want to configure the usb type C port(CN7) as serial port, and communicate with the host PC.This article helps me a lot. https://wiki.st.com/stm32mpu/wiki/USB_overview#How_to_configure_USB_Gadget_through_configfsI modified the usbotg-gadget-config.bb, the stm32_usbotg_eth_config.sh and create my own service, as attached.After that, I can successfully set up the device. I can see ttyGS0 show up in my device.However, when I connect it to the host, although the host is able to detect my device, it can't recognize my device.What am I missing?I suspect that it is the stlink causing the issue, as it occupy the ttyACM0 already and the host cannot create another tty corresponding to the GS0. I am not sure how will the host OS deal with this situation.Regards, Leung10/3 update: I found that my PC can't boot up when the device is connected. It scared me. I am still investigating why it is failing, but I think the stlink is not the root
I am using starter image "en.st-android-10.0.0-2020-02-21-eval-sd-starter.tar.gz".CubeProgrammer gave me "Error: an error occurred while uploading data from the virtual partition 0xF1" . Below is full log:16:56:19 : USB speed : High Speed (480MBit/s)16:56:19 : Manuf. ID : STMicroelectronics16:56:19 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x000016:56:19 : SN : 0046003E333851063438333016:56:19 : FW version : 0x011016:56:19 : Device ID : 0x050016:56:23 : Start Embedded Flashing service16:56:23 : Memory Programming ...16:56:23 : Opening and parsing file: fsbl-programmer.img16:56:23 : File : fsbl-programmer.img16:56:23 : Size : 245360 Bytes16:56:23 : Partition ID : 0x01 16:56:23 : Download in Progress:16:56:24 : File download complete16:56:24 : Time elapsed during download operation: 00:00:00.43116:56:24 : RUNNING Program ... 16:56:24 : PartID: :0x01 16:58:14 : Error: an error occured while uploading data from the virtual partition 0xF116:58:1
Hi all,I have been trying to get DSI interface on a custom board using STM32MP1.The device tree exactly done as given here : LInk.I do have DK2 kit , which i probe I am able to see the signals at DSI PHY even if display is not connected.In case of my board , I am unable to get it up. See the device tree attached for more details.The reference design is taken from DK2.The probing of driver i believe fails silently since neither I do any failure logs related to DSI in kernel boot logs. modetest -M : Also does not give positive result. I can see encoder field is empty and unpopulated.Any leads are appreciated.
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.