Developer support experience survey - We value your feedback
Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.
Most recent activity
I'd like to use both FileX and USBX MSC as SD cards on stm32h573i-dk. FileX and USBX MSC worked respectively with reference to the example. USBX MSC cannot be used when using filex_media_open(). /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file ux_device_msc.c * @author MCD Application Team * @brief USBX Device applicative file ****************************************************************************** * @attention * * Copyright (c) 2024 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "ux_de
Hi,I have general question. What certified RTOS do you recommend for using in medical device running on STM32F/G/H that will be certified in accordance with IEC 62304 Class C?Best regards,KK
Hello Guys, I'm Currently working on a Project in handling USB. I got an Example GitHub code from our community for interfacing with the USB. But in that code, the while loop looks empty. I don't know how to implement Transmission and Receive the data from the host. So help me to solve this thing, guys.Link : https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H743I-EVAL/Applications/USB_Device/CustomHID_Standalone/SrcThis is the link I'm taking for the reference.
Hi all,I have a custom board, which previously used the ST32L052 processor, that I changed to STM32H5. Previously I could use the USB_Dev middleware to make it a VCOM Port and could send data without a problem to my PC. After the processor change I also started to use FreeRTOS because of a Bosch IMU sensor. The idea would be to be able to send the sensor data to the PC via VCP, however even with the “How to use legacy middleware” forum thread I can’t seem to get even a recognition from my PC that a device has been plugged in. Any help to make a VCP with H5 running FreeRTOS would be greatly appreciated! I am open for TinyUSB realisation also.
Hi,how can I check if my client in connected to pc server?--------------------------/* init code for LWIP */MX_LWIP_Init();/* USER CODE BEGIN 5 */LOCK_TCPIP_CORE();tcp_setup();UNLOCK_TCPIP_CORE();---------------------------void tcp_setup(void){uint32_t data = 0xdeadbeef;/* create an ip */ip4_addr_t ip;IP4_ADDR(&ip,192,168,1,4); //IP of my PHP server/* create the control block */testpcb = tcp_new(); //testpcb is a global struct tcp_pcb// as defined by lwIP/* dummy data to pass to callbacks*/tcp_arg(testpcb, &data);/* register callbacks with the pcb */// tcp_recv(testpcb, tcpRecvCallback);tcp_sent(testpcb, tcpSendCallback);tcp_err(testpcb, tcpErrorHandler);/* now connect */tcp_connect(testpcb, &ip, 8888, connectCallback);}---------------------------this snippet run and is OK.How can I check if the client is alwais connected to pc server?Can anyone help me?Thank you in advance.
Hi EveryoneI am starting to use FreeRTOS but faced an issue if there is someone to help. I configured USB_FS MSC. when I use MX_USB_HOST_Init(); the FreeRTOS stop and not working. but when I disable it, everything is fine.I have used the USB_FS MSC in Super loop on mode without any issue.
Hello, We are working on low-power product using STM32G030K8 MCU that has maximum HSI 16 MHz. We are trying to decrease the power consumption using several ways. One of them is to decrease the HSI clock speed before entering the sleep mode and then increase it again after exiting the sleep mode by changing the HSI clock divider as attached, but the application doesn't work well after that.Does the code have any problems that make the application doesn't work well?If it has, what is the correct way to change the clock speed at runtime before entering the sleep mode and after exiting? void EnterSleepMode(void) { __HAL_RCC_HSI_CONFIG(RCC_HSI_DIV8); __HAL_TIM_SET_PRESCALER(&htim1, 1); __HAL_TIM_SET_PRESCALER(&htim3, 1); HAL_SuspendTick(); HAL_PWR_EnterSLEEPMode(PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFI); HAL_ResumeTick(); __HAL_RCC_HSI_CONFIG(RCC_HSI_DIV1); __HAL_TIM_SET_PRESCALER(&htim1, 15); __HAL_TIM_SET_PRESCALER(&htim3, 15); } &n
Hi STM32 friends,I'm about to learn something new, because I hit a problem with STM32CubeMX 6.11.1 (newest)I have used Ethernet on several M7 platforms, not always without a bit of struggling.However, this time after configuring ETH, LWIP remains grayed out.I'm using a NUCLEO-H755ZI-Q, which has an M4 and M7 core. I use the M7 core for ETH.There are no warnings at the ETH configuration, except:"The ETH can work only when RAM is pointing at 0x24000000"So I modified the First Tx Descripter Address to 0x24000200, and First Rx Descripter Address 0x24000000.(I guess they were wrong at first: 0x30000200 and 0x30000000)The warning remains nevertheless.The problem is LWIP remains grayed out.The M7 DCache is enabled (as well as the ICache).I configured the MPU:Region 0:Address: 0x24000200Size: 16KBSubRegion: 0x0TEX: level 1Access: ALL ACCESS PERMITTEDInstruction: ENABLEShareability: ENABLECacheability: DISABLEBufferable: DISABLERegion 1:Address: 0x24000000Size: 256BSubRegion: 0x0
Source and destination parameters are incorrectly placed in the following code:stm32h7xx_hal_ospi.cLine 1496HAL_OSPI_Transmit_DMA functionif (HAL_MDMA_Start_IT(hospi->hmdma, (uint32_t)pData, (uint32_t)&hospi->Instance->DR, hospi->XferSize, 1) == \HAL_OK)
I'm running a GPS application based on @Tesla DeLorean application that he kindly shared here:https://github.com/cturvey/RandomNinjaChef/blob/main/f746g_disco_gps.c I'm now encountering a HardFault When I step into the function to load the register value I get the following:It appears to be a problem adding an entry to a queue.My initial thought is that when I'm processing the NEMA sentences one of more of the entries in the string are NULL. int size = sprintf(&Buffer,"{\"src_addr\":\"%s\",\"PDOP\":%5.2f,\"HDOP\":%5.2f,\"VDOP\":%.2f,\"Volts\":%.2f}\n","Node1", pdop, hdop, vdop,Volts); I've spent a fair bit of time looking for an easy way to understand what is going on but so far nothing useful.
I have a board that relies on flashing the MCU using the integrated bootloader via UART1.While this works well for the M7 (Bank 0x08000000), flashing the M4's Bank at 0x08100000 is not successfull.While most bytes are written okay, a small block in the beginning is always 0xFF, ranging from 0x08100040 to 0x081005BF.This is different than the binary that is written.Also, the M4 doesn't start with this binary code.When flashing the M4 using SWD, binary and flash match and M4 will run just fine.Debugging the M4 with Keil shows a program pointer at 0x0000000 and show the M4 running but ultimately crashing, writing 0xA05F0001 to all registers...I've tried different flashing tools (stm32loader.py, stm32flash, STCubeProgrammer 2.1 and 2.4) and the issue is always the same.I couldn't find this issue or something similar reported and I'm out of Ideas...I would appreciate any help!Thank you in advance!
Hi, EveryoneI use STM32F103C8T6 send data by using USB CDC. After flash program, application can run properly but after random minute(Not exceed 15 minute) I found that CPU halted.In while loop just blink LED and send data by USB CDCMy question is what can cause CPU halted and what I should inspect first. Thank you for answer and sorry for my English.
Hi,I started a post a week ago (https://community.st.com/t5/stm32cubemx-mcus/software-reset-fails-in-eth-configuration-for-lwip-with-f407/td-p/659641) that has been viewed over 60 times without any reply, for finding a solution for this issue, I would like to know more details on the workflow of the software reset in ETH configuration:HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth) { uint32_t tmpreg1 = 0U, phyreg = 0U; uint32_t hclk = 60000000U; uint32_t tickstart = 0U; uint32_t err = ETH_SUCCESS; /* Check the ETH peripheral state */ if(heth == NULL) { return HAL_ERROR; } /* Check parameters */ assert_param(IS_ETH_AUTONEGOTIATION(heth->Init.AutoNegotiation)); assert_param(IS_ETH_RX_MODE(heth->Init.RxMode)); assert_param(IS_ETH_CHECKSUM_MODE(heth->Init.ChecksumMode)); assert_param(IS_ETH_MEDIA_INTERFACE(heth->Init.MediaInterface)); if(heth->State == HAL_ETH_STATE_RESET) { /* Allocate lock resource and initialize it */ heth->Lock = HAL_U
Please, answer was anyone trying to use RTC with the G071RB microcontroller? I am powerless now. The code generated by cube does not initialize RTC. I checked the entire initialization procedure if it is consistent with the documentation. Everything is correct and does not seem to be a mistake in HAL. The problem for me in the RTC_EnterInitMode function is the line SET_BIT (hrtc-> Instance-> ICSR, RTC_ICSR_INIT) ;. The INIT bit and the INITF flag are not set so that RTC does not enter the initialization mode. I am asking for an answer because the problem is not in my code only in the code generated by the cube. Is RTC initializing for you or is the problem in my microcontroller? I will add that there is no difference which source of RTC clock will be chosen.
I'm a fresher as a Firmware engineer. I'm currently working on dataloggers. I'm using STM32U083C-DK board which contains STM32U083MCT6 MCU. I've written the code for the basic functionality of the device i.e sleep and wakeup logic using STM32CubeIDE.Now, I need to communicate with an external flash memory (W25Q32JVSIQ).Help me with integrating and modifying the necessary files in the FatFS.So, after going through some searching, I got to know that I need to integrate FatFS with my project (on STM32CubeIDE) first and then do SPI communication with the W25Q32JVSIQ.So, till now, I've done these things:I've downloaded the FatFs module (ff15.zip) from http://elm-chan.org/fsw/ff/arc/ff15.zipAnd extracted the contents to a location accessible by the STM32CubeIDE project.Copied the necessary source files (ff.c, ffsystem.c, ffunicode.c, diskio.c, ff.h, ffconf.h, diskio.h) from the FatFs source folder (ff15/source) into the STM32CubeIDE project directory.Now, what should I do?I think, I nee
I use LWIP on a STM32H7 custom board.I send command from a PC using HerculesBoard receives commands and parses them out.After I sent 16 commands, on the 16th command, pbuf_chain is called. On the first 15 commands tcp_server_handle is called. I use the example inhttps://controllerstech.com/stm32-ethernet-4-tcp-server/ I have MEMP_NUM_PBUF set to 16 and MEMP_NUMTCP_SEG set to 16. Tried to increase these parameters, didn’t help. First time Isend a command of 7 bytes, Hercules gets response of 12 bytes (from stm32 board, no issue here)Then send command CmdA of 102 bytes, Hercules gets response of 12 bytes, no issue here.Then send another command CmdB of 102 bytes, Hercules gets response of 12 bytes, no issue here.Send command 7 bytes, Hercules Hercules gets response of 12 bytesThen send command CmdA of 102 bytes, Hercules gets response of 12 bytes… 15) Then send command CmdA of 102 bytes, Hercules gets response of 12 bytes, no issue here.16) send command Cm
Why is MX_MBEDTLS_Init called twice at startup when using stm32CubeMx code generation?
In my last project, I needed to receive all the multicast packets. In order to achieve it, I used the ETH_MACFilterConfigTypeDef built-in structure with the HAL_ETH_SetMACFilterConfig built-in function. After that, I got all the multicast packets, but I couldn't ping the board. At first, I thought there was a problem with the ARP or ICMP settings, but I didn't find anything there. Then I checked the HAL function: HAL_StatusTypeDef HAL_ETH_SetMACFilterConfig(ETH_HandleTypeDef *heth, ETH_MACFilterConfigTypeDef *pFilterConfig) { uint32_t filterconfig; uint32_t tmpreg1; if (pFilterConfig == NULL) { return HAL_ERROR; } filterconfig = ((uint32_t)pFilterConfig->PromiscuousMode | ((uint32_t)pFilterConfig->HashUnicast << 1) | ((uint32_t)pFilterConfig->HashMulticast << 2) | ((uint32_t)pFilterConfig->DestAddrInverseFiltering << 3) | ((uint32_t)pFilterConfig->PassAllMulticast << 4) | ((uint32_t)((pFilterConfig->BroadcastFilter =
Hi!!!I am want to implement Emulation of EEPROM for STM32F401CCU6 Controller which is having 256kb of flash memory. but not sure of how exactly that i have to use it. I have downloaded X-CUBE-EEPROM software but in that there is no any project related to STMF4 series for reference. Can anyone provide me an example code for STM32F401 series controller.Thank you,regards,ANIL.
Hi all I am doing the research and development for a home energy management system (EMS) for smart grid applications and my prototype is in the early stage of development. My prototype is tested working fine with Ethernet IPv4 (TCP/IP). However, the IoT technology requires it to work with IPv6. Could anyone please share me a sample code for IPv6? Thank you very much in advance.
Hello, I am working on B-U585I-IOT02A board, I have downlaoed the x-cube-cellular expansion pack.It is working with bg-96 cellular modem with USE_SOCKETS_MODEM using freeRTOS.I want to use USE_SOCKETS_LWIP for my B-U585I-IOT02A board how do I configure for LwIP?Thanks in advance !!
Hello,I am running a NAND flash with STM32H7 microcontroller using FMC interface. I have referred to Using the high-density STM32F30xxD/E FMC peripheral to drive external memories datasheet for the programming purpose.While communicating with the device, I observed that whenever I read the device for the first time I get the desired data. But when I try to access it once again using different command the data section doesn't update. I read the old read data. For example,If I send the command to read the id for the first time then the ID is properly read. But then when I send the command to read the status register then the old data doesn't get updated.I even tried to reset the device before each command but the device read register doesn't update. Can you help me with this? What could be the problem?-Regards
Dear Community,I'm working on a bootloader project using an STM32L071. I was able to start the main application using the code below: void HalSys_BootMainApplication() { /* Set address to jump to*/ volatile uint32_t jumpAddress = *(uint32_t*)(0x08008000 + 4); pFunction jump = (pFunction)jumpAddress; /* Set stack pointer to new initial value, located at the start of the new application */ __set_MSP(*(uint32_t*)0x08008000); /* Jump to application */ jump(); } The main application start successfully (I get a lot of logs over UART) but apparently the interrupts are not working. After having searched for a solution in the forum, I came across the SCB->VTOR which apparently must be set correctly in the main application such that it can find the correct interrupt addresses. So in the main application's system_init, I'm setting it to 0x08008000, but then the application doesn't even start at all. Any idea?Many thanks in advance and best,Marco
hello.This is my first time using TCP communication, my first time using ESP8266, and I am barely able to follow STM32. There's something I want to make, but it doesn't work out, so I'm posting it here.After configuring the ESP8266 with the AT command (Server), if you request data from the server using the Modbus poll program on your PC, the command will be received successfully.If you look at the network traffic, it comes in like this:"ec fa bc 1e fd 74 04 7c 16 a2 d5 c5 08 00 45 0000 34 4b 33 40 00 80 06 00 00 c0 a8 02 9c c0 a802 64 e2 53 01 f6 00 0e 59 85 00 00 19 71 50 18fa f0 86 77 00 00 00 11 00 00 00 06 01 03 00 0000 0a"Looking at RxData in STM32"0d 0a 2b 49 50 44 2c 30 2c 31 32 3a 02 ef 00 00 00 11 00 00 00 06 01 03 00 00 00 0a"It comes in like this."00 00 00 11 00 00 00 06 01 03 00 00 00 0a" This is Modbus data, and the values in front are written as "\r \n + I P D , 0 , 1 2 : \v ]", but I don't know what they mean.Anyway, I analyzed Modbus data and created response data.The
Hello,We are using the Part#STM32H745XIH6 in our current product and it is going to be use in production.We are very near to release the product but at last we are facing the issue in the SD Card communication and below are the details.At power ON, SD card is detected by the STM32H745XIH6 then it check for the Mount status and it is also successfully mounted. Now STM32H745XIH6 is going to create the file SQLITE and SQLITE-PU files on SD card but the process is stopped and stay at the SD card initializing stage.We also check the SD card data but nothing is created in SD card...Please find the Image of the connections for your reference.Kindly provide the valuable suggestion to clear out the issue to move the product in production.Regards,Alpesh
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.