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
Hello,I am having difficulties with the MMC bus and the external SDIO wifi module. We are using the wifi module jody-w263 from U-blox with the OSD32MP1, and the communication with the module works, but it is quite slow. The wifi module is capable of SDR 104 and DDR50 communication speeds, but I add the support to the DTS, the communication is broken and the device returns the -110 while initializing.How can I add support for higher speeds?I attach the working dts, dmesg, ios and caps, and relevant schematic.Any suggestion will be appreciated.Best regards,Tomáš.
Hello,We are using DDR3 for our baremetal application in stm32mp1.we have completed the initialization sequence followed by the application note AN5168 provided by ST.After completion of initialization sequence we are trying to write the data into DDR3, but it is getting hanged while writing i.e. it is not writing into memory. May be we might not configure the speed and size of DDR3/DRAM.Please can you help how to configure the same. By providing any hint like registers name or any link regarding the initialization.As we are working on it since long back and it is urgent to us ,So please do needful at the earliest.regards,Navaneeth Kumar
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.
Hi,I try to combine STM32MP157CAA3 with DDR3L 8Gbits density. I modified cubemx to support 8Gbit memory and recompiled the Openstlinux mp1-v22.11.23 kirkstone.The problem is that DDR3 is detected in the first stage U-Boot but not executed 2nd stage U-Boot and reboot a few times after stack. The question is do STM32MP157CAA3 support 8Gbits density DDR3 memory in one chip and if yes what is wrong?Log from boot processNOTICE: CPU: STM32MP157CAA Rev.Z NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-5.15-5 INFO: PMIC version = 0x21 INFO: Reset reason (0x15): INFO: Power-on Reset (rst_por) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using USB INFO: Instance 2 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):v2.6-dirty(a1f02f4f) NOTICE: BL2: Built : 13:14:26, Nov 23 2021 INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits
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
"Does this mean that I can only use the other three options exclude 'free' in either M4 or A7 and cannot switch between them?"
On the STM32MP157-DK1 schematic there is a note to say "WARNING - do not supply 3V3,5V from Arduino shield", even though it looks as though pin 5 on CN16 is electrically connected to 5V_VIN via a 0R resistor.It's going to be very inconvenient to use the USB-C connector from within an enclosure , so I was wondering if that was just because the board wants more power than a single pin can provide ? Or if there's another reason.There is no such note on the GPIO Expansion header (where pins 2,4 are connected to 5V_IN) - is this because there are 2 pins to share the load, or should I not power the board from the GPIO expansion header either ?
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.
The ST33xxxx with backside terminal.My question is about this back side terminal .Which is this terminal conect to GND or Vcc.OR ,Is this used open. thankyou.
I am using an STM32MP151 in linux (5.4.56) and therefore using the DTS to setup some GPIOs i need.I have difficulties setting up PUSH_PULL | PULL_UP configuration in the DTS for my GPIO, while, after linux has booted, using devmem i am successfull in altering the PUPDR for this GPIO and read the new config.In my DTS:main_ss_en-gpios = <&gpiod 13 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL | GPIO_PULL_UP)>;Howver, when i read the PUPDR register with devmem, this is all zero.In my board, this gpiobank is at 0x50005000.After Linux started up, using devmem, i can see:# devmem 0x5000500c 0x00001000while it should read 0x08001000 or 0x04001000, depending if i set PU or PD.If now i set one of those values, devmem should it correctly.I tried to look at the gpio driver, pinctrl driver, etc ... i cannot see a reason why this is not applied upon parsing the dts.Am i missing something here ?THanks,Jacques
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 am trying to transmit variables via the uart2 serial port from GY-521(mpu6050) library, however, all my attempts are unsuccessful. typedef init in the main.c:MPU6050_t sensor_data;main.c area to put HAL_UART_Transmit(): while (1) { MPU6050_Read_All(&hi2c1, &sensor_data); HAL_Delay(100); }.h needed structure variables to transmit into serial port: typedef struct{ int16_t Accel_X_RAW; int16_t Accel_Y_RAW; int16_t Accel_Z_RAW; double Ax; double Ay; double Az; int16_t Gyro_X_RAW; int16_t Gyro_Y_RAW; int16_t Gyro_Z_RAW; double Gx; double Gy; double Gz; float Temperature; double KalmanAngleX; double KalmanAngleY;} MPU6050_t;
hi st expert:I'm updating my yocto version to Ecosystem V4.1.0, but I can not compile suceess in wsl ubuntu20.04, this is error log:log.do_rootfs.23400 as follew:How should this problem be solved? thanks B&RTao
Hi,I am working on the implementation of a AI algorithm in a heat pump. My first choice was the SPEAr320 MPU: it is outdated though, it doesn't have enough resources and any FPU. Which MPU should I choose for this application ? that is to say inference and training of the AI algo.
I recently purchased a STM32MP135F-DK Board to develop a IoT application. I'm slowly learning my way though OpenSTLinux. but for a urgent need i need to develop a hand application demo. the product description says it also supports bare metal RTOS programming. I'm unable to set a C Programming environment for STM32MP135F on STM32CUBEIDE like for STM32 Micro controllers. It only open's on ST Linux development environment only. kindly guide me a way for bare metal programming on STM32MP135F.
Hi, I'm working with the STM32MP157 and I'm trying to interface it with 4 lanes DSI display. the problem is that the STM32MP157 support only DSI with 2 lanes. In the other hand, I can't program the controller of the display (JD9365DA-H3) to switch with 2 lanes display. So I want to know if the display can work with only 2 lanes instead of 4. In general, how we can interface (no programmable) 4 lanes display with STM32MP157Thank you
When debugging my firmware using STM32CubeIDE, the debugger seems to miss the start of the program. As an example, when I put breakpoints right at the top of main(), they are ignored. It's not only a couple of lines that are affected, but pretty much all the initialization etc. cannot be debugged because breakpoints there do not have an effect.It seems to me as if the program would start before the debugger is ready/active, therefore debugging is only possible with a delay.To confirm this, I put the following code at the top of main:int test = 1; while(test) { }The while-loop is not left until I manually change the value of test to 0, which then makes it possible to set breakpoints to other lines following, where breakpoints were ignored before.This is very frustrating, as it makes debugging very cumbersome.Also, if I add a specific call to my main() (HAL_DMA_DeInit()), I get the following error, which also seems to be related to gdb...?Open On-Chip Debugger 0.12.0-rc1+dev-00061-g5e9b
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?
First, build the package installed from STMicro's official website with the MACHINE name as "qemux86-64".And is it possible to display about 6 applications such as camera and video playback using demo launcher when started with "$ runqemu"?I look forward to your reply. Thank you.
Hello,I want to send in reliable way messages from M4 core to A7 core (in my case its the HW is STM32MP157 -DK2 ). The problem is that when A7 core is busy, the messages are truncated.The quesiton is how M4 core would know that A7's buffers are full?I went thru the RPmsg code api and I can see that uart driver uses the api funciton below:/** * This function sends rpmsg "message" to remote device. * * @param ept - pointer to end point * @param src - source address of channel * @param dst - destination address of channel * @param data - data to transmit * @param len - size of data * @param wait - boolean, wait or not for buffer to become * available * * @return - size of data sent or negative value for failure. * */ int rpmsg_send_offchannel_raw(struct rpmsg_endpoint *ept, uint32_t src, uint32_t dst, const void *data, int len, int wait)Which should return <0 in case of failure (I guess it cant send the message due to buffer are full).My experiment reveals that whe
Hello,I want to upgrade my hardware to new openstlinux kirkstone release november 2022.First test on eval board was successful.I have written custom device tree files and compiling for tf-a, u-boot, fip and kernel is fine.However when I try to flash my image flashlayout to my custom board I get a "ERROR: Illegal access to 0xfffffff0:"See following for complete output:NOTICE: CPU: STM32MP157C?? Rev.ZNOTICE: Model: OSD32MP1 epis shuttle sps boardINFO: PMIC version = 0x21INFO: Reset reason (0x214):INFO: IWDG2 Reset (rst_iwdg2)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using USBINFO: Instance 2INFO: Boot used partition fsbl1NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):v2.6-dirty(a1f02f4f)NOTICE: BL2: Built : 13
Hi,I have a problem with the DMA seemingly being shut down due to ADC overrun.What I want to achieve: Three ADC channels should be read indefinitely and the values should be written to memory by DMA as soon as they are ready.What's currently happening:ADC and DMA work in the beginning, so my buffer fills up with values, but shortly after the start, the values in the buffer are not updated anymore and the DMA2_Stream0_IRQHandler is not called anymore either. I suspect the problem is an overrun, as the OVR bit is set in the ADC_ISR register (value is 0x101F) and ErrorCode is set to 2.The ADC_DR registers value still changes, so the ADC itself seems to be operational, and only the DMA stopped working.When the DMA does not work anymore, the DMA_CR register value alternates between 0x440 and 0x457. NDTR is some value over 140, and the addresses in M0AR and M1AR keep changing.My code for the ADC/DMA is as follows:DMA Initialization:static void MX_DMA_Init(void) { /* DMA controller clock ena
Hello,Using a custom board loosely based on STM32mp157F-DK2we are using boot0 and boot2 pins.According to documentation,boot mode configuration is as follows;Boot Mode BOOT2 BOOT0Recov/DFU 0 0Nor 0 1Reserved(DEV) 1 0SD-Card 1 1 Whereas with our board,I get a table like this Boot Mode BOOT2 BOOT0DFU 0 0DFU 0 1Reserved(DEV) 1 &n
hello.Now I am using stm32mp157a-ev1 board and coding M4 program on stm32cubeide.However, there is a problem that the stm32cubeide stops at 70% after starting to run or debug.And can check the log for errors in metadata.2023-04-04 17:11:23,560 [INFO] LogOutputStream:77 - [STDOUT_REDIRECT] 2023-04-04 17:11:46,018 [ERROR] LogOutputStream:75 - [STDERR_REDIRECT] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".2023-04-04 17:11:46,018 [ERROR] LogOutputStream:75 - [STDERR_REDIRECT] SLF4J: Defaulting to no-operation (NOP) logger implementation2023-04-04 17:11:46,018 [ERROR] LogOutputStream:75 - [STDERR_REDIRECT] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.The OS environment is Windows 10, and the installation location is installed with the default settings.I can't proceed with the current project, so please help.
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.