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
Hi,Are there any references for configuring the I2S supply voltages in device trees for STM32MP135-DK.From the I2S module currently we are getting the output level as 5V, is that expected or is there any way to change that from 5V to 3.3V.
Hi,After reading the document I understand the interrupts are handled by pin#, and we set GPIOsel within EXTI_ConfigTypeDef.My question is how do we determine which port generates the interrupt?Suppose I use PA0 and PB0, and I only want to use one callback function for them.void callback(){ if(port == GPIOA) { do something } else if(port == GPIOB) { do other thing }}Thank you
Hello!I am using the CortexM4 coprocesor on the STM32MP157F-DK2 to measure multiple ADC channels and update a control loop based on the values. I have set up ADC1 using the DMA2 in circular mode to read channels IN1, IN2, and IN4. I have a buffer set up in which I place the values of the ADC. I also have a timer running so that upon the timer event, the ADC conversion is trigger. ADC1 is set up so that IN1, IN2, and IN4 have rank 1, rank2, and rank3 respectively. The problem I am facing is that each time I restart the DMA(firmware restart), it changes the index of the DMA buffer for each ADC channel. So for example, during testing, I have IN1 connected to 3.3V, IN2 connected to 0V and IN4 connected to 1.65V.The first time I stop the DMA and read the buffer I see these values.This makes sense because the first channel should be highest, second channel should be around 0, and third channel should be about half the first channel. However, after running my code and stop/start the DMA multi
Hello,We are using STM32157AAA3 Processor in our custom board.we are trying to ping ethernet in RMII (100mbps)mode in uboot (2023.04) version.we are facing following issues :1. Invalid PHY Interface.2. eqos_probe_failed() -22 No ethernet found (as in below screenshot). when we try to ping ethernet in RGMII Mode with auto negotiation we are getting Host is not alive.But in uboot 2018 version it is working fine in RMII (100mbps).Please find the below attached screen shots for configuration,what we have done for ethernet in uboot-2023V.please help us in this regards.regards,Navaneeth kumar
Hi Community,I realise that this may be a very newbie question:I have run all the steps as seen on the Wiki,I followed these steps to the letter: https://wiki.st.com/stm32mpu/wiki/PC_prerequisitesFolowed by:mkdir -p st/buildcd st/buildrepo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v23.06.21repo sync DISTRO=openstlinux-weston MACHINE=stm32mp15-disco source layers/meta-st/scripts/envsetup.shbitbake st-example-image-qtwaylandAll these steps were completed successfully :heavy_check_mark:I'm looking at the tmp-glibc/deploy/images/stm32mp15-disco/ directory and I am unable to figure out which of these I need to flash on to the SD card using etcher on my PC.Could someone help point me in the right direction?Thanks,
Hello, I am currently researching about possibilities in STM32MP1 dual core. I am trying to create user program that uses HW Semaphore. On M4 side is everything clear. But I cannot create program for A7 core. Here is what I think that I suppose to do:- create user program with hwspinlock.h- build corresponding version of linux kernel- include kernel files to makefile.But when I try to make my custom program, i got much errors from kernel source tree.For me, how to properly include hwspinlock framework is not clear from ST wiki or hwspinlock framework documentation.Thanks for any response.
1、Part Number:STM32MP135FAE7 2、tzc_it_handler:72 TZC permission failure3、Environment:PC:ubuntu18,environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi,arm-ostl-linux-gnueabi4、We designed a STM32MP135 based SOM, using the ST I2C PMIC, STPMIC1D,1GiB DDR3L。5、At present, after the modification of TF-A,OP-TEE device tree, TZC panic occurred when downloading, now check U-boot device tree, I do not know where to find the cause.6、Attached is the log printed by uart4 debug
Hi,I'm searching any information about how exclusive access (LDREX / STREX instructions) is implemented in STM32MP157 silicon. Unfortunately, it seems that ST assumes that this information is obvious.Based on ARM documentation, the synchronization is either provided by the SCU or the memory shall be marked Shareable (see https://developer.arm.com/documentation/dht0008/a/arm-synchronization-primitives/exclusive-accesses/use-in-multi-core-systems).Based on the STM32MP157 datasheet, figure 1: the SCU unit is part of the Level-2 cache connected to the dual-A7. However, the M4 core is on another bus. So I suppose that the SCU will not ensure A7 <-> M4 exclusive access.The other option is Sharable memory. So the question is: is functionality of ldrex/strex instructions between A7 and M4 cores guaranteed when the memory is marked as Shareable in MMU / MPU?Based on another articles, the behavior of Sharable memory depends on implementation of bus, bus interconnec
Greetings, I have a few STM32MP1 boards. One of which I have configures the OS on, and custom applications.I copied the SD card and put it in another one. The MAC address is the same. I read an STM article about the MAC address and "fuse sense 0 57 2" shows me the correct MAC address. So it must be in software somewhere. Where?
I built my image to test flutter gallery application from meta-flutter/workflows/stm32mp15. My local.conf file can be seen below:ACCEPT_EULA_stm32mp15-disco = "1" IMAGE_LINGUAS = "en-us" TOOLCHAIN_HOST_TASK:append = " nativesdk-flutter-sdk" CLANGSDK = "1" DISTRO_FEATURES:remove = " x11 " PACKAGECONFIG:pn-flutter-auto-runtimerelease = "backend-egl mouse-cursor package-info secure-storage text-input texture-test-egl" IMAGE_INSTALL:remove = " packagegroup-st-demo " IMAGE_INSTALL:remove = " gtk+3-demo " IMAGE_ROOTFS_MAXSIZE = "3145728" IMAGE_INSTALL:append = " flutter-auto-runtimerelease flutter-engine-runtimerelease-sdk-dev flutter-gallery-runtimerelease flutter-test-video-player-runtimerelease adwaita-icon-theme-cursors xdg-user-dirs avahi-daemon ntp ntp-tickadj gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly" LICENSE_FLAGS_ACCEPTED += " commercial" I flashed the image and in the home/root path there is a README file it says:Check GPU =====
Hi,I encounter a performance issue on the qt5 application on STM32MP135. I build a simple application with three plaintextedit objects showing temperature with 1s period from ds18b20. Everything compiles well and works, but the refreshing temperature on plaintextedit consumes 80% of the CPU (only refreshing after that go to 10% or less)Maybe someone has a similar problem to my. The same application on STM32MP157 works perfectly response on the screen and consumes only 10 to 20% in peak on CPU load. In my opinion, something is wrong with the compilation optionsI built it like for STM32MP157 without accepting EULA (this model has no graphics on board). bitbake -k st-example-image-qt -c populate_sdk bitbake -k st-example-image-qt Thanks for any hintsBRMichal
Hi,We are currently working on a project that involves utilizing the STM32MP13X MPU. Our device operates in both ACM and Mass Storage Mode, and we would like to inquire about the process of obtaining a custom name for the virtual serial COM port generated by the STM32MP13X when connected via USB.Specifically, we would like to understand the steps involved in acquiring a custom name for the virtual serial COM port and also a new product ID. We got know that ST offers sub-licensing for this instead of getting a vendor ID from usb.orgAny guidance on how we can get a distinct name? We aim to have a distinct name for our COM port to enhance the user experience and differentiate our product in the market.
Hi,I like to use spidev_test tool:https://wiki.st.com/stm32mpu/wiki/How_to_use_SPI_from_Linux_userland_with_spidev#Installation_on_your_targetI am following this guide for compiling the tool by developer package:https://wiki.st.com/stm32mpu/wiki/How_to_build_Linux_kernel_user_space_toolsThese are commands I have used: cd ~/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp157a-visionsom-hdmi-emmc-mx/tmp-glibc/deploy/sdk ./st-image-weston-openstlinux-weston-stm32mp157a-visionsom-hdmi-emmc-mx-x86_64-toolchain-3.1-snapshot.sh . /opt/st/stm32mp157a-visionsom-hdmi-emmc-mx/3.1-snapshot/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi cd ~/Developer-Package tar xfJ en.SOURCES-stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17_tar.xz cd stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0 tar xfJ linux-5.10.61.tar.xz cd linux-5.10.61 for p in `ls -1 ../*.patch`; do patch -
First I declare the buffer length/* USER CODE BEGIN PD */ #define ADC_BUF_LEN 10000Then I declare the buffer/* USER CODE BEGIN PV */ GPIO_InitTypeDef gpio_init_structure; VIRT_UART_HandleTypeDef huart0; VIRT_UART_HandleTypeDef huart1; uint16_t adc_buf[ADC_BUF_LEN];I've enabled the VREF/* USER CODE BEGIN 2 */ // Enable the VREF clock __HAL_RCC_VREF_CLK_ENABLE(); // Disable the high impedance mode which is the default one read page 1694 of refman HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE); HAL_SYSCFG_VREFBUF_VoltageScalingConfig(SYSCFG_VREFBUF_VOLTAGE_SCALE2); // To enable VREFBUF HAL_SYSCFG_EnableVREFBUF();Finally I start the ADC over DMAHAL_ADC_Start_DMA(&hadc1, (uint32_t*)adc_buf, ADC_BUF_LEN);I seem to get reasonable values when in engineering mode and look at variables in debug mode, however, when I build for release, then scp the file to the Linux core, then use the fw_cortex_m4.sh to forward the elf file, I get values of 4095.0000 every time
Hi,Is it possible to utilize the PCM1754 DAC as a Sound card with the ALSA Framework on OpenSTLinux?According to the documentation, the PCM1754 functions as a Hardware-controlled DAC, eliminating the need for additional drivers. Therefore, is it necessary to develop custom drivers for this particular DAC if we are using linux as OS?If it is possible, are there any references for configuring device tree files and sound card configuration to facilitate this setup?
Hello everyone! I am working on a small prototype based on the STM32MP157F-DK2 development board. For convenience, I want to use a GPIO Connector compatible with the Raspberry Pi to power the board (CN2) instead of the USB Type-C (CN6). I have an expansion module that successfully powers the Raspberry Pi through the GPIO connector (pin 2, 4), but it cannot provide power to the STM32MP157F-DK2 board. The kernel doesn't start up, and an error message appears, indicating the lack of proper power and suggesting the use of power supplies with a 3A current. My module can provide up to 3 amps, which is equivalent to the output of my power adapter that I use to supply power to the board via USB Type-C. I even conducted an experiment and routed the power from the expansion module to the USB Type-C connector (CN6), successfully powering the board, which indicates that the power source is working correctly. Is it possible to power the STM32MP157F-DK2 board through the GPIO connector? If yes, what
We are experiencing an issue where, in approximately 1 in 1000 cases, we don't get a TxRxCpltCallback callback after starting a SPI DMA transfer from an ISR on the ARM-M4 (coprocessor). The transfer appears to have taken place as all the bytes are received in the Rx data buffer, and scope traces show the SPI transaction occurred successfully. However afterwards, whilst `hspi->hdmatx->State` is the expected `HAL_DMA_STATE_READY`, `hspi->hdmarx->State` is still `HAL_DMA_STATE_BUSY`.To be clear, the vast majority of the time, it is working as expected, but it appears to be some kind of race condition where occasionally, the completion interrupt doesn't occur.The use case is for reading a set of samples (18 bytes) from a multichannel ADC. An interrupt "data ready" is given, and we are using the `HAL_SPI_TransmitReceive_DMA()` function inside this minimal ISR. I've done quite a bit of profiling for this case, so I am confident we exit the ISR well before the SPI transaction has
Dear ST team, Hope you're doing well.We have developed a custom board based on STM32MP151 with emmc. Currently, we are using STM32MP151 for flashing. The problem is each flash is taking around 15 minutes time and it will be a critical issue in our production cycle because we will produce the boards in large quantities.Please give your valuable advice on the below queries.1. Can we reduce the flashing time?2. Can we flash multiple boards in parallel?
error is logged as > Label or path sram not foundThe DTS file at the failing line reads &sram{ dma_pool:dma_pool@0{ reg = <0x50000 0x10000>; pool; }; }; I'm assuming this is to specify where the SRAM pool is. But this automatically generated file fails at build.The CubeMX project has worked before, just upgraded to mickledore and the latest CubeMX but I don't think that is the problem.I have done clean bitbakes etcBuilding the sample machines and configs appears to work perfectly its only my own new machine that is failing> looking at the 'equivalent' DTS file in one of the standard builds I dont see SRAM specified anywhere. I think my nachine specification is off although it was build using the tutorial in the docs....... more digging.
Hello, i am using an stm32mp1-dk2 board. For using fw_printenv and other uboot tools from user space one must define a "/etc/fw_env.config" file. I can see that the "/uboot.env" file is driectly saved under the root "/" and so i defined the "fw_env.config" like that: # cat /etc/fw_env.config # Device name Device offset Env. size Flash sector size /uboot.env 0x0000 0x2000 But every time i run fw_printenv i get following msg: # fw_printenv Warning: Bad CRC, using default environment bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200 As you can it claims about "BAD CRC...". My question is: How should a correct "fW_env.config" looks like for a stm32mp1-dk2 board? Thanks
I am not able to launch SPI activation outputs just using datasheet information. I have tried everything and the status outputs do not change. By making use of an oscilloscope, I have checked that the data bytes transmitted (0xAC01, that would entail an activation of OUT1) through MISO line are correctly sent. Moreover, we have changed SPI mode, frequency, mode of sending the bits…but nothing happens. I am not able to switch on/off internal mosfets after command byte writing operation. I also read fault register and get 0x0000, which indicates that no fault is present. I do not know if it is a timing issue or something else. I have changed the MCU used to act as a master, but nothing got.Thanks in advance!
Hello,I'm trying to debug a firmware in production mode using STM32cudeIDE, running on the cortex M4 on the stm32MP157F. When debugger starts it seems g_pfnVectors isn't properly created. When I stops debugger and view the dissambled code I found that it always points on the first line:No source available for "g_pfnVectors() at 0x0"Also, I had changed the linker script to be able to allocated more memory for the SDRAM using both memory regions available (at 0x10000000 and 0x30000000):MEMORY{RETRAM_interrupts (xrw) : ORIGIN = 0x00000000, LENGTH = 0x00000600SRAM1_text (xrw) : ORIGIN = 0x10000000, LENGTH = 256KSRAM2_data (xrw) : ORIGIN = 0x30020000, LENGTH = 200KSRAM3_ipc_shm (xrw) : ORIGIN = 0x10040000, LENGTH = 64KSRAM4 (xrw) : ORIGIN = 0x10050000, LENGTH = 64K}Also, here is my definition for the DT's memory reservation :Spoiler (Highlight to read)reserved-memory {#address-cells = <1>;#size-cells = <1>;ranges; /* USER CODE BEGIN reserved-memory */ mcuram2:mcuram2@1
Hello,I'm trying to debug a firmware in production mode using STM32cudeIDE, but when debugger starts it seems g_pfnVectors isn't properly created. When I stops debugger and view the dissambled code I found that it always points on the first line:00000000: bge.n 0xffffffbabut the address 0xffffffba is not assigned to my firmware; if I go to this point I got the following message: ffffffba: Failed to execute MI command: -data-disassemble -s 4294967226 -e 4294967319 -- 3 Error message from debugger back end: Cannot access memory at address 0xffffffbaHave you any suggestion on how to solve this issue??Here the memory definition of linker script:MEMORY { RETRAM_interrupts (xrw) : ORIGIN = 0x00000000, LENGTH = 0x00000298 RAM2_ipc_shm (xrw) : ORIGIN = 0x00001000, LENGTH = 0x00011000 FLASH_text (rx) : ORIGIN = 0x10000000, LENGTH = 0x00040000 RAM1_data (xrw) : ORIGIN = 0x10040000, LENGTH = 0x00020000 }and here's DT's memory reservation :reserved-
Hi,I have a problem with hanging up my board occasionally when an issue from the console reboot.I read about and the internet says this is a problem with the EMMC memory's power cycle.So I followed by a linkhttps://github.com/orangepi-xunlong/openwrt/commit/14d3a99e17f2ec6097eeef97530cba2d62c58d3c#diff-1335d7b270cc58c5342d5e2843730580bfe5d8048d765abb753050095929d85dbut still, after a few reboots my board stacked.My final message from the console is as follows [ OK ] Stopped Create Static Device Nodes in /dev. [ OK ] Reached target System Shutdown. [ OK ] Reached target Late Shutdown Services. [ OK ] Finished System Reboot. [ OK ] Reached target System Reboot. [ 32.494373] watchdog: watchdog0: watchdog did not stop! [ 32.522678] systemd-shutdown[1]: Using hardware watchdog 'STM32 Independent 0 [ 32.533457] systemd-shutdown[1]: Watchdog running with a timeout of 2min. [ 32.559399] systemd-shutdown[1]: Syncing filesystems and block devices. [ 32.687090] systemd-shutdown[1]: S
Hello. We already have a custom board based on STM32MP151CAD3 with an eMMC. The following pins are different with default eMMC pins.SDMMC2_CMD: PA0SDMMC2_D1: PB7 As not default pins are used, we need to update OTP value. Here are my result. OTP3 = 0x00000004emmc_if_id=2: SDMMC2(uses non default AFmux defined in OTP).OTP5 = 0x27A41094SDMMC2_CMD = PA0 (bits[15:0]: port0=1=GPIOA, pin0=0, afmux0=9, mode0=4=AF;pull-up;medium-speed)SDMMC2_D1 = PB7 (bits[31:16]: port1=2=GPIOB, pin1=7, afmux1=10, mode1=4=AF;pull-up;medium-speed)However, it does not work. I also trace its ROM log. Attached is log.
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.