Get ready for the STM32 Summit 2026 | Online, November 3
Join conversations with your peers and ST experts. Explore the full potential of STM32 microprocessors for your embedded design.
Most recent activity
Hello,I have a STM32MP157C-DK2 board and did the hello world cross compile project with GTK and that work perfectly.Now I am trying to do cross compiling with Qt Creator. I used the same compiler as the GTK project but Qt Creator give me an error: The compiler (arm-linux-generic-elf-32bit) cannot produce code for the Qt version (x86-linux-generic-elf-64bit).Where I get a compatible qmake file for this compiler or how to generate it?Regards Marius
I have just bought an STM32MP157C-DK2 and would like to get started. I found a tool within the wiki which allowed me to select a bunch of the "getting started" sections and create a PDF. However. all the pages of the PDF just said I didn't not have permission to do this, or something like that. Trawling though documentation online is a lot more painful than something I can print, read offline and annotate. Where can I obtain or create PDF documentation?
Hi,I am only a bit familiar with embedded linux. I will develop a demo project with STM32MP157C-DK2 with C language:on M4 side, a sensor(BME280) and a vantilator (5v) are connected. Sensor is to read periodically and three numerical values( temp, humidity, pressure) will be send to A7 sideon A7 side a QT application will receive these three values and display them continuosly. Over this QT application, the user will be able to send on or off command for vantilator to M4.M4 will receive this command and then will start or stop the vantilator. At first, I should say, I played a bit with the board, did all the work which is called getting started with DK2 (https://wiki.st.com). Then I saw an article in bootlin about using BME280 sensor. But this article doesnt help me because it explains how to read the sensor from A7 (linux side). However I will read the sensor from M4 side.Honestly, I don't know how my roadmap will be. I mean where to start and which mechanisms, middlewares, packages, t
stm32-ipcc 4x001000.mailbox: Try increasing MBOX_QUEUE_LEN remoteproc remoteproc0: stm32_rproc_kick: failed [vql, err: -105) Hey all,I'm working with the OpenSTLinux EGLIFS QT image, and having issues running the OpenAMP TTY Echo program.When I get to the part where you actually Echo a message, I'm getting the above error.Any ideas what would cause this?
..
sed: can't read /home/letter/new-development/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/ncurses-native/6.1+20180630-r0/sysroot-destdir/home/letter/new-development/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/ncurses-native/6.1+20180630-r0/recipe-sysroot-native/usr/lib/pkgconfig/*.pc: No such file or directoryAnyone know the fix for this? A google search has gotten me nowhere. I tried upgrading the openembedded layer to their latest, no help.Running on Ubuntu 18.04.3 LTS, all the recommended packages, all is up to date. Following the instructions at https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_PackageI have a year of experience with Yocto (on another SOC) and 25 years with embedded Linux.
STM32MP157-dk1, UART, file to open, fingerprint sensor
I have enabled the FD-CAN device in the device tree with the following entry&m_can2 { pinctrl-names = "default", "sleep"; Template:Highlight pinctrl-0 = <&m_can2_pins_a>; Template:Highlight pinctrl-1 = <&m_can2_sleep_pins_a>; Template:Highlight status = "okay"; Template:Highlight };upon booting Linux I run the following commands to initalize the interface to a bit rate of 500,000ip link set can1 type can bitrate 500000 ip link set up can1and send a can message using the can-utils binaries with. cansend can1 3E8#112233Using a Saleae Logic analyzer I capture the following waveform which the bit-time measures out to be around 1.91 microseconds. Performing the inverse of this measurement provides the measured bit-rate to be 523,560 bps which is nowhere near the 500,000 I commanded. I assume I have a clocking error somewhere but i haven't changed any of the clocking settings. What am I doing wrong?
Hello, I trying to make the example in: https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157C-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-M4/Modify,_rebuild_and_reload_a_firmwarebut after SSH password window (here i put root in password) I get another window (attached), I don't know what pass i need to put, root don't work. (192.168.1.6 is my board ip).Thanks.
Hi, I used the below link for building OpenSTLinux Distribution.https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package As mentioned in the step 7 "Flashing the built image", there should be a /deploy/image folder for images. But i didn't find any image folder inside deploy directory.What could be the possible reason thet image folder is not generated?How should I compile to get the image folder?Thanks,Deshvir
I would like to understand what the Eclipse IDE is doing to start the debugger, so that I can move away from using it. I much prefer CMake and other tools. I'd be grateful for any assistance. The wiki section for this is TBD.I'm not too familiar with OpenOCD, but have run the command: $OECORE_NATIVE_SYSROOT/usr/bin/openocd -s $OECORE_NATIVE_SYSROOT/usr/share/scripts -f board/stm32mp15x_dk2.cfgThis seems to work so, moving on to GDB: $OECORE_NATIVE_SYSROOT/usr/bin/arm-openstlinux_weston-linux-gnueabi/arm-openstlinux_weston-linux-gnueabi-gdb firmware.elfAnd this is where I come unstuck. I've used GDB a bit, but don't know the magic incantations to install an image into the M4 on this platform.(gdb) target remote localhost:3333Remote debugging using localhost:33330x00000000 in g_pfnVectors ()I get a "target not yet examined" error which I don't understand. The vector table is all zeroes, so nothing has yet been placed in the RAM yet. (gdb) loadLoading section .isr_vector, size 0x298
Hi,As i was testing the limit of how many virtual uarts i can create, i found that the limit is actually 4:Using debug tracing i can see that the channels get created inside the code (here i am creating 5 virtual uart) but only 4 ttyRPMSG are created.I reduced the total buffer used by each channel to 256 instead of 512:// File: rpmsg_virtio.h /* Configurable parameters */ #ifndef RPMSG_BUFFER_SIZE #define RPMSG_BUFFER_SIZE (256) #endifSo in theory, i should be able to create 8 channels but the max is 4 apparently.Can someone please confirm how they made it?Thanks
Good evening,since NAND flash can be addressed pagewise only (I guess STM32 flash is NAND) and I am able to write for e.g. a single byte to the page, will the whole page gets erased during every write operation? My presumption is that the page gets buffered somewhere, gets fully erased and the buffer containing the new data will be written back to it. But this would mean that the flash wear would be extremly high. Would be great if someone has an answer and a reference to some kind of document. I couldn't find any.Thanks alot!
Hi,I am using the STM32MP157C-DK2 and so far i manged to make FREERTOS work flawlessly with OpenAMP and the tracing printf functions. I can insert breakpoint at any point without a problem. However, i start having issues when i declare a semaphore or a mutex in the function MX_FREERTOS_Init().Here is my main.c file:/** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "cmsis_os.h" #include "ipcc.h" #include "openamp.h" #include "gpio.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "stm32mp15xx_disco.h" #include "log.h" /* Private function prototypes -----------------------------------------------*/ void SystemClock_Config(void); voi
Hi,I am following the tutorial of developing on M4 with the STM32MP1 but when I do the"debug as" to this project, it comes out an error.The STM32MP1 has connected to my PC through the STLINK usb; the boot0 and boot2 on the board have been set to "on"; and no another Console view.I could not find out the problem.Any suggestion would be a great help.Thanks.Duncan
There's some inconsistency on the support of LPDDR2/3 on LFBGA448/LFBGA354 package. Page 16 of the datasheet lists that LPDDR is only supported on TFBGA257/361, which is consistent with the settings in CubeMX (LFBG* packages have on LPDDR option).However, page 10 & 11 of AN5122 STM32MP1 Series DDR memory routing guidelines clearly show that LPDDR is supported on both LFBGA packages. I guess this is an error in the datasheet and CubeMX?
I'm trying to build an image for the STM32MP157C-DK2 board using the standard unmodified OpenSTLinux yocto build.The build is successful and the image boots fine, but Bluetooth does not work with the basic image (it works with the trusted image).Using a scope, I noticed that BT_REG_ON (on TP29) is driven low, which turns off the bluetooth part of the chip.I suspect that the device tree is parsed differently depending on the bootloader used (the device tree itself is identical to the one that is preloaded on the provided SDCard).Build Configuration: BB_VERSION = "1.40.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-19.04" TARGET_SYS = "arm-openstlinux_weston-linux-gnueabi" MACHINE = "stm32mp1" DISTRO = "openstlinux-weston" DISTRO_VERSION = "2.6-snapshot-20190726" TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7" TARGET_FPU = "hard" DISTRO_CODENAME = "thud" ACCEPT_EULA_stm32mp1 = "1" GCCVERSION = "8.%" PREFERRED_PROVIDER_virtual/kernel = "linux-stm32
Hello everyone, I use the STM32MP157A-DK1 on my project but I have a problem1- In the CubeMX, when you want to use a GPIO in output or input, why can not we select the context (cortex A7 or cortex M4)?2- When you set a GPIO as an output or input to CubeMX and generate code for SW4STM32, the GPIO you defined is not automatically configured in main.c, can I know why? please3- In SW4ST32 (main.c), when you manually set a GPIO and try to flash LEDs that you connect to the PG3 for example, no signal arrives on the PORT, did I make a mistake?BEST REGARDS
Hi, I trying to compile the OpenAMP_TTY_echo example, but I get these a lot of errors, attach a file.
Hi,We are currently using the STM32MP1 DK2 board for our project.We have to use FreeRTOS + UART7 and USART3 with DMA Our issue arise when FreeRTOS is used with an UART (USART3 or UART7 in our case) which use the DMA.We have reduced the project to the minimal configuration :- The linux image on the A7 is the one provided by ST and is flashed with STM32CubProgrammer.- The project is generated from CubeMX (started from the DK2 board with the peripheral enabled and FreeRTOS with a single UART (7 or 3 in our case) using DMA).- The CubeMX generated device-tree is compiled and used by the kernel.When executing, the issue appears after the first call of __HAL_DMA_DISABLE() in the function HAL_DMA_Init() in file stm32mp1xx_hal_dma.c(MX_UART7_Init() -> HAL_UART_Init() -> HAL_UART_MspInit() -> HAL_DMA_Init())After the final instruction of (__HANDLE__)->Instance)->CR &= ~DMA_SxCR_EN is executed, the content of the current stack is modified and the previous stacked return ad
Hi,We are currently using the STM32MP1-DK1 board.We have tried several examples but we are facing some issues with the one using FreeRTOS (FreeRTOS_ThreadCreation) :We have no issues running the program on the M4 both in Engineering mode and Production mode.When we are debugging the program and stepping instruction by instruction, the debugging process is lost at a time during the execution.In Engineering mode : We can execute the program and and we can insert breakpoint wherever we want. But, after the instruction msr msp, r0 in the function prvPortStartFirstTask in the file port.c has been executing, if we stop the program execution by inserting a breakpoint, the debugging process is lost with the error :Examination failed, GDB will be halted. Polling again in 6300msPolling target stm32mp15x.cpu0 failed, trying to reexamineIn Production mode : We can execute the program and and we can insert breakpoint wherever we want. But, after the instruction bx r14 in th
I am programming a STM32MP157C-DK2 board using System Workbench. I have been able to run the OpenAMP_TTY_echo example project without trouble. Then I created a new project and generated OpenAMP middleware from CubeMX. No trouble while compiling and uploading the firmware. But I have been able to test the firmware because of this error (see image below).Am I missing something? Please share any hint that could help!Thanks,Tristan
Hi,I would like to compile with the GNU toolchain directly on the device, without the use of cross-compilation. it's possible?In which way can i do that?
Hi,I've been following the guide over at:https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157C-DK2/Let%27s_start/Execute_basic_commandsI'm using a Windows 10 as a host, but I was hoping I'm not the only one. I don't have access to a Linux environment at the moment.I'm at the point where I need to connect to the device using the UART/ST-Link, power on, and press reset on the device to see an output on the terminal.My setup is:Host is Windows 10Terminal is called Termite 3.4 (no install version)DK2 is powered from a dedicated USB power (500mA source)DK2 boots up fine (the display works and the demo environment seems to work ok)Serial settings I have as follows: COM3 9600 bps, 8N1, No Handshake8 bits, no parity, 1 stop bit, no flow controlThe output in the terminal, after pressing reset, is all jumbled and garbage:[00] TÙ@¾"#V�Šÿ£[1B][18]Äã[12][07]€Åÿ‹3[15]"[03]ª�¢AÄ&KûÇÊ[0B]K[13]ÿ[05]˜C[13]àÕC BQpZ•®§#�qS‚[03]�?ƒˆJ##B¥[05]í½ÇõOEüc½½[08][1A]0Aáqú[07]¨ú[08]F[17]
Hi, I can't to connect my board by ethernet connector, when I connect the cable both leds are always off. I try using ifconfig to set a ip but my board doesn't respond to ping request, but when I used ifconfig to set ip over usb0 my board respond to ping and I can copy the hello_world example.Is my ethernet interface damaged? or I need to do other configuration?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.