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,I am using Cortex A7 processor GIC V2 for Interrupt handling. I configured GICC and GICD both. I enabled timer and interrupt for timer also. After enabling timer i can able to see pending status in GICD but It is not routing to A7 core. For this what may be the reason?
Hi,I am using STM32MP153a SOC.Linux kernel version is 5.4.56 (openstlinux-5.4-dunfell-mp1-20-11-12).I would like to generate square signal of 50-200 uS on a certain GPIO every 40 ms using Linux kernel.Also ,at this point I need to read certain registers.What are my options? If there is already an example/application note on the subject,please let me know.I was looking into these options:1)I have already a working timer on my system,which is arm arch timer.It's already generating interrupts ( I can see that number of interrupts is increasing in /proc/interrupts).The question is how do I configure it to generate interrupt every 40 ms and I how do I generate callback to have my registers reading.2)TIM6/TIM12 -STM32 timer.As far as I could see,current examples - pwm,counter,trigger ,does not fit my needs , since they don't have any form of periodic interrupt.PWM example is the closest to what I need - it possibly could generate a signal that I need,but it doesn't have an option to have an
I noticed that some ST Cpus support large amounts of RAM. Does this mean that they would run Linux, too. Are there any demo boards and such. Our volumes are 100-400 per year, if we ever start building our own Linux boards.
I need to store a password for encryption in otp registers. I configured device tree in tfa:&bsec{ status = "okay"; secure-status = "okay"; enc_pass: enc_pass@0x170 { reg = <0x170 0x10>; st,non-secure-otp; };};&nvmem_layout { nvmem-cells = <&enc_pass>; nvmem-cell-names = "enc_pass";};And in uboot and kernel:&bsec{ status = "okay"; enc_pass: enc_pass@0x170 { reg = <0x170 0x10>; st,non-secure-otp; };};NVMEM is configured in kernel defconfig. I can read and write to set otp register in uboot, but i cant read data in linux.I tried this: hexdump -C -v /sys/bus/nvmem/devices/stm32-romem0/nvmemanddd if=/sys/bus/nvmem/devices/stm32-romem0/nvmem of=/tmp/fileAnd i have that error:stm32-romem 5c005000.efuse: Can't read data32 (-5)hexdump: /sys/bus/nvmem/devices/stm32-romem0/nvmem: Input/output error
Hi,I created a project in Cube-IDE . It is a simple PWM timer Project which planned to be run on A7 processor of the STM32MP1 . I established configurations in Cube-MX and generated the code into the Cube IDE. After that, I moved the .dts file which is in the kernel of the CubeIDE project into the linux kernel arch/arm/boot/dts directory. I am following this video which is a simple PWM timer project(ww.youtube.com/watch?v=XhB0rGLjl_Q&list=PLnMKNibPkDnFeV4sBarnsAtFTg7h6V-9_&index=9). However, in this video conversion of dts to dtb is not shown. The board is booted with a pre-ready .dtb file. I am trying to use the "make dtbs" command it won't work. "No rule to make target. I am also creating an another "build directory" which is located on the arch/arm/boot/build .(Another than the kernel source directory.) Should I copy the .dts file of the project into this build directory? and compile dts to dtb in this directory? And what about the Makefile ? Should I also copy this to that
..
Hello,Is there a way to access the Tamper or backup registers or the backup sram from the MCU? Or is it physically imposible to do so?Edit:I am still looking for an answer, I just saw in the RCC registers that I can enable BKPSRAM bits to:enable the peripheral for MP (RCC_MP_AHB5ENSETR) and MC (RCC_MC_AHB5ENSETR)enable the peripheral for MP (RCC_MP_AHB5LPENSETR) and MC (RCC_MC_AHB5LPENSETR) in low powerDoes this mean the MCU is able to access the BKPSRAM peripheral?Although I do not see a clock enable for the TAMP, is it the same for the tamper (and backup registers)?Best regards,Andrés
I followed the steps on the below webpage to enable Wireless on my STM32MP1. It would be great to see these instructions added to the wiki.st.com http://trac.gateworks.com/wiki/Yocto/Wireless
As we tested, from word 24 to 32, once write 0xFFFFFFFF ( all 32 bit turn to 1), is there any way to set back to 0x00000000?And same for bit 59 to 95 (free for user)?
Example I have array of bytes: 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8....when I use command STM32CubeProgram CLI command, value should be:value = 0x12345678 or:value = 0x78563412 or:value = 0x34127856I saw wiki mention about this few days ago, but could not find where it is for now.Many thanks,(we don't use load binary file from SD to 0xC0000000 and flush it to memory. We would like to use command line for 4 bytes word each time).
I cannot make the Ethernet work on my custom board (STM32MP153CA + automotive Ethernet PHY NXP TJA1101) in U-BOOT (haven't even tried loading kernel). The PHY is connected to an external 25MHz xtal. I'm working with 5-10-dunfell-mp1-21-11-17 files included on the 3.1.0 ecosystem. I tried the ecosystem 4.0.1 but got panic errors with RNG, UARTS, etc. After a few days I gave up and went back to 3.1.0After U-Boot finishes loading, I configure the ethaddr, ipaddr, gatewayip, netmask and serverip, but whatever command I send I got straightaway:STM32MP> ping 192.168.1.6--- net_loop Entry--- net_loop UDP handler set (00000000)--- net_loop ARP handler set (00000000)--- net_loop timeout handler cancelledTrying ethernet@5800a000eqos_start(dev=ddf05618):eqos_start_clks_stm32(dev=ddf05618):clk_enable(clk=ddf07290)stm32mp1_clk_enable: id clock 105 has been enabledclk_enable(clk=ddf072b0)stm32mp1_clk_enable: id clock 104 has been enabledclk_enable(clk=ddf072f0)stm32mp1_clk_enable: id clock 103 ha
here is the link to the packageSTM32MP1Dev - STM32MP1 OpenSTLinux Developer Package - STMicroelectronics
We designed original board using STM32MP153D.We cannot boot by U-boot.When booting via USB, the Hash check (hash_sha256_check) of the page in the init_runtime of opte_os fails when booting U-Boot (see console log below).The page that fails is different each time.SD Card Boot does not fail in Hash check.What is the cause and what can I do about it?I/TC: Pager is enabled. Hashes: 2848 bytesD/TC:0 0 init_runtime:467 Checking hashes of pageable areaD/TC:0 0 init_runtime:473 hash pg_idx 0 hash 0x2ffef4d8 page 0x29800000D/TC:0 0 init_runtime:473 hash pg_idx 1 hash 0x2ffef4f8 page 0x29801000D/TC:0 0 init_runtime:473 hash pg_idx 2 hash 0x2ffef518 page 0x29802000D/TC:0 0 init_runtime:473 hash pg_idx 3 hash 0x2ffef538 page 0x29803000D/TC:0 0 init_runtime:473 hash pg_idx 4 hash 0x2ffef558 page 0x29804000E/TC:0 0 init_runtime:476 Hash failed for page 4 at 0x29804000: res 0xffff000fE/TC:0 0 Panic at core/arch/arm/kernel/boot.c:478 <init_runtime>E/TC:0 0 assertion 'p->pa' failed at core/a
Hello, I use the STM32CubeProgrammer to write Stm32mp157c board boot TF card. But it fail. How can I fix this problem?
Hi,We want to develop bare metal application for Stm32mp157A processor. So we need the DDR initialization Source code in bare metal for Stm32mp157A processor. Can you help us in this.
Hi, and yet another question...We would like to perform electrical compliance testing on our USB ports. This requires each port to send a test pattern.Our board has one upstream and two downstream facing ports. The upstream port can be set into various test modes using a standard tool (USB xHSETT). Unfortunately, this is not possible for the downstream ports.Can you give me any advice, how to set a usb host port into the TEST_PACKET test mode?Regards
I followed ST wiki, success to display OTP by the command:STM32_Programmer_CLI.exe --connect port=usb1 -otp displThen I try to test writing a value to wordid 79 which currently is 0x00000000, and free for user.STM32_Programmer_CLI -c port=usb1 -otp program wordID=0x4F value=0x12345678No thing wrong, command return sucess: I display cmd again, it is till 0x00000000, even reset the board. Any one know what I am missing, please?
Hi,My test kit is STM32MP157C-DK2, the image is "st-example-image-qtwayland", the display is DSI display.I tested with procedure:1. run " /usr/share/examples/gui/analogclock/analogclock"get error message:"root@stm32mp1:~# /usr/share/examples/gui/analogclock/analogclock[ 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(1086): FATAL: Failed to open device, errno=No such file or directory."2. weston.sh stop3. run " /usr/share/examples/gui/analogclock/analogclock"get error message:"root@stm32mp1:~# /usr/share/examples/gui/analogclock/analogclockFailed to create wl_display (Connection refused)qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.This application
Problem: After configuring the OTP pins in word 3 to the following:- Primary boot source : SD-card- Secondary boot source : FMC NANDAnd flashing the FMC nand with TF-A `tfa-*-nand.stm32` in the first sector using `nandwrite -p /dev/mtd0 /mnt/boot/tf-a-stm32mp153c-*-nand.stm32`I have a working booting setup using SD-card and u-boot. I have programmed OTP in the following way:First sense the lock register:`fuse sense 0 0x10000003`Validate that the lock register is 0. If not, then it is no longer possible to write the register. This is usually a sign that the boot sources have already been set. Read the value of word `3` in bank `0`. Either it is set or not. If it is set. Do nothingIf it is not set all `0`, Do next stepRun the sense command, this must be 0 or 0x21000000`fuse sense 0 3`When the sensing is complete, and it is determined that no values in OTP word 3 is set, we can proceed with programming the fuses. We choose:- The primary boot source to = 4 SD card. These belong to bi
I've followed this walkthrough perfectly: https://wiki.st.com/stm32mpu/wiki/How_to_perform_Secure_Boot_from_Distribution_package#Distribution_package_with_signed_FIPand I get a "Not able to find "None" (socname stm32mp15) path from current BBPATH var: ..." when trying to have TF-A find the FIP signing key.Please help
I am currently running in Engineering mode. In this application I am not using Linux on the A7, so I want to enable the trace SWO output from the M4 processor.
Hi, In both SSP documents: 1) AN5510 - Overview of the secure secret provisioning (SSP) on STM32MP1 Series 2) AN5054 - Secure programming using STM32CubeProgrammer It is written that "SSP" & "HSM" tabs expect: """ Encryption key and nonce files: The encryption key and nonce file can be selected by entering their paths (absolute or relative), or by selection with the Open button. Notice that sizes must be respected (16 bytes for the key and 12 bytes for nonce). """ But when I try to do this process ("SSP" tab, still waiting for STHSMv2 to arrive) I get "Size of ssp_nonce.bin is expected to be 16 bytes" both in GUI & in CLI modes -- latest tool version (2.10) note1: when I provide a 16 byte nonce, it works note2: There are a couple of locations in AN5510 where it is written that nonce is 16 bytes or 128 bit, the rest say it is 12 bytes. Is this an error with the STM32 Trusted Package Creator tool or with the Documentation ?? Side question
Hi everyone!I see unexpected values when measuring VREFINT. The ADC measures around 1.18V, on some boards even 1.16V, which is outside the tolerance according to the datasheet: Reading the calibration value VREFIN_CAL from OTP memory returns a value of 0x5E29 (1,214V). Considering my ambient temperature of ~25°C, I would not expect the measured value to differ too much from VREFINT_CAL.I then used VREFIN_CAL to calculate VREF+ according to section 29.4.35 in RM0436:With the ADC-measurement of VINTREF, this calculates to VREF+= 2.57V. The actual voltage (measured with a multimeter) is 2.502V.All the other ADC channels are pretty accurate.My DeviceTree setup for ADC2:adc2:adc@100{ st,adc-channels = <12 13 14>; st,min-sample-time-nsecs = <50000>; assigned-resolution-bits = <16>; status = "okay"; channel@12 { reg = <12>; label = "vsense"; status = "okay"; }; channel@13 { reg = <13>; label = "vrefint"; status = "okay"; }; channel@14 {
Hello,I'm trying to trigger a conversion in a frequency of 4700 HZ. To do so I used cubeMX to configure the ADC to work at DMA circular mode and to be triggered by TIM4 trigger out event on the rising edge. I made sure to activate DMA in high priority in circular mode. I also set timer 4 on internal clock as clock source and set the TRGO at update event. in the main code I made sure to start the ADC in DMA mode and to start the timer. Yet I do not have any conversions happening and I fail to receive any data.During debugging I notice that the code goes through the DMA interrupt handler, HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma), function. But that's about it I'm new to this so I'm having a hard time trying to get this to work and I thought I might find some help here. Any help is appreciated.The ADC MX code:static void MX_ADC1_Init(void) { /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_MultiModeTypeDef multimode = {0}; ADC_ChannelConfTy
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.