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,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
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 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
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
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!
Hi,we're using STM32MP1 for our project. we have connected super cap to VBAT.our expectation is to have VBAT supply power to RTC *alone*. we dont want RAM content to be retained. so that RTC shall remain powered for long time. currently the VBAT is supplying back up power for both RAM contents & also for RTC, so we're experiencing RTC back up for just 5 hours instead of expected 5 days. Kindly help out. should we use RREN/BREN in this case?
I have done the yocto build, and i used below bitbake command to generated distribution package.bitbake st-image-weston --runall=deploy_archivesBut i have updated the sources now how to clean and rebuild the archives.used board : STM32MP135FEco system: v4.1.0With Regards,Shashi
Hello, I have an interprocessor communication problem using the OpenAMP_TTY_echo example on the STM32MP157C-EV1 board.I am tring example OpenAMP_TTY_echo, to comunicate between M4 and A7 on the STM32MP157C-EV1 board.I can't find the solution, and I need your help.I installed Linux (en.flash-stm32mp1-openstlinux-6-1-yocto-mickledore-mp1-v23-06-21.tar.gz) downloaded from:https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Populate_the_target_and_boot_the_imageand installed to the STM32MP157-EV1 with STM32 Cube Programmer V2.14.0On my PC: I am using Keil V5.36, compiled the example OpenAMP_TTY_echo without error.The example code runs without problem. either with the Tools: STM32MP1 Load and Run command, or from the Debugger.I traced the code and it runs normally in the while(1) loop of app_main (main.c)(without going through an "Error_Handler")When I execute ssh command to connect to the STM32MP157-EV1 board, it seems that none of the devices tt
Hi,my question is how to set up resolv.conf with the DNS nameserver not to lose it after reboot.Some of the manuals on the internet want to modify /etc/systemd/resolved.conf by uncomment DNS line and provide a valid ip. Unfortunately, it's not working for Openstlinux.The DNS only works when updated /etc/resolv.conf.Of course, I can update /etc/resolv.conf automatically during the system boot-up, but in my opinion this method is not too elegant.Can You have some solution for my issue?ThanksBRMichał
Hi all.In my openstlinux yocto image has been included the SGTL5000 audio codec management. I have a problem. On the headphone output I heard only a continuous pink noise.These are some information from my system:zcat /proc/config.gz | grep SGTL CONFIG_SND_SOC_SGTL5000=y:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: STM32MP1 [i.Core STM32MP1], device 0: 4400b004.audio-controller-sgtl5000 sgtl5000-0 [4400b004.audio-controller-sgtl5000 sgtl5000-0] Subdevices: 1/1 Subdevice #0: subdevice #0 :~# aplay -L null Discard all samples (playback) or generate zero samples (capture) pulse PulseAudio Sound Server default Default ALSA Output (currently PulseAudio Sound Server) sysdefault:CARD=STM32MP1 i.Core STM32MP1, 4400b004.audio-controller-sgtl5000 sgtl5000-0 Default Audio Device The command:~# speaker-test -c 0 -t sine -f 2500seems to add a "sine" signal on the output but the pink noise always remains.The command:~# amixer -c0 sset Headphone 0switch-off the signal outputHow can
Hi,My STM32MP157f-DK2 contains the OpenSTLinux image FlashLayout_sdcard_stm32mp157f-dk2-trusted.tsv. The sdcard is 16GB in size. I am unsure whether this is the right OpenSTLinux image to use when i would like to deploy a React / Electron application on the board. Does anyone have experience with running a React / Electron app on this board? The problem i am facing now is that the total free mem shown is 160MB (free -t -m) while my React package is 477MB in size. Help is appreciated.
Hi,I am working on a custom hardware based on STM32MP1 mpu and also uses some other peripherals too. For our use case, we are using Yocto Linux. I am using the pin PA12 as an input GPIO interrupt, configured to trigger for falling edge. The interrupt works fine and gets triggered whenever the pin level goes low.I need to use an led also as part of the application which is connected on-board to PD12. I opened the /sys/class/gpio/export and write the pin no. to the file and then set the direction as out in direction file.But when the GPIO pin is enabled, the interrupt is not triggering. When we disable the GPIO pin and test, the interrupt works fine. The same happens if I enable the same pin no. on any GPIO port, whether it is PB12 or PC12 or PF12. I checked the registers also but everything is fine.Can anyone help me with this issue. I am really stuck with this problem. REGISTERADDRESS VALUEEXTI_FTSR1 0x5000D004 0x00001000EXTI_RTSR1 0x5000D000 0x0EXTI_
Hello everyone.I'm trying to build an embedded openSTLinux Yocto image but I have the following error"ERROR:.. do_rootfs: No manifest generated from: <my_name_folder> in ..."Why does a similar error appears?I explain better. Previously, the build process worked fine. Then I modified a ".bb" recipe to install new files into the root file system. The new files are contained in <my_name_folder>. After doing this, the build process fails with the message error shown above. I tried to delete the new files from <my_name_folder> folder and restore the old ".bb" recipe version but the errors remain.Any suggestion?Many thanks
Hello everyone,I am working on a custom board based on stm32mp15x. I am trying to periodically wake up my system from the shutdown condition using the RTC. From the hardware point of view, I am using the STPMIC to restore the Vdd supply of the MPU, when the RTC alarm is triggered.I am using an oscilloscope to monitor the VBAT and the Vdd pins, and I can see approximately 1.8V on the VBAT pin when the system is shutdown.Looking around in this forum, I've found similar questions so I tried to patch TF-A to set the PWR_CR2 bits: PWR_CR2_RREN and PWR_CR2_BREN, but unsuccessfully. When I shutdown the system, after the RTC timer expires I obtain: (this makes me think that at least the signals are wired correctly) [ 101.016028] systemd-shutdown[1]: Powering off. [ 101.159164] reboot: Power down INFO: PSCI Power Domain Map: INFO: Domain Node : Level 1, parent_node -1, State ON (0x0) INFO: Domain Node : Level 0, parent_node 0, State ON (0x0) INFO: CPU Node : MPID 0x0, parent_node 0, State
Hi all,The development board we are using STM32MP157C-YA157C from Myirtech is running Ubuntu 18 with openstlinux.I am trying to interface the usart1 with another module but by default, the peripheral is not enabled from device tree.So, I modified the device tree as follows (pins z6 and z7 are used by usart1) according to the document of ST : usart1_pins_a: usart1-0 { pins1 { pinmux = <STM32_PINMUX('Z', 7, AF7)>; /* UART1_TX */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins2 { pinmux = <STM32_PINMUX('Z', 6, AF7)>; /* UART1_RX */ bias-disable; }; }; usart1_idle_pins_a: usart1-idle-0 { pins1 { pinmux = <STM32_PINMUX('Z', 7, ANALOG)>; /* UART1_TX */ }; pins2 { pinmux = <STM32_PINMUX('Z', 6, AF7)>; /* UART1_RX */ bias-disable; }; }; usart1_sleep_pins_a: usart1-sleep-0 { pins { pinmux = <STM32_PINMUX('Z', 7, ANALOG)>, /* UART1_TX */ <STM32_PINMUX('Z', 6, ANALOG)>; /* UART1_RX */ }; };&usart1 { pinctrl-names = "default
Hi.I have a problem with controlling the LED on the stm32mp135f-dk board.bashroot@techs:~# gpioinfo -c0gpiochip0 - 16 lines: line 0: "PA0" input line 1: "PA1" input consumer="kernel" line 2: "PA2" input consumer="kernel" line 3: "PA3" input line 4: "PA4" input line 5: "PA5" input line 6: "PA6" input consumer="kernel" line 7: "PA7" inp
Hello everyoneThe "bitbake <my_recipe>" process ends without errors but the "/usr/local/" folder of the image is empty (there are no ST demo folders and no "weston-start-at-startup" folder). Why?Thanks
This post is connected to my previous one "Display customization". I created this new post because I can't insert replies in the previous one "Display customization"I created the following patch to modify the panel-simple.c file diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 654fea2..8e4234f 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1439,6 +1439,31 @@ static const struct panel_desc innolux_zj070na_01p = { }, }; +static const struct drm_display_mode jenson_1024x600jt60396_01_mode = { + .clock = 51200, + .hdisplay = 1024, + .hsync_start = 1024 + 0, + .hsync_end = 1024 + 0 + 320, + .htotal = 1024 + 0 + 320 + 0, + .vdisplay = 600, + .vsync_start = 600 + 0, + .vsync_end = 600 + 0 + 35, + .vtotal = 600 + 0 + 35 + 0, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc jenson_1024x600jt60396_01 = { + .modes = &jenson_10
Hi All,In my currently yocto image I want to customize a LCD TFT RGB 7" 1024x600 24bpp display. At the moment, I have a dts patch file where there are all image customizations. In this file the currently display settings (LCD TFT RGB 7" 800x480) are the following panel_rgb: panel-rgb { compatible = "ampire,am800480r3tmqwa1h"; status = "okay"; power-supply = <&lcd_3v3>; //backlight = <&panel_backlight>; bits-per-pixel = <16>; bus-width = <18>; //data-shift = <0>; &nbs
We have an exception at boot time, I think it is due to the brcmf_sdio module (wifi).Do you confirm?Could you explain me what is the cause from the following lines of dmesg? After rebooting the board, the problem disappear, but we discovered that the modules related to wifi and bluetooth are no more loaded. How it can be possible? The image is created from the distribution package and activating PWM timer and LSM6DSOX on I2C, both not related to Wifi.[ 94.207699] ------------[ cut here ]------------[ 94.210967] WARNING: CPU: 0 PID: 54 at lib/refcount.c:25 kthread_stop+0x178/0x1c8[ 94.280542] refcount_t: addition on 0; use-after-free.[ 94.284308] Modules linked in: snd_soc_audio_graph_card snd_soc_simple_card_utils brcmfmac stm32_dcmipp cfg80211 st_lsm6dsx_spi brcmutil stm32_crc32 gc2145 st_mipid02 v4l2_fwnode v4l2_async stm32_cryp libdes crypto_engine videodev snd[** ] (1 of 2) A start job is running for…ilable disk space (10s / no limit)[ 94.635785] CPU: 0 PID: 54 Comm
We have an exception at boot time, I think it is due to the brcmf_sdio module (wifi).Do you confirm?Could you explain me what is the cause from the following lines of dmesg? After rebooting the board, the problem disappear, but we discovered that the modules related to wifi and bluetooth are no more loaded. How it can be possible? The image is created from the distribution package and activating PWM timer and LSM6DSOX on I2C, both not related to Wifi. [ 94.207699] ------------[ cut here ]------------[ 94.210967] WARNING: CPU: 0 PID: 54 at lib/refcount.c:25 kthread_stop+0x178/0x1c8[ 94.280542] refcount_t: addition on 0; use-after-free.[ 94.284308] Modules linked in: snd_soc_audio_graph_card snd_soc_simple_card_utils brcmfmac stm32_dcmipp cfg80211 st_lsm6dsx_spi brcmutil stm32_crc32 gc2145 st_mipid02 v4l2_fwnode v4l2_async stm32_cryp libdes crypto_engine videodev snd[** ] (1 of 2) A start job is running for…ilable disk space (10s / no limit)[ 94.635785] CPU: 0 PID:
Hello all. I would like clarification about the structure of a patch file made with the "git diff" command. First question. Are the SHA (Secure Hash Algorithm) codes contained in the file patch important? Let me explain better. Once the patch file is made, if I edit it with a text editor by adding or removing parts, the SHA codes not match with the new file content, is it right? Under these conditions, does the patch file still work correctly? Second question. To make the patch file "my_file.patch" between two files "my_file1.txt" and "my_file2.txt" I use the command git diff --no-index my_file1.txt my_file2.txt > ./my_file.patch Let suppose now to have six files named "my_file1.txt", "my_file2.txt", "my_file3.txt", "my_file4.txt", "my_file5.txt" and "my_file6.txt". What is the way to create ONE ONLY patch file that compare and patches the couples my_file1.txt/my_file2.txt, my_file3.txt/my_file4.txt and my_file5.txt/my_file6.txt?Many thanksRegards
Hello all.In my stm32mp1 linux yocto machine I'm attempting to modify the touchscreen devicetree to manage the GOODIX GT911 touchscreen driver.Before modify the devicetree is the following +&i2c2 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c2_pins_a>; + pinctrl-1 = <&i2c2_pins_sleep_a>; + i2c-scl-rising-time-ns = <185>; + i2c-scl-falling-time-ns = <20>; + status = "okay"; + /delete-property/dmas; + /delete-property/dma-names; + + polytouch: edt-ft5x06@38 { + compatible = "edt,edt-ft5x06"; + reg = <0x38>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_edt_ft5x06>; + interrupt-parent = <&gpiob>; + interrupts = <3 0>; + touchscreen-size-x = <1024>; + touchscreen-size-y = <600>; + //touchscreen-swapped-x-y; + status = "okay"; + }; + +&pinctrl { + pinctrl_edt_ft5x06: pinctrl_edt_ft5x06-0 { + pins { + pinmux = <STM32_PINMUX('B', 3, GPIO)>; + }; + };After
Hi,I have a relatively easy question for the OpenStLinux I guess.I have a correctly prepared sdk image with QT (bitbake -k st-example-image-qt and bitbake -k st-example-image-qt -c populate_sdk) but can't correctly configure weston. I have a similar configuration to the official STM32MP135DK2 with a slight difference, 24 RGB interface. My display working correctly, I can see wallpaper and play mp4, so the driver and system are configured correctly.When I try to execute my application I get something like QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' [ 1] Failed to open device: No such file or directory, Try again... [ 2] Failed to open device: No such file or directory, Try again... [ 3] Failed to open device: No such file or directory, Try again... [ 4] Failed to open device: No such file or directory, Try again... [ 5] _OpenDevice(1093): FATAL: Failed to open device, errno=No such file or directory. [ 6] Failed to open device: No suc
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.