Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
I have added all required dependencies that I am able to detect the module and allocate with udev rules as modem_1..4 . I have also added ppp feature, but despite that when i dial, it shows some error as indiscipline and here is a log from /var/log/syslogHow do i fix this ?
..
Following the tutorial on How to customize the Linux kernel I made steps as below:Create a custom layer.Add it to the build configuration in bblayers.conf.Create a fragment.config with bitbake menuconfig and put it into my-layer/recipes-kernel/linux/linux-stm32mp/5.15/ as the kernel version is 5.15.Create a my-layer/recipes-kernel/linux/linux-stm32mp_%.bbappend file as advised in the tutorial:FILESEXTRAPATHS:prepend := "${THISDIR}:${THISDIR}/${PN}:" KERNEL_CONFIG_FRAGMENTS:append = "${WORKDIR}/fragments/${LINUX_VERSION}/fragment-custom.config" SRC_URI:append = " file://${LINUX_VERSION}/fragment-custom.config;subdir=fragments "It seems that the kernel configuration wasn't applied at all, is there something that I'm doing wrong? Without the FILEXTRAPATHS line, the file couldn't be found, yocto didn't look into my-layer at all.
Hi!I hope there is someone with a little experience in this topic. We are trying to get eth0 without a PHY running.HW development decided to connect an ethernet switch (LAN9668) directly to the eth0 interface. MDIO and RGMII are connected.We are trying to describe the device-tree using the "fixed-link" property:&ethernet0 { status = "okay"; pinctrl-0 = <&ethernet0_rgmii_pins_a &ethernet0_pps_pins_a>; pinctrl-1 = <&ethernet0_rgmii_sleep_pins_a &ethernet0_pps_sleep_pins_a>; pinctrl-names = "default", "sleep"; phy-mode = "rgmii-id"; max-speed = <1000>; //phy-handle = <&phy0>; nvmem-cells = <&ethernet_mac_address>; nvmem-cell-names = "mac-address"; fixed-link { speed = <1000>; full-duplex; }; };We removed: mdio0 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy0: ethernet-phy@0 { reg = <0>; }; }; };But we are still not able to get the link up.Wi
Hi!As far as I looked into the source code, only is i2c4 is used for communication to pmic.Our custom board has an external PLL connected to i2c1. The PLL needs an initial configuraion to provide 48MHz.It would be ideal if I could do this during tf-a bl2 stage.What I have tried:Added i2c1 to the device tree:&i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins_c>; i2c-scl-rising-time-ns = <100>; i2c-scl-falling-time-ns = <7>; clock-frequency = <400000>; status = "okay"; };This is my i2c1 test code: int ret, val; struct dt_node_info i2c_info; struct i2c_handle_s *i2c = &i2c_handle; struct stm32_i2c_init_s i2c_init; uint32_t pll_i2c_addr = 0x6D; uint8_t data[18] = {0}; i2c_info.base = 0x40012000; i2c_info.status = 2; i2c_info.clock = I2C1_K; i2c->i2c_base_addr = i2c_info.base; i2c->dt_status = i2c_info.status; i2c->clock = i2c_info.clock; i2c->i2c_state = I2C_STATE_RESET; i
I need to create an application that can handle text translations with gettext() in C code.How to add localizations to the image to be generated?I added these configurations in the build recipe:ENABLE_BINARY_LOCALE_GENERATION = "1"GLIBC_GENERATE_LOCALES = "en_US.UTF-8 it_IT.UTF-8 en_GB.UTF-8 ro_RO.UTF-8 es_CO.UTF-8 es_CL.UTF-8 pt_BR.UTF-8"IMAGE_LINGUAS = "en_us it_it en_gb ro_ro es_co es_cl pt_br"With the following errors:ERROR: image-rel-1.0-r0 do_rootfs: Unable to install packages. Command 'openstlinux-5.10-dunfell-mp1-21-11-17/build/tmp-glibc/work/board-ostl-linux-gnueabi/image-rel/1.0-r0/recipe-sysroot-native/usr/bin/ apt-get install --force-yes --allow-unauthenticated --no-remove locale-base-en_us locale-base-it_it locale-base-en_gb locale-base-ro_ro locale-base-es_co locale-base-es_cl locale -base-pt_br' returned 100:Reading package lists...Building dependency tree...E: Unable to locate package locale-base-en_usE: Unable to locate package locale-base-it_itE: Unable to locate pack
Have tried building U-Boot with a few changes compared to the default ones using the STM32MP1 Android distribution.When changing the ssbl-trusted-fbemmc.img which contains the U-Boot binaries, the U-Boot start fails showing the following boot logs:/TC: OP-TEE version: 3.9.0-22-gc2249e24d (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Sun May 21 22:35:04 UTC 2023 armD/TC:0 0 check_ta_store:635 TA store: "early TA"D/TC:0 0 check_ta_store:635 TA store: "Secure Storage TA"D/TC:0 0 check_ta_store:635 TA store: "REE"D/TC:0 0 early_ta_init:248 Early TA 023f8f1a-292a-432b-8fc4-de8471358067 size 38396D/TC:0 0 mobj_mapped_shm_init:446 Shared memory address range: 2dc00000, 2fc00000I/TC: Platform stm32mp1: flavor PLATFORM_FLAVOR - DT stm32mp157f-ev1.dts.........D/TC:0 0 stm32_bsec_shadow_register:235 BSEC shadow warning: OTP lockedD/TC:0 0 check_rcc_secure_configuration:790 RCC/PWR secure hardening: TZEN enable, MCKPROT disableI/TC: Initializ
Hi,I am trying to set build configurations for baseline build but getting below error while running envsetup.sh script."Error: TEMPLATECONF value points to nonexistent directory '../../layers/meta-st/meta-st-openstlinux/conf/template"but the above directory exists and contains bblayers.conf.sample, local.conf.sample files (required to generate bblayer.conf and local.conf in build directory).templateconf.cfg is also generated in /$BUILD_DIR/conf/ directory containing '../../layers/meta-st/meta-st-openstlinux/conf/template" path.Machine Details:OS: Ubuntu 22.04 LTS VM: Virtual Box 7.0
I generated the device tree for the STM32MP135-DK to include the tlv320aic31xx audio codec connected to the sai1a port, but during the boot I get the following errors. [ 90.094282] st,stm32-sai 4400a000.sai: missing x8k parent clock: -2[ 90.155023] st,stm32-sai: probe of 4400a000.sai failed with error -2The audio codec is connected to one speaker without microphones.How can I solve the problem?Below is an excerpt from the device tree:sound: sound { compatible = "audio-graph-card"; label = "STM32MP135F-DK"; routing = "Playback", "MCLK1"; dais = <&sai1a_port>; status = "okay"; }; &i2c1{ tlv320aic31xx: tlv320aic31xx@18 { compatible = "ti,tlv320aic3120"; reg = <0x18>; ai31xx-micbias-vg = <MICBIAS_2_5V>; reset-gpios = <&gpioe 5 GPIO_ACTIVE_LOW>; HPVDD-supply = <&scmi_vdd>; SPRVDD-supply = <&scmi_vdd>; SPLVDD-supply = <&scmi_vdd>; AVDD-supply = <&scmi_vdd>; IOVDD-supply = <&a
Than try to use this board with Debian Linux + Xorg happened strange behaviour: after one hour screen disabled forever. No any warnings or errors in dmesg. This issue reproduce on kernel from STLinux (5.15.67). Also these steps make same behaviour: echo 1 > /sys/class/graphics/fb0/blank echo 0 > /sys/class/graphics/fb0/blank
Hi All.I'm attempting to build an OpenSTLinux based software using a virtual machine VMWARE UBUNTU 16.2.5 build-20904516Using the command "bitbake -v -k <my_recipe_bb_name_file>" i have the error message: " ERROR: Nothing PROVIDES '–v' "Using the command "bitbake -k <my_recipe_bb_name_file>" i have the error message: " ERROR: Nothing PROVIDES '–k' "Using the command "bitbake <my_recipe_bb_name_file>" i have not errors but the compilation after many houres fails Using the command "bitbake -c cleanall <my_recipe_bb_name_file>" i have the error message: " ERROR: Nothing PROVIDES '–c' "If I use another PC with the same virtual machine and the same "layers" folder, I have no errorsWhy? Thanks
An error appears when executing the crypto_skipher_decrypt(tfm)->decrypt(req) code inside the linux-custom directory of the buildroot. Some violation seems to occur when calling the decrypt(req) function. If I annotate that part, the error doesn't come up.I want to know the reason for the error and the solution.
Hi,I would like to make my STM32MP157 communicate with a FPGA in spi. I need to make long transfer (2-3 Mb) spi to get data acquired by the FPGA. But when I use the "spi_sync_transfer" function in my driver, I get the following kernel message:#spi_stm32 4000b000.spi: Overrun: RX data lost#spi0.0: SPI transfer failed: -5# spi_master spi0: failed to transfer one message from queueThis driver works on an ompa3 platform.I use a kernel linux 5.10, there is my device tree overlay :/dts-v1/; /plugin/; &spi2 { ifsttarhf8ch: ifsttarhf8ch@0 { compatible = "ifsttar,ifsttarhf8ch"; reg = <0>; spi-max-frequency = <100000000>; interrupt-parent = <&gpioi>; interrupts = <9 IRQ_TYPE_EDGE_RISING>; }; };and my device tree :#include "stm32mp157.dtsi" &spi2 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&spi2_pins_mx>; pinctrl-1 = <&spi2_sleep_pins_mx>; cs-gpios = <&gpiob 9 0>, <&gpioi 1 0>, <&gpi
Hi All!! I am currently using openstlinux-5.10-dunfell-mp1-21-11-17 for EV1. My idea is upgrade kernel version to 5.15 and keep u-boot-2020.10 and tf-a-2.4. My problem is that only upgrading the kernel and dtb, the kernel crashes and doesn't show any log traces (added boot.log). Is there any dependency (or API break) between kernel and bootloaders(U-boot/Tf-a)? I would like to know if it have fix
I have a small project under GPL v2 license which will not necessarily be used on STM device (maybe, but most likely not). There is a "Design Tip (DT0085)" which have some reference source code and I want to use it in my project (esp. page 7). I can't figure out which license is used in this document for the source code. Can I use the source code or it parts from DT0085 in my project?
In my device tree, we config 400KHz, but on scope we see only ~ 50Hz, and the clock seems weird. Anyone know why? &i2c1 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2c1_pins_a>; pinctrl-1 = <&i2c1_sleep_pins_a>; i2c-scl-rising-time-ns = <185>; i2c-scl-falling-time-ns = <20>; clock-frequency = <400000>; status = "okay"; /delete-property/dmas; /delete-property/dma-names;};
Hello,when configuring a binary semaphore with CubeIDE the parameter initial_count defaults to 1. Is there a way to tell CubeIDE to always initialize this with value 0 for my projects?regardsHerbert
Hello!I'm new at ST!I'm looking to rebuild a project I built on a SBC (rpi4), but now in a board for commercial use and mass production, as for now I bought nucleo64 - F401 for testing.The project consist on connecting a webcam, displaying photos on a OLED display, and saving photos on a usb-drive.Is this possible with Nucleo board? Or, is there any other board/way you guys recommend?I heard that the best way is definitely a Linux SoC. If so, any suggestion?Thanks, I'm open for literally any kind of advice.
Is stated on STM32MP157 datasheet's boot mode table that the MPU can be booted through UART: – USART2/3/6 and UART4/5/7/8 on default pins Nevertheless, I wasn't able to find which are the default pins for the UART interfaces, on the datasheet or reference manual. Where can I find those? STM32MP15-DISCO schematics uses UART4 pins PG11 and PB2 routed back to the Serial/USB bridge, are those UART4 by default? GPIOx_AFRH/L reset value is 0 for all ports, and no UART pin is selected on AF0.
I am trying to achieve hard real-time under 100us on the STM32MP157f-eval, specifically, on the Cortex A7 dual core.Note: I specifically target the Cortex A7 cores because the M4 is already taken for other tasks which requires much smaller latency.What I did so far is:Build the Yocto openst-linuxAdd Preempt-RT patchAdded several software: irqbalance, tuna, hiccups... to monitor and tune the system.Isolate one coreTested high-priority process, also IRQ. Tested with internal clock and external oscilloscope.Tried to disable most driversAfter all those efforts, the jitter did not improved, and I still get >1ms jitter when applying load for enough time.------------------------------My next step is to ensure that the cpu frequency is not throttled. I read https://wiki.st.com/stm32mpu/wiki/How_to_change_the_CPU_frequency but it's not yet clear to me how to check and set this.Also, most general questions found on internet don't seem to apply to this architecture.How to check that cpu freque
Hello,I am currently working with st-image-core in Yocto and attempting to remove some packages that are not necessary for our needs. While I have successfully removed a few packages, some functionality on our board has stopped working because I may have removed too much.Most of the packages I removed were from packagegroup-base-extended, which I removed completely. After checking which packages from that packagegroup were necessary to add back, I encountered an error. However, when I add packagegroup-base-extended back, the error disappears. This is confusing because I am adding fewer packages than those included in packagegroup-base-extended:ERROR: st-image-core-1.0-r0 do_image_tar: The rootfs size 1247592(K) exceeds IMAGE_ROOTFS_MAXSIZE: 753664(K)I have tried overriding IMAGE_ROOTFS_MAXSIZE in our bbapend file, but it doesn’t seem to have any effect. Is there any way to fix this error?Thank you.
I've got the STM32MP135F-DK Discovery kit yesterday; and am going stuck on setting up and using the contributed microSD. Demonstartions are not starting.My Steps so far:- STLink software is installed (WIndows10 pro). - the supplied microSD ist installed in Discovery Kit- Power is supplied to USB-C- Boot switches are set as described in Table 5 of the UM, Boot from SD card on SDMMC1. (pg.13, Table 5, Boot0: 1 / Boot1: 0 / Boot2: 1 )What going on on Display: - Screen1: "ST live.augmented"; dark, then ..- Screen2: left side "ST32 MP1" & Linux symbol ..- then display is going dark, no more responses. Reading the supplied microSD with Windows 10 only shows many empty drive letters.(I did not format the µSD, as Windows ist suggesting)My questions:1. which demonstration should I see from the base demonstration? (there are no examples at the UM)2. what steps are required to start the demonstrations?3. how is it possible to check the contents o
I have STM32CubeIDE Version: 1.12.0 and a STM32MP157F evaluation board.Created a M4 project and assigned SPI1 to it, generated the code.I then created a function to read a register:const uint16_t opcode = 0xe000; uint8_t value = 0; HAL_GPIO_WritePin(GPIOZ, GPIO_PIN_3, GPIO_PIN_RESET); HAL_SPI_Transmit(&hspi1, &opcode, 2, 100); HAL_SPI_Receive(&hspi1, &value, 1, 100); HAL_GPIO_WritePin(GPIOZ, GPIO_PIN_3, GPIO_PIN_SET);It always fails in HAL_SPI_Transmit at SPI_WaitOnFlagUntilTimeout.Any ideas on why?
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.