Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
$ stm32mp1setup [1/3]: Apply patches Apply patches based on required configuration ERROR: not possible to apply kernel-headers/0001-stm32mp1-Align-kernel-headers-to-CK-4.19.17 on external/kernel-headers [2/3]: Load graphics libraries => Extracting data to device/stm/stm32mp1/graphics => Extracting data to device/stm/stm32mp1-kernel/gcnano-driver => Applying required patches to device/stm/stm32mp1-kernel/gcnano-driver [3/3]: Load op-tee user module sourcesWhen I try to build kernel:$ load_kernel Start loading the kernel source (Linux) ERROR: Not possible to apply patch .../build/device/stm/stm32mp1-kernel/source/patch/4.19/0001-ARM-stm32mp1-r2-MACHINE.patch, please review android_kernel.configWhen I try to make:$ make -j ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=9 TARGET_PRODUCT=aosp_eval TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7-a-neon TARGET_CPU_VARIANT=corte
When signing OP-TEE pager and pageable binaries, the information written to the BinaryType field of the STM32 header (byte 255), unless I have wrong view about semantics (teex->pager, teed->pageable) and typical values (pager->0x21, pageable->0x22), is erroneous.Signing tool command `--type teed` writes 0x21 and `--type teex` 0x22, while 0x22 and 0x21 are expected respectively.e.g., signing OP-TEE pageable binaryRegards,Otto
I am looking for an example using spi6 which is only accessible by A7 core. Explicitly how to enable it in the device tree and a quick example for sending a byte.
Hi,I've been looking at the following NAND flash to use as a "mass" memory for my MP1 project (to hold Linux and data storage during run time). Booting and setup is done via QSPI NOR Flash.https://www.mouser.fi/datasheet/2/877/datasheet_en_20181214-1484073.pdfThe NAND Flash does, however, have two sets of chip selects and Ready/Busy outputs.Is there a way to interface this with the FMC to gain access to all 16Gb of storage using the MP153C? The reference manuals do refer to multiple NCEs but I don't find them on the pin list in CubeMX.Do I just need to use ADDR[25:24] for the chip selects? And then mux the Ready/Busy outputs from the memory together to the NWAIT input on the FMC?Thank you for your help,Tero
..
Hello everyone, I'm curently working on a custom STM32MP1 board with a QSPI Nor flash. The NOR Flash seems to work perfectly in Uboot Basic after the modification we have done. The Data are MD5 checked and the SPL is at address 0x0 of the NOR Flash. Evrerything here https://wiki.st.com/stm32mpu/wiki/STM32MP15_ROM_code_overview about the Boot in Nor Flash is respected. But when we change our BOOT mode Selection, It doesn't boot. We can only mesure the CS of the NOR FLASH and we see that it is asserted once quickly shortly after reset. But that's all. My question is: Do you support only some NOR FLASH by reading the JEDEC number in ROM Code ? Best Regards, Anthony Harivel
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 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,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 have a STM32F746 discovery board and tried to compile a linux following this git:https://github.com/fdu/STM32F746G-disco_BuildrootAfter a lot of fiddling (because of file names not matching) I ended up with the files. According to wireshark the files were transmitted onto the STM32, but the screen remains white and nothing shows success.Anything I can try?Best regards
Hi, my custom board has OTG interface. So I reference the dk2 board to configure usbotg_hs as otg mode. But now, the otg interface only recognise on system starting up. It's can not recoginse the hotplug devices. Below is my dts code. My board use ID line to switch the OTG_VBUS.696 &usbh_ehci { 697 phys = <&usbphyc_port0>; 698 phy-names = "usb"; 699 status = "okay"; 700 }; 701 702 &usbotg_hs { 703 pinctrl-names = "default"; 704 pinctrl-0 = <&usbotg_hs_pins_a>; 705 dr_mode = "otg"; 706 phys = <&usbphyc_port1 0>; 707 phy-names = "usb2-phy"; 708 status = "okay"; 709 }; 710 711 &usbphyc { 712 vdd3v3-supply = <&vdd_usb>; 713 status = "okay"; 714 }; 715 716 &usbphyc_port0 { 717 st,phy-tuning = <&usb_phy_tuning>; 718 }; 719 720 &usbphyc_port1 { 721 st,phy-tuning = <&usb_phy_tuning>; 722 };Now, on my some test cases. The system only recognise after I manual rmmod and insmod the dwc2 driver module, then usb device c
STM32MP157 has a M4 core, so I am asking questions here in MCU section although the chip is belong to MPU. What I am trying to do is using M4's SPI4 to receive data at throughput of 20.6Mbits/sec, basically each SPI transition has 10.5KB block data, and each second, there are 240 transactions. Currently I am using two STM32MP157-DK2 boards and running the modified M4 core example code of SPI DMA demo. The readme.txt file from the demo has attached. what I found out is, when SPI master side clock set to be 32MHz (hspi4.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2), the slave side code crash, but it runs ok at 16MHz ((hspi4.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_4). With logic analyzer, I can see the slave side works for a while, and then MISO became all 0, and from LED flashing pattern I would see that slave side's callback of SPI transaction is not triggered anymore. Unfortunately at this moment, I haven't figure out what's proper setup for STLink to work with this board, s
Hi, I use two touch panels, one is ft5306 and another is tsc2007. These are under same i2c bus, the i2c2 controller.The ft5306 use PG8 as interrupt line. The tsc2007 use PI8 as interrupt ine. Here is my dts code for these devices.331 ft5x06: ft5x06@38 { 332 compatible = "edt,edt-ft5306"; 333 reg = <0x38>; 334 interrupts = <8 IRQ_TYPE_EDGE_FALLING>; 335 interrupt-parent = <&gpiog>; 336 interrupt-controller; 337 reset-gpios = <&gpiog 7 GPIO_ACTIVE_LOW>; 338 status = "okay"; 339 }; 362 tsc2007: tsc2007@48 { 363 compatible = "ti,tsc2007"; 364 reg = <0x48>; 365 interrupt-parent = <&gpioi>; 366 interrupts = <8 IRQ_TYPE_EDGE_FALLING>; 367 interrupt-controller; 368 gpios = <&gpioi 8 GPIO_ACTIVE_LOW>; 369 ti,x-plate-ohms = <660>; 370 wakeup-source; 371 };When the linux system startup, the tsc2007 loaded and successful. But the ft5306 driver was error.[ 6.996552] stm32mp157-pinctrl soc:pin-controller@50002000: irq line
HI, I needs use timers2 to enable the pwm function. Then it will used as pwm-backlight for LCD. I wasn't known how to write the dts file. Could you show me some example code on this function?
We are trying to establish a ethernet connection with our PCs. But we are not able to do so.Do we need to custom configure the ethernet port in order to access it?Is there any prerequisite that we need to follow?STM32MP157C DK2
Hello dear ST community,I try to test FreeRTOS on the STM32MP1 for the Cortex-M4 and I encounter a problem: I've got the following warning: "When FreeRTOS is used, it is strongly recommended to use a HAL timebase source other than the Systick" Ok, but when I try to select the systime base in the tab Pinout under SYS, the selection of TIM* is in light grey and so not available...Is there any solution ? Thank you!Best regards,Anthony
Dear all,how can the Cortex-M4 MCU (bare metal or RTOS) exchange data fast with the A7-Linux system? Can the M4 access the DDR RAM of the Linux system, like the PRU on the Beaglebone can do? In the datasheet, there is a connection between the AHB bus and the AXI bus, maked as asynchronous, so it looks like there is a DMA channel for this.I could not find an example code or project, showing a fast data exchange between the memories of M4 and A7. Does ST provide an example for this? Thanks,Michael
Hello,I understand that many STM32 support USB OTG, so they can be USB hosts.What if I want to connect more than one device? Can I connect a USB hub and control several devices at the same time?
I am trying to add a kernel module for USB serial devices following: https://askubuntu.com/questions/168279/how-do-i-build-a-single-in-tree-kernel-moduleIn order to build just the module, not a completely new kernel , I would need the Module.symvers file. Any idea where to find it?
Hi,I have followed link...https://wiki.st.com/stm32mpu/index.php/STM32MP1_Distribution_Package#Checking_the_prerequisites5.1 Initializing the OpenEmbedded build environmentPC $> DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-qt5/script???Which script has to be executed for Qt?
Hi all,yesterday I just booted the amazing STM32MP1 DK2 device with a brand new Yocto build (st-image-weston). Can't find the fw_cortex_m4.sh . Is that available just in the STM32CubeMP1_Package or maybe I need to add another layer and build for another target?
System:Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionicJava version:java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)Cube:chdir /home/jdoe/Tools/STM32CubeMX/. current dir /home/jdoe/Tools/STM32CubeMX log4j user configuration file not found: /home/jdoe/.stm32cubemx/log4j.properties Configure log4j with default settings from jar:file:/home/jdoe/Tools/STM32CubeMX/STM32CubeMX!/log4j/log4j.stm32cubemx.properties 2019-02-09 18:50:35,015 [INFO] MicroXplorer:486 - Detected Java Version = 1.8.0_201 2019-02-09 18:50:35,023 [INFO] ApplicationProperties:181 - Using Application install path: /home/jdoe/Tools/STM32CubeMX 2019-02-09 18:50:35,040 [INFO] DbMcusXml:68 - Set database path to: /home/jdoe/Tools/STM32CubeMX//db//mcu/ 2019-02-09 18:50:35,046 [INFO] DbBoardsPdsc:54 - Set plugin database path to: /home/jdoe/Tools/STM32CubeMX//db//plugins/boardmanager/ 2019-02-09 1
This is my scriptconfig load /mypath/stm32cubemx.ioc project name pango project toolchain Makefile csv pinout /mypath/stm32cubemx-pinout.csv project path /mypath project generate exitHere is the exceptionproject path /mypath java.lang.NullPointerException at com.st.microxplorer.plugins.projectmanager.engine.MainProjectManager$10.onCommandEntered(MainProjectManager.java:263) at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:155) at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:174) at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:188) at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:331) at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:414) at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:140) at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:174) at c
Posted on February 06, 2018 at 05:31I'm wondering if its possible to port the linux serial port (source code) to an STM32 platform with FreeRTOS. I realize that there exists a FreeRTOS CLI (Command Line Interface) implementation but I find it quite limited. What I'm looking for is the versatility of the linux console in regards to command handling (input and output) and echoing. At the moment I'm working on developing a terminal from scratch but not sure if that's the best way#linux #serial-port #console
Posted on October 08, 2017 at 19:47Hey guys,I want to run SNMP in uclinux, but when I type �. /SNMP�, in the following path (where I can see the name of software):/proc/netI get this error:hush: can't execute './snmp': Permission deniedNow I�m not sure if the SNMP is installed correctly or not, and if yes, how can I enter to the software environment. Actually I want to learn how to run software in uClinux.Thanks a lot.#uclinux #linux #snmp #uclinux-stm32 #net-snmp
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.