Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
I have the STM32H747I-DISCO, and am interested in connecting a larger touch display. What possibilities are there? What limit is there on display resolution? Could a 2560 x 1600 display be used for example (I do not need video. I just need larger physical format, higher resolution, and low frequency update in real time)? Where are the critical choke points on display resolution (apart from the obvious video memory)? MB1166? Elsewhere? What about connectors? Firstly there is CN1 a 60 pin connector on the back of the LCD daughterboard MB1166 which plugs into CN15 on the main DISCO board - is this a standard MIPI connector or arbitrary to this device? Are there independently produced displays with a compatible connector? The LCD itself is connected, as far as I can see, by two flex cables, a 12 pin flex connector CN2 from the display and a 6 pin flex connector CN3 from the touch screen. Could CN2 and CN3 be potentially used by an alternate larger display in place of the ex
Hi everyone,I am having trouble with the Teoseo VIC3DA GNSS module:My project is using the Teoseo VIC3DA to obtain information about GPS, gyroscope, and accelerometer, but in the default mode, I cannot see any data from the gyroscope or accelerometer. Therefore, I have tried sending the following commands:Tried to read Gyro data$PSTMDRSENMSG,31*<checksum>$PSTMDRSENMSG,30*<checksum>I even tried enabling/disabling the PSTMDRGPS message according to table CDB-ID 228 - NMEA message List 0 with the following commands:$PSTMSETPAR,1228,800000,1 (enable message PSTMDRGPS in current config)$PSTMSETPAR,1228,800000,2 (disable message PSTMDRGPS in current config)=> The Teoseo VIC3DA still does not change (I have also tried enabling/disabling other messages according to table CDB-ID 228).Only the $PSTMGETSWVER command receives a corresponding response.Additionally, I would like to provide you with the log from the GNSS module starting from the moment the Reset was triggered at attach
Hello,I have an STM32F777 with FreeRTOS and TouchGFX. An ST7789V2 display is controlled via SPI with a partial framebuffer. After a certain time the TouchGFX task gets stuck in the function “getBlockForTransfer(Rect& rect)” in the line “assert(state[sendingBlock] == DRAWN);”(File: FrameBufferAllocator.hpp).Has anyone ever had something like this? How can I isolate the error why this happens?The screenshot shows the point where the task hangs.
I need som help about constructing a FlashLayout file for CubeProgrammer. I have a template of a FlashLayout for the STM32MP1 processor. #opt Id Name Type Device Offset Binary - 0x01 fsbl-boot Binary none 0x00000000 tf-a-usb.stm32 - 0x03 fip-boot FIP none 0x00000000 fip.bin P 0x04 fsbl1 Binary mmc0 0x00004400 tf-a-sdcard.stm32 P 0x05 fsbl2 Binary mmc0 0x00044400 tf-a-sdcard.stm32 P 0x06 metadata1 FWU_MDATA mmc0 0x00084400 metadata.bin P 0x07 metadata2 FWU_MDATA mmc0 0x000C4400 metadata.bin P 0x08 fip-a FIP mmc0 0x00104400 fip.bin PED 0x09 fip-b FIP mmc0 0x00504400 none PED 0x09 u-boot-env ENV mmc0 0x00904400 none P 0x10 bootfs System mmc0 0x00984400 bootfs.ext4 P 0x11 vendorfs FileSystem mmc0 0x04984400 vendorfs.ext4 P 0x12 rootfs FileSystem mmc0 0x05984400 rootfs.ext4 P 0x13 userfs FileSystem mmc0 0x33984400 userfs.ext4 I have installed the SDK and Sources inside CubeIDE. I have two questions in this thread:1. If I want to flash my eMMC, which is connected
Hi,I'm trying to move towards developing in VSCode to not rely on VMs for the IDE. While code generation via CubeMX and flashing the device works as expected, I'm having issues trying to use the debugger on my STM32H747 DISCO board.When using the latest (v3.6.4) It kept prompting command not found error.Downgrading it to v2.1.1 seems to fix the issue and the debugger manages to run. However, it seems to always timed out waiting for the other core (CM4) to enters in stop mode. p.s. I am trying to debug the CM7 at the moment.Is there something that needs to be done on the STLink server or .ioc file to make the debugger works? Any help will be be much appreciated
I've been looking at the STEVAL-ISD01KCB, and I saw in an image that it has some capacitors between pins 8 (-DC) and 9 (+DC). What is the value of that capacitor? Is it necessary to include it? I ask because I've noticed that this capacitor slightly reduces the distance between the -DC and +DC pins.
Hi,I am facing a strange reset-related issue on my STM32WLE LoRa boards involving the SUBGHZ radio and the RF switch.My application sometimes needs to trigger an NVIC_SystemReset() or I reset the board through the NRST pin.However, a reliable reset only occurs when the SUBGHZ radio is explicitly placed into Standby mode and both TX and RX lines of the external RF switch are turned off before the reset.Here is what I observe:Working sequencePut SUBGHZ radio into Standby modeDisable the RF switch (TX = OFF, RX = OFF)Call NVIC_SystemReset()→ After reset, execution always starts correctly at flash address 0x08000000 (line 0 of my application).Non-working sequenceCall NVIC_SystemReset() while the SUBGHZ radio or RF switch is still active→ The system reset seems to occur only partially:• the CPU resets (peripheral turns visibly off), but• execution does not jump to the reset vector at 0x08000000 For the NRST-Pin. According to the reference manual, this pin needs to be pulled down for at
Hi,The memory address of the AH1B is being referenced on the memory block as 0x4000 0000 (page 67) but further in the documentation it is referenced as 0x4002 0000 (page 69) Please open an internal ticket for doublecheking and possible fix on the nex Rev. Best,Alessandro
Hello,I am in the process of designing a product which is based on the STM32-H753 and requires P/SRAM.However, I'm concerned the H753 might not support on PSRAM with QSPI, I need the PSRAM for write/read.I haven't found any application notes or examples from ST showing connection QSPI PSRAM into the STM32 only for FMC or OCTOSPI Flash.Has anyone successfully used QSPI PSRAM with STM32H7 ?Are the specific requirements or limitation I should be aware of ?(attached reference images for context):
hello when i use UART Idle interupt with DMA on STM32H743XIH6 chip,i found ,the interupt function will run imediatly when HAL_UARTEx_ReceiveToIdle_DMA(&huart2, (uint8_t *)Uart2RxBuffer, 50)run,and this is my core code MPU_Config(); // SCB_EnableICache(); // SCB_EnableDCache(); HAL_Init(); SystemClock_Config(); PeriphCommonClock_Config(); delay_init(); __HAL_RCC_BKPRAM_CLK_ENABLE(); HAL_PWR_EnableBkUpAccess(); MX_GPIO_Init(); User_GPIO_Init(); MX_DMA_Init(); MX_USART2_UART_Init(); HAL_UARTEx_ReceiveToIdle_DMA(&huart2, (uint8_t *)Uart2RxBuffer, 50); /////////////////////////////////////////////////////////////////////////// UART_HandleTypeDef huart2; DMA_HandleTypeDef hdma_usart2_rx; /* USART2 init function */ void MX_USART2_UART_Init(void) { huart2.Instance = USART2; huart2.Init.BaudRate = 115200; huart2.Init.WordLength = UART_WORDLENGTH_8B; huart2.Init.StopBits = UART_STOPBITS_1; huart2.Init.Parity = UART_PARITY_NONE; huart2.Init.Mode = UART_MODE_TX
Post spread from STM32H745: No device found on target on a custom board Hi, and thank you for your previous answer and for pointing me to RM0399 / figure 22. I am quite new to the STM32H7 power configuration, so I may have misunderstood the datasheet and reference manual. I am using an STM32H745BI with only an external 3.3 V LDO (no SMPS components on my board). In CubeMX I have changed the power configuration from PWR_DIRECT_SMPS_SUPPLY to PWR_EXTERNAL_SOURCE_SUPPLY Right now my board is wired like this: VDDx: 3.3 V, each with 100 nF decoupling VSSx, VSSA: GND VBAT: not connected VSSSMPS: GND VLXSMPS: not connected VDDSMPS: not connected VFBSMPS: not connected VCAP1 / VCAP2 / VCAP3: 2.2 µF to GND VDDLDO_1 / VDDLDO_2 / VDDLDO_3: not connected PDR_ON: 0 Ω to GND SWD is not working reliably and I suspect my power-pin connections are wrong. For a pure LDO-only supply (no SMPS hardware) could you please tell me how these pins should be connected? VBAT VDDSMPS
I’m working on a project that requires bidirectional communication between daisy-chained STM32F103C bluepill boards and an ESP8266. I’m using a master-slave architecture and UART for initial testing and prototyping. The chain has 3–6 STM32 boards. Right now I’m having trouble getting reliable two-way data transfer between the ESP8266 (master) and the STM32 boards (slaves). Can anyone help me get this working?
Hey,I tried to follow all the steps of this thread as good as possible. Still I have a faulty SAI Perpheral. The Problem is that the generatet FSYNC and BCK are too low. They are both also dependent on the PLL Frequency. For example if i set IC7 so that it has 12.288MHz the FSYNC is 2kHz (insted of 48kHz) and BCK is 512kHz (instead of 12.288 MHz).When i set IC7 to 192MHz FSYNC is 31.3kHz and BCK is about 8MHz. Also if I set any other clock channel than IC7 to feed the SAI1 Peripheral, then there won't be any FSYNC or BCK anymore. The D-Cache is working and doesn't give me an error as i followed this post: https://community.st.com/t5/stm32-mcus-embedded-software/stm32n6-using-dcache-with-freertos-and-sai-gpdma-usage/m-p/850823/highlight/true#M69398I am running everything in Appli. Here are the settings:SAI Setting: GPDMA1 Setting:
Hello, I am trying to make a write into flash driver but I am having some issues.I know that the only way to write a 1 to the memory is by clearing the whole page, but I am having issues writing 0s.By reading the manual I encountered: Bit 2 PGERR: Programming error Set by hardware when an address to be programmed contains a value different from '0xFFFF' before programming. Does that mean I can only write 0s once to each addres per page clear?If this is the case, why is that? Wouldn't I be capable of writinng indefinetly when I am not trying to write any 1 in the memory?
Hello, we have a system that consists of 12 VL53L7CX sensors each, on 4 different I2C busses and we are using an I2C address translators (LTC4316CDD) to address them all without needing to change their address dynamically. We are using ST's ULD (ultra-light driver) to interface with them.One challenge we are running into during application development, is that after we initialize all 12 sensors and start ranging, if we restart the microcontroller application we are sometimes unable to re-initialize the sensors - the `vl53l7cx_init()` call fails somewhere.Our current test setup makes it difficult to power cycle just the sensors because doing so also power cycles the host computer.My questions are:Is there an I2C register (or set of registers) that I can access to check if the sensor has been previously configured and if it's actively ranging? This would be helpful to avoid spending time re-initializing if we don't need to.Also, is there an I2C register that I can write to "reset" the se
I am sending and receiving MQTT messages. My problem is that after normally working it could be that one ACK is not been sent out to the broker which prevents him to send anymore messages to my board.I recognized that by watching the packets on the bus with wireshark and also some debug prints. My app is running it could be for hours. I can send and receive messages for a long time. But on any circumstances one ACK is not been sent to the network and stalls the whole communication with the broker. What about watching the tx interrupt coming from the eth. Any more ideas where to debug this in more detail. Thanks in advance
I'm using an STM32U5A9J-DK and I've followed this guide step-by-step https://community.st.com/t5/stm32-mcus/how-to-redirect-the-printf-function-to-a-uart-for-debug-messages/ta-p/49865From the docs https://www.st.com/resource/en/user_manual/um2967-discovery-kits-with-stm32u5x9nj-mcus-stmicroelectronics.pdf I'm seeing that the virtual port is set to USART1, so I've set it up with CubeMX which generated/** * @brief USART1 Initialization Function * @PAram None * @retval None */ static void MX_USART1_UART_Init(void) { /* USER CODE BEGIN USART1_Init 0 */ /* USER CODE END USART1_Init 0 */ /* USER CODE BEGIN USART1_Init 1 */ /* USER CODE END USART1_Init 1 */ huart1.Instance = USART1; huart1.Init.BaudRate = 115200; huart1.Init.WordLength = UART_WORDLENGTH_7B; huart1.Init.StopBits = UART_STOPBITS_1; huart1.Init.Parity = UART_PARITY_NONE; huart1.Init.Mode = UART_MODE_TX_RX; huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart1.Init.OverSampling = UART_OV
how to design the "NRST" pin about hardware?
I am using mbedtls module to verify the signature of firmware using RSA and its giving MBEDTLS_ERR_PK_INVALID_PUBKEY after parsing the public key. I am using OpenSSL for generating public and private keys the public key is generated using openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048andopenssl rsa -pubout -in private_key.pem -outform DER -out public_key.derin der format and then converted to a .h file using python -c "data=open('public_key.der','rb').read(); print('const unsigned char public_key_der[] = {'); print(', '.join(f'0x{b:02x}' for b in data), end=''); print('};'); print(f'const unsigned int public_key_der_len = {len(data)};');" > public_key.hIn the mbedtls_config.h file I have enabled the following things#define MBEDTLS_PKCS1_V15#define MBEDTLS_PK_C#define MBEDTLS_PK_PARSE_C#define MBEDTLS_RSA_C#define MBEDTLS_BIGNUM_C#define MBEDTLS_ASN1_PARSE_C#define MBEDTLS_OID_CHere is the main function I am using to parse the public
Hi,I need help to setup the DeviceTree for our custom board using STM32MP135FAE7 and TI TLV320AIC3254.I have read the Wiki about SAI and read and tried to implement SAI using these posts as reference:https://community.st.com/t5/stm32-mpus-products/stm32mp135-pcm5102a-sai1a/td-p/573289https://community.st.com/t5/stm32-mpus-embedded-software/stm32mp135-sai-missing-clock-error-at-boot-time/td-p/55114https://community.st.com/t5/stm32-mpus-products/help-in-creating-a-simple-soundcard-with-i2s-or-sai-if-necessary/td-p/568430/page/2No Luck.And also got confused about where to put the Codec. On the Wiki Page here shows codec under i2c node but on this post there is a comment from @Erwan SZYMANSKI saying that codec should be under root not I2C or I2S. How should I decide where to put it, is it depending on the IC ? What am I missing?and following those comments, I have enabled the configs related to codec in the config file and updated the kernel and they show up.CONFIG_SND_SOC_T
Hi everyone,I am currently running the DCMIPP_Continuous mode example from STM32N6Cube firmware v1.2.0. However, I am getting stuck at the function call:HAL_result = HAL_RCC_OscConfig(&RCC_OscInitStruct);RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_NONE; RCC_OscInitStruct.PLL1.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL1.PLLSource = RCC_PLLSOURCE_HSI; RCC_OscInitStruct.PLL1.PLLM = 4; RCC_OscInitStruct.PLL1.PLLN = 75; RCC_OscInitStruct.PLL1.PLLFractional = 0; RCC_OscInitStruct.PLL1.PLLP1 = 1; RCC_OscInitStruct.PLL1.PLLP2 = 1; RCC_OscInitStruct.PLL2.PLLState = RCC_PLL_NONE; RCC_OscInitStruct.PLL3.PLLState = RCC_PLL_NONE; RCC_OscInitStruct.PLL4.PLLState = RCC_PLL_NONE; HAL_StatusTypeDef HAL_result; // Have a variable to catch the result HAL_result = HAL_RCC_OscConfig(&RCC_OscInitStruct); // Catch the result if (HAL_result != HAL_OK) { Error_Handler(); }After some debugging, I found that the function returns HAL_ERROR. Earlier, this code was working fine,
This page is currently empty: How to build and debug boot project on STM32MP25 CortexM33 in STM32CubeIDEHere's how to get to the page:STM32MP2Dev | Product - STMicroelectronicsClick on the first Wiki link (9 of 9), then you get to this page:How to build and debug boot project on STM32MP25 CortexM33 in STM32CubeIDE - stm32mpu
Can someone explain how to build own custom yocto linux ?I have experience with raspberry pi, but stm32mp2 have none normal explanation.I have cloned from git scarthgap branch of poky, meta-openembedded, meta-st-stm32mp and meta-st-openlinux. Also, I have downloaded stm32mp SDK.I can't understand if cubemx project for the board is needed ?if needed how to add it if I have generated it ? I have many years of embedded programming of stm32I can't find any build machine for bitbake for stm32mp257f-ev1 ?Overall, trying to build default machine="stm32mp2" gives plenty errors, which I cannot understand.Maybe someone can provide very direct explanation for building image ?
You flipped the power on and… nothing. USB won’t enumerate. The device resets intermittently. Or ADC samples at the wrong rate. Before blaming the hardware, check the clock tree and flash latency. CubeMX gives a helpful UI, but you must interpret the numbers — PLL inputs/outputs, AHB/APB prescalers, timer clock doubling, and flash wait states or subtle configuration mismatches will bite you.The big pictureSYSCLK (system clock) drives the CPU and the AHB bus.AHB/APB prescalers split SYSCLK into peripheral bus clocks (APB1, APB2). Peripherals (UART, SPI, I2C, ADC, timers) use these derived clocks.PLLs are used to multiply/divide crystal or internal oscillator frequencies to reach the target SYSCLK and special 48 MHz domain for USB, RNG, etc.Flash latency (wait states) must be configured so the CPU can read Flash at the chosen SYSCLK. If flash latency is too low the CPU will fetch wrong instructions → crashes or strange behavior.Voltage scaling / power range often limits maximu
I tried to follow this tutorial: How to build an AI application from scratch on the... - STMicroelectronics Community , could not figure out how to enable NPU RIF, so i skipped it. I tried to debug using the FSBL main.c, the blue led did turn on, but i got the error in the screenshot when trying to launch application in FSBL main.c. Project: willisk0612/nucleo-getting-started
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.