Get ready for the STM32 Summit 2026 | Online, November 3
Ask questions and find answers on STM32 microprocessors, including hardware, power, DRAM, flashing, interfacing, device tree, and peripherals.
Most recent activity
AllI am new to the ST ecosystem.I tried Save as. That saves a 1.6K file with nothing in it.I tried clicking the link and I get a 403 error.How do I download this tar file?Thanks.
Using the Distribution Package for STM32MP1 I wrote a simple function to copy some file to the rootfs image and execute fine-tuning commands:my_postprocess_function() { cp -dr /home/osboxes/Documents/overlay/* ${IMAGE_ROOTFS} ln -s /lib/systemd/system/apache2.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/apache2.service } ROOTFS_POSTPROCESS_COMMAND += "my_postprocess_function; "It works fine but of course don't work for files in `/boot` because it's another partition and the tree under `${IMAGE_ROOTFS}` does not contain it.So, what's the right syntax to execute any command in the `boot/` directory?
Hello,I'd like to test your X-LINUX-AI-CV OpenSTLinux image on my STM32MP157C-DK2 Discovery kit as explained in the following pagehttps://wiki.st.com/stm32mpu/wiki/X-LINUX-AI-CV_OpenSTLinux_expansion_packageDo you provide a ready to flash and use X-LINUX-AI-CV OpenSTLinux image somewhere or one have to rebuild it from scratch only?Thank you--Marco
We are looking for random access from the linux side as well as DMA capabilities as future add-on.
What is the best mechanism to access shared memory from the A7’s linux user space? I have tried using mmap and was successful at reading shared memory; however, I get memory exceptions when attempting to write. Could it be that I can only write to this memory in kernel space?I can find documentation for the M4 processor and how to define shared memory in linker script. No luck with linux doc's other than “remoteproc�? and “rpmsg�? documentation, neither give clear instruction on how this is done.Could you please refer me to some documentation that could help me get a better understanding on how this is done.Thanks in advance!
I'm trying to get STM32MP157C-EV1 board working with the STM32Cube ecosystem.I've had a lot of issues - the documentation isn't well "connected" re. no "getting started" guide with the board. I eventually found the wiki pages - would be *very* useful if these were mentioned on the STM32MP1 resources webpage!).The wiki pages describe using the now deprecated SW4STM32 rather than STM32CubeIDE, and whilst it describes setting the boot pins to boot from SDCARD the section on developing on the M4 doesn't say to set them to "engineering mode" (confusingly referred to as "Reserved (No Boot)" in the STM32MP1 reference manual. The board was also supplied without the jumpers being in the documented default settings, but that's another issue ;)I've eventually got a partially working system using an external J-Link and also with the internal ST-Link (despite the ST-Link firmware version being wrongly reported in many of the tools which confused me at first, and the ST-Link GDB server having a
Hi, I'm trying to get DMA2 requests working, using TIM and HAL. Iam using TIM5_CH2 and iam not sure which DMA2 stream should be used here (i use stream1). Creating PWM signal isn't a problem, but i want to change duty cycles (very common problem) by delivering a buffer of different pulses.HAL_TIM_PWM_Start_DMA(&htim5, TIM_CHANNEL_2,(uint32_t*)buffer, 2) does not give the expected results. According to the ref (p.1187 and 1227) there should probably be used multiplexing via DMAMUX, but i don't know how to use and how to interpret the table. Maybe it is something like:hdma_tim5_ch2.Instance = DMA2_Stream0;hdma_tim5_ch2.DMAmuxChannel = DMAMUX1_Channel6;in the TIM-DMA init, because DMAMUX has 16 channels with 8 streams each.Thank you in advance!
I'm trying execution code:#define DEVICE "/dev/ttyRPMSG0" int main(void) { int fd; struct termios tty; char buf[100]; int len; printf("Opening device...\n"); fd = open( DEVICE, O_RDWR | O_NOCTTY | O_NDELAY ); // read/write, no console, no delay if ( fd < 0 ) { printf("Error, cannot open device\n"); return 1; } }But, always get: Error, cannot open device. :(I think, that in my Linux system there is no driver for this device: /dev/ttyRPMSG0.What am I doing wrong?How to create and manage a device /dev/ttyRPMSG0 from a program correctly?Board: STM32MP157C-DK2Many thanks.
I am switching from a classic RTOS/Bare Metal Architecture (like the F4) to the STM32MP1 ecosystem. For that I am trying to generate an interrupt based of a GPIO input.I could not find any specific examples for this in the wiki? Are there any tutorials for that? Is it possible to configure the Device Tree for that Interrupt using STMCubeMX?Thanks!
Hi ,I am working with STM32MPU DK2 and Distribution package and have some of basic queries.How do i know which peripheral is connected to which Processor ? where can i get to know about this ? 1.1how do i know which device tree .dts is used ? 1.2 if i execute a new project from cubeMX it generates project skeleton and a .dts file, shoud i have to rebuild linux with this .dts?1.3 On runtime, can i get to know if a particular peripheral is assigned a particular processor?2. I have obtained the terminal of the board using Minicom and i m able to execute the programs on Linux A7 and M4 using the below links...But how can i crossverify if M4 is what is being executed or other? 3. Where can i find the source code for AI demo from the Linux environment? or any demo that contains source files of both the processors application?Background: Trying to establish a communication between A7 and M4 using RPMsg mechanism.Thanks in AdvanceVivek
In Getting Started there are links to the SDK and Kernel Source, both links return 403 Forbidden They have been broke since Friday evening, at least that is when I tried to install.
Hello!How to fix STM32MP1157-DK2: My board cannot boot after attempt of MAC address changing by fuse programming from U-Boot command line: fuse prog -y 0 57 0x78563412 0x0000bc9aThen we got following during boot process: NOTICE: CPU: STM32MP157CAC Rev.B NOTICE: Model: STMicroelectronics STM32MP157C-DK2 Discovery Board NOTICE: Board: MB1272 Var2 Rev.C-01 INFO: Reset reason (0x10): INFO: Reset due to a failure of VDD_CORE INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 INFO: Product_below_2v5=1: HSLVEN update is INFO: destructive, no update as VDD>2.7V NOTICE: BL2: v2.0(debug): NOTICE: BL2: Built :
Have been spending time reading the Wiki about the Yocto environment, is there a link to forward technical suggestions and grammar corrections?
I'm trying to create new image with my app, that needs qtwebkitwidgets, but have some problems with that. When bitbake starting compile qtwebkit-my host pc freezes. I read that post https://community.st.com/s/question/0D50X0000AVSWK1SQP/what-is-the-process-for-initializing-the-openembedded-build-environment-stexampleimageqt about qtwebkit, but in my case it doesn't work. My MACHINE=stm32mp1 DISTRO=openstlinux-x11. I tried bitbake with -k and I tried to launch compilation again, first compile stoped at 38%, after rebooting my host-it's 0% and freeze.Is any alternative ideas how I can install qtwebkit to use my app?
Hi,I am trying to set up usb ethernet gadget on u-boot with stm32mp157c-dk2 board. I enabled the rndis gadget on the menuconfig but u-boot keep saying that there is no ethernet driver. Any suggestions?
Hi, I use stlink v2 connect my custom board. The stm32cubeprogrammer shows error message when I use SWD or JTAG mode. The stlink version is V2J33S7.No STM32 target found!And I also tested with DK2 board. Could you give me some hints about it?
I'm trying to get my STM32MP157A-DK1 to boot with this tutorial: https://wiki.st.com/stm32mpu/wiki/Category:Starter_PackageFlashing works (note that I'm flashing the DK2 tsv package, since there is none for the DK1). But on boot the device gets stuck on:[ 2.033952] sdhci-pltfm: SDHCI platform and OF driver helperI attached the full boot code in a pastebin: https://pastebin.com/gz0deEv7The LD8 blue LED is blinking two fast blinks at a time.
We Have bought STM32F439 Evalution Board from STMicroelectronics. In User manual UM1668 specifies the following in Page No.18 and attached for your reference.Note: Ethernet works properly in the default setting (which RX_ER is not connected to PI10 of STM32F439NIH6) because PI10 is shared with data signal of SDRAM.If RX_ER signal is needed, remove R244 and solder R43.We want to use High speed USB, Ethernet and FMC D[0:31] from the STM32F439NIH6 Microcontroller in Our Application.Since Some of the Microcontroller pins are shared by both Ethernet and FMC D[0:31] or High-speed USB and Ethernet. For Example: PI10 - FMC_D31, ETH_MII_RX_ER.
STM32WB version 2.9.1.2019050314Linux version 4.15.0.72 64bEclipse version Neon.3 release 4.6.3Java version 11.0.5 2019-10-15Distro Linux Mint 19.2 TinaI am using the discovery stm32mp1-157 and trying to follow the wiki tutorial. I have been able to build the is and load it and reboot. I have been successful in creating the gtk hello world, loading it to the board and running it. Now I am trying to do the OpenAMP_TTY_echo project. It compiles fine but when I try to start the debugger the connection fails indicating “Ethernet over usb0 connection�? error. The target widget in the lower right corner cycles through Status:idle, Device: /dev/ttyACM0, Addr: 192.168.7.2, check host usb0 cfg!.Has anyone else run into this?I have tried to fix it by adding group permissions for dial out and try to user name but no change.I suspect a permissions problem but cannot figure it out.I also checked the board side using the serial connection in SWB4STM and verified That the eth address for th
The Wiki says it is easy but how do you link to a none existing serial device? No driver, no connection . As for connecting over Ethernet, the Wiki author must have never seen a STM32MPU157C-DK2 yet that page was approved by someone that must have never checked.
..
I am using the STM32MP157C-DK2For testing purpose I need to build and replace the BSP and in particular the bootloader.The documentation is a bit messy and I'm not able to find the information I need.I need to rebuild and replace TF-A and u-boot.I read so far:https://wiki.st.com/stm32mpu/wiki/TF-A_overviewhttps://wiki.st.com/stm32mpu/wiki/STM32MP1_Starter_Package_-_imageshttps://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayoutWhere I can find all the sources and documentation explaining how to rebuild TF-A (Trusted Firmware-A)?Thank you.
The CS42L51 used in the STM32MP15-DK2 has a beep generator that can be used to generate tones with selectable frequency and separate volume control.Is this functionality exposed by the CS42L51 ALSA driver? Can this be used from Linux?Thank you,Guillermo
tty*** is not created when plugging in Prolific Technology, Inc. PL2303 Serial Portlsusb returns: Bus 002 Device 014: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Portbut no tty*** is created and I cannot communicate with the device.Thank you,Momchil
I want to configure the TFTP launch, but I can't generate the core-image-least-initramfs system
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.