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
Hi everyone,I’m experiencing unexpected behavior while testing 9-bit SPI on an STM32, observed with a logic analyzer. The issue only occurs when the MOSI line is physically connected to the slave.Observations::keycap_1: MOSI not connectedCS and SCLK are correctMOSI stays highSPI decoder shows 0x1FF Expected behavior for a floating MOSI line:keycap_2: MOSI connected to the slaveMOSI data becomes correctBut a very brief rising edge (glitch) appears on CS during data transmissionCS immediately returns active → causes unintended slave deselectionResult: data loss during the SPI frameAdditional info:STM32 model: stm32u5g9j-dk2SPI mode: 9-bit, masterSCLK frequency: 10 MHzIs this a known issue with 9-bit SPI on STM32?Should I add a pull-up/pull-down on CS or MOSI?Any other suggestions to avoid this glitch?Attached are screenshots showing the behavior.Thanks in advance for your help!MOSI connectedMOSI not connected
Hi Team, Urgent help required!! Today I have update my CubeIDE to the latest version, before the update i have had several projects saved, but none of it is launching in CubeIDE, when i click on the .IOC file from CubeIDE it opens on CubeMX and when i clock on generate code it says "The Code is successfully generated under :C:/Users/S****** H******/STM32CubeIDE/workspace_1.16.0/Door Module Testing" and as soon as i click on Open Project it goes to CubeIDE and shows main.c file. When I try to open the .IOC in CubeIDE it redirects to CubeMX again, a never ending loop has formed. Attaching screenshots for your review. Someone from ST Electronics please look into my issue and give me a quick fix or a workaround. Regards, Prateek
Bonjour,Je travaille sur une carte STM32U5G9J-DK2 avec ThreadX + USBX (Host Mass Storage) et TouchGFX.Mon objectif est simple ::backhand_index_pointing_right: lire le contenu d’une clé USB (fichiers / répertoires) lorsqu’elle est connectée en USB Host.Cependant, dans STM32CubeU5, j’ai constaté que :Le système de fichiers a été migré de FATFS vers FileXLes exemples FileX fournis concernent principalement SDMMC / Flash / QSPIJe ne trouve aucun driver FileX officiel pour USB Host Mass StorageLorsque j’essaie d’utiliser FileX avec USBX Host MSC, j’obtiens des erreurs de compilation et d’architecture :absence de fx_stm32_disk_driverincompatibilité entre UX_HOST_CLASS_STORAGE et fx_media_opentypes FileX (FX_DIR, etc.) non reconnus:backhand_index_pointing_right: Ma question est donc la suivante :Existe-t-il une solution officielle et supportée par ST pour utiliser FileX avec USBX Host Mass Storage (clé USB) sur STM32U5 ?Ou bien :FATFS reste-t-il la solution recommandée pour la lecture de clé
Im trying to run SYSCLK from LSI on a STM32C011. But it appears as if the MCU is not running. I cant see anything in the datasheet that says the clock cant be used and it can be routed fine in the clock configurator. Am I missing something in the datasheet or does the HAL not support it?
Hello fellow readers,##Disclaimer##I am using a Nucleo Board, the Nucleo H7S3L8, and HAL_ERROR ist laughing me since 2 days in my face# I think you, dear reader, have heard about the SWR-Bit, which vanishes out as soon the software has restarted succesfully, everything seems perfect and you have finally the feeling you found the solution to world piece.But I am currently at the brink of insanity, because this little ******* ***** ** **** wont clear itself after I forced the reset. What do I mean specifically?HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth) { uint32_t tickstart; if (heth == NULL) { return HAL_ERROR; } if (heth->gState == HAL_ETH_STATE_RESET) { heth->gState = HAL_ETH_STATE_BUSY; #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) ETH_InitCallbacksToDefault(heth); if (heth->MspInitCallback == NULL) { heth->MspInitCallback = HAL_ETH_MspInit; } /* Init the low level hardware */ heth->MspInitCallback(heth); #else /* Init the low lev
Hello all. I'm writing an application with the NUCLEO-H563ZI board (with the intention to use later the STM32H563 into a custom board). My application will communicate with a master PC via the embedded Ethernet, exchanging process data and commands. The protocol will be, most probably, Modbus/TCP. I've been able to configure the board (I/O), run the ThreadX OS, setup and run netXDuo middleware. I set up a TCP socket server connection on the STM32, with a C# test application as a client. I can open the socket from the C# client, send ad receive TCP packets almost correctly. The TCP server on the STM32 receives a packet from the client, extract the payload (data) from it, creates a new packet, copy the payload to the new packet and then echoes back the new packet to the client. This will change in the future, of course, but for the first tests it seemed nice to get back the same data. Here I have a problem. Everything works fine if the packet payload is less than 516 bytes long; over suc
STM32G031Y8Y6TR SMT上板后 需超声波清洗 PCBA 满足MOB制程需求,清洗参数:40KHZ,6分钟,60°,有经验的大神协助回复下1.STM32G031Y8Y6TR 是否禁止超声波清洗元件2.超声波清洗参数建议多少
Hi,I can't find a way to select in MEMS Studio which MLC filters are passed FIFO and how to enalbe MLC result in FIFO.Configuration created by MEMS studio enabled MLC_FILTER_FEATURE_FIFO_EN in EMB_FUNC_FIFO_EN so I see selected MLC features in FIFO but nothing more - no filters, no results.I manually enabled MLC_FIFO_EN but MLC results didn't appear in FIFO.I tried to enable filters manually in mlc.json by adding "fifo": "true" to filters in json file, but it didn't help. I've attached MLC files. Best regardsTomasz
Hi I am using Nucleo H753zi board, can I use X-CUBE-MEMSMIC1 expansion for sound source localization.
Hello ST Community, I am seeking assistance with a project generation issue using STM32 Motor Control SDK (v6.x) and the EVLSPIN32G0A1 evaluation board. The Problem: Even though I explicitly select the EVLSPIN32G0A1 board (which features the STSPIN32G0A1 / STM32G071 core) in the Motor Control Workbench, the generated .ioc file and STM32CubeIDE project target the STM32G031C8Tx instead. Consequences: Debugger Error: When attempting to flash the code, the ST-LINK GDB server returns: "Target no device found" or a Device ID mismatch because it is looking for a G031 but finding a G071 core. Configuration Mismatches: The clock tree and memory boundaries in the .ioc are being set for the G031 (64KB Flash) instead of the STSPIN32G0 (128KB Flash). What I have tried: Creating a new project in MC Workbench and selecting the board from the "Boards" tab. Configuring
I am using STM32F767 with LWIP and LAN8742 PHY.Ethernet initializes but I am facing Ping does not work reliably. This is the Schematic.
I'm trying to use GUI(STSW-L9963E=L9963_evaluation_GUI.exe) for EVAL-L9963E-MCU.I installed all the S/W which is listed in maunal for operating GUI.And I have set all things needed, I think.If I connect the board and start a GUI, COM port turns on green 'ack' in gui and firm ware is also OK. But when I click 'configure IDs' button(step 3 in manual below), ack for configure IDs becomes red.What should I check on board or s/w setting?
Hey!I'm working on implementing USB host functionality on the STM32U545 using the USB_DRD_FS peripheral. I've got the basic structure working, but I'm stuck at the enumeration stage, where the device responds with NAK to SETUP packets and enumeration never completes.As I'm using the dev boad which has no power, I'm using an external 5V supply on USB VCC and GND pins to use host mode.I ahve been trying the stm32u5xx_hal_hcd HAL file to get it working. Here's how I'm doing it:First, I'm keeping these structures:typedef struct { uint8_t dev_addr; uint8_t ep_addr; uint8_t ep_type; bool in_use; } channel_info_t; static channel_info_t _channel_info[FSDEV_EP_COUNT]; static uint8_t find_free_channel(uint8_t dev_addr, uint8_t ep_addr) { for (uint8_t i = 0; i < FSDEV_EP_COUNT; i++) { if (!_channel_info[i].in_use) { return i; } } return 0xFF; } static uint8_t find_channel(uint8_t dev_addr, uint8_t ep_addr) { for (uint8_t i = 0; i < FSDEV_EP_COUNT; i++) { if (_channel_info[i].
Hi,I find even I disable Non-Secure Project's "Project References" to the secure one, the secure project still automatically build when I build the Non‑Secure one.And I find the "disable Project References" setting is work only when the 1st time build the Non-Secure Project after STM32CubeIDE open. After the 1st time build, STM32CubeIDE ignores the 'disable' setting.Snaku.
Hi,I’m developing an application on multiple STM32H563 units on the same board. Although all units use the same firmware, the logic depends on each unit’s position, so I need a way to identify which unit it is.Currently, I program the full flash memory (.bin/.elf) with STM32CubeIDE or STM32CubeProgrammer. Is there a standard or recommended way on STM32H563 to store small per-device information (like unit ID or role) separately from the main application flash, so the firmware can read it at startup? Thanks for any guidance!
Hello,I got back to my issues from this post.I was able to connect wires to SPI lines, and get the measurements to logic analyzer. These are the results:Logic2 screenshot Now i can see that the issue is the CS line, but i dont know why it is being changed to HIGH in these short pulses. The GPIO config: /*Configure GPIO pin : SPI1_CS_Pin */ GPIO_InitStruct.Pin = SPI1_CS_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(SPI1_CS_GPIO_Port, &GPIO_InitStruct);SPI Config:hspi1.Instance = SPI1; hspi1.Init.Mode = SPI_MODE_MASTER; hspi1.Init.Direction = SPI_DIRECTION_2LINES; hspi1.Init.DataSize = SPI_DATASIZE_8BIT; hspi1.Init.CLKPolarity = SPI_POLARITY_LOW; hspi1.Init.CLKPhase = SPI_PHASE_2EDGE; hspi1.Init.NSS = SPI_NSS_SOFT; hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_32; hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi1.Init.TIMode = SPI_TIMODE_DISABLE; hspi1.Init.
Hi All, In datasheet of STM32N657X0H3Q controller only power-up sequencing details are shown., Is there any power down sequencing is required?If Yes, Please suggest the document which gives complete information of power down sequencing.
My goal is to use USART6 as debug output because I haven't route the dedicated BootROM pins of the USART2.Anyway! It seems that the BootROM is trying to read my SD card. First sequence:CMD and CLK of SDMMC1 seems to be talking to the SD card in a very low speed. Here I'm talking about kHz. I don't know what they are saying. The signals are perfectly square waves.Second sequence:Suddenly the CLK become a fast sine wave. I still don't know the frequency, but it's defently much faster than the first sequence. Now, the D0 is a digital input of BootROM. This D0 looks like a sword shaped signal. I don't know if it's my configure at my osciloscope that cause this view.After the second sequence as ended. There are no more data passing between the SD card and MP257. The clock is still running at the same frequency.I don't know if the TF-A firmware has been read or not. I haven't tested the USART6.Question:Where can I find the commands/data that are passing between the SD card and the MP257
Introduction: While testing the U575 with external PSRAM connected over OCTOSPI1, certain memory test scenarios fail deterministically. Setup: Using a STM32U575, connected on OCTO-SPI1 to PSRAM (IS66WVH8M8) 8MB in size. The STM is configured in memory mapped mode, hyperbus enabled, no DMA or Cache enabled, & wrap/burst mode disabled. While testing the PSRAM using Barr tests, found that the data bus and address bus test pass, but the device test had a deterministic pass/fail behavior. The device test passed for any size as long as the test wasn't crossing the 2MB boundary. Base (start) address Size Result 0x9000 0000 2 MB Test passes (also for 0x9020k,0x9040k, 0x9060k resp.) 0x9010 0000 2MB Test fails, around 0x9020 0000. 0x9030 0000, 0x9050 0000 respectively 2MB Test fails, around 0x9040 0000 and 0x90600000 respectively. 0x901FF000 2 kB Test fails around 0x9020 0000. While debugging/analyzing code found something inter
Hello there,I'm trying to create a project for stm32h7s7 with external loader. But when i added the external loader in IOC file the all indexes were lost in editor mode. But I checked for building, i can't see any problem. I tried index -> rebuild but it could not help me
Hi!I'm working on a Trustzone enabled application in STM32U5A5 nucleo board and have some questions in my mind. I have used the configurations of the example project for the Trustzone, which you can find below: - TZEN=1 - SECWM1_PSTRT=0x0 SECWM1_PEND=0xFF meaning all 128 pages of Bank1 set as secure - SECWM2_PSTRT=0xFF SECWM2_PEND=0x0 meaning no page of Bank2 set as secure, hence Bank2 non-secure I have enabled SAU and left it with the default configuration. I've also enabled the GTZC_S. In my application, I'm using TAMP mechanism of the RTC to create an interrupt when the output signal doesn't match the input signal. First question:My application can boot from the secure app and jump to non-secure app without any problems. But in the MX generated NonSecure_Init() function, after the line SCB_NS->VTOR = VTOR_TABLE_NS_START_ADDRThe SCB->VTOR_NS register doesn't change, remains as 0x0 (according to the SFR in the debug interface). After the boot to non-secure
Hello, I am trying to record audio with external digital PDM microphones using the MEMSMIC1 example but it is not so straightforward without the nucleo expansion board. Because the CCA02M1 has a direct connection to the pc it is able to be detected as a microphone in the device manager, it is easily used through audacity. How can I implement this project and use audacity with my microphone setup if they are directly connected only to the development board (I am using nucleo-wb55rg)?
I have an ILI9341 SPI screen and a small self-made library that can display different numbers on the screen. I want to be able to update the screen (display a new number) every time there is an interrupt. I have tested the screen functions independently, and they work properly. But when I call them from the interrupt handler, they fail. The board is STM32F407G-DISC1. Timer configuration static void MX_TIM2_Init(void) { /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; /* USER CODE BEGIN TIM2_Init 1 */ /* USER CODE END TIM2_Init 1 */ htim2.Instance = TIM2; htim2.Init.Prescaler = 999; htim2.Init.CounterMode = TIM_COUNTERMODE_UP; htim2.Init.Period = 335900; htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_Base_Init(&htim2) != HAL_OK) { Error_Handler(); } sClockSourceConfig.ClockS
I have previously used a large quantity of LSM6DSV16XTR products from batch 426, and their data was completely normal. My device utilizes 16 gyroscopes simultaneously. Recently, I started using products from batch 509, and they have exhibited a peculiar phenomenon. Specifically, it includes two parts: (1) When the temperature slowly increases from -40°C to 85°C, observing the data of a gyroscope at rest, some gyroscopes show data jumps at certain temperature points (the jump temperature point varies for each gyroscope). For example, the data may jump from -0.98°/s to -0.08°/s. (2) For the same gyroscope, at the same temperature, the bias data varies significantly at different times. This phenomenon does not occur in every gyroscope, but it greatly troubles me because I cannot record and compensate for the bias data in the temperature chamber, as these biases have become highly irregular. This phenomenon did not occur in batch 426. Does anyone know why this is happening?
Our product is a space device and as a result, we've had to recently do some radiation testing of the device. In particular, focused on the STM32H755 processor that runs the board.I'm looking for any papers/references/app_notes, anything, that can help me to gather details about how the processor performs in a radiation environment.And yes, I realize this is not a rad-hard or rad-tolerant processor. 8-)Thanks.-brad w.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.