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
Hello , Is it possible to use USB Type C for charging and Power as First Priority when the Wireless Charging and battery is active respectively?Or a hardware switch or firmware is needed for this?Also please suggest the corresponding ST USB IC and wireless charging IC for this.The power requirement is 3A@5V (max).Regards,P
Hi, i'm developing a project on STM32H7A3IIK6 [cortex M7] and i'm having a problem using the I2C peripheral with the ST HAL functions. I've initialized the peripheral and enabled the Event and Error Inpterrupt with TX and RX DMA and, sometimes, i have a problem when the HAL function "I2C_Mem_ISR_DMA" [placed in stm32h7xx_hal_i2c.c] is called. If the peripheral is locked [lock and unlock of the peripheral are managed by the HAL functions] the "I2C_Mem_ISR_DMA" always fails [is not able to clean the interrupt flag] and the interrupt handler [HAL_I2C_EV_IRQHandler] is not able to detect that the "I2C_Mem_ISR_DMA" is failing [resource locked] because its return value is not checked. I think it's a bug in the H7 package. Will it be fixed in a next revision?
..
Hi all,I'm having trouble implementing audio output into a TouchGFX application for the STM32F746G-DISCO board.The TouchGFX part is done, and I also managed to include the necessary files for audio output into the project and call a function to start playing audio.However, once that function is called, it blocks everything else and the entire board becomes unresponsive. Audio is played in an endless loop and no other interaction is possible.The nearly exact same question was asked a couple of years ago already, but got no answer because of missing details:https://community.st.com/s/question/0D50X00009XkdwfSAB/bspaudiooutplay-function-stops-program-executionSo, here are some more details. I've reduced the code as much as possible.Call hierarchy:TouchGFX button pressInteraction "Call virtual function" --> in the corresponding View.cpp classView calls Presenter, Presenter Calls ModelModel has an include of "myaudio.c" and calls the PlaySound() functionClass "myaudio.c" then calls the n
Hello Everyone, I need to write sd card approximately, 300 bytes per millisecond and in parallel get these data from another devise via spi, are there some suggestions how to do?I have tried to use SDMMC1 + Freertos, but I cant communicate with sd card when RTOS enabled. Thanks.
I am using stm32f407 chip. But is Bootloader possible through usb_otg_FS? If possible, can you provide the code?
I am using the STM32F407 chip, but I have a question related to Ethernet. There is a separate parameter setting when Ethernet is set in the STM32F407ZET chip, but there is no parameter setting in the stm32f407IGT chip. Please explain why and what is the big difference between the two Ethernet communications?
Hi,I am doing a Button Box for my sim racing for controlling in game car settings. The project is very simple, is just 8 push buttons that the PC need to recognize as gamepad. So, for this project I followed the ST Tutorial of How to implement a USB device custom HID class, until there it's all ok, but when I try to change the CUSTOM_HID_ReportDesc_FS (inside usbd_custom_hid_if.c) for the computer recognize the device as a gamepad, I get the error on windows "Report Descriptor was not byte aligned." and the error code 10. I already read a lot of documentations about USB descriptors, and followed a tutorial explaining how to program the report descriptor, and used the HID descriptor tool to generate it, so can someone help me saying where is the error?/** Usb HID report descriptor. */ __ALIGN_BEGIN static uint8_t CUSTOM_HID_ReportDesc_FS[USBD_CUSTOM_HID_REPORT_DESC_SIZE] __ALIGN_END = { /* USER CODE BEGIN 0 */ 0x05, 0x01, //Usage Page (Generic Desktop) 0x09, 0x05, //Usage (Game Pad
Hey everyone,I have been using the STM32F4 for quite some time now and have used the STM32F429 Eval1 board for developing a firmware that uses the external USB3300 PHY over ULPI to achieve high speed USB transfers in device mode with the CDC (virtual com port) profile. While this works to some extent, the aim is to improve the bandwidth of the data transfers from device to the host to approximately 160Mbit/second. Since CDC emulates the old, but reliable, serial port I don't think it is meant to do these kinds of speedy transfers. If anyone has been able to get these kinds of transfer speeds out of an STM32F4 high speed USB CDC device, I would love to hear how that would be achievable since my tests show that this interface chokes after about 14KB of transferred data.When looking around I stumbled upon a video from STM with the topic: STM32 USB training - 09.3 USB CDC libusb device lab. In which they adjust a standard device CDC firmware for full-speed USB that enumerates as a virtual
Hi. I have imported a project from another PC to my PC, attempting to run this code on different hardware. When attempting to debug the project on my PC, I received the following: Disassembly: I am unsure what this means, or how to proceed. Please let me know if more information is required.My current hardware: STM32756G-EVALMy previous hardware: STM32F750
Hello Everyone I am yugentharI have one doubt how to read the data throught ethernet Protocal "using stm32f746 disco board"I am try to connect the ethernet port but i can't able to read the data in Ethernet. So any one give the example code because. I has tried all code is not working well.I am communicate with ChatGPT and search google but both us give some example code but is not working fine.so anyone give some example code or any tutorial link. I try to ping my IP address but is not pinging .
Hello All, We have been stuck with this particular issue for more than a month.For STM32H745, we have enabled only cortex M7 and it has freertos with some logic using a math library.The code runs for some time (between 30 minutes and 2 hour) and gets a hard fault.Looking at debugger it states that a "new" operation was called and it failed due to out of memory.We use __heapstats() in a background task which runs every one second.It doesn't show any leak in the memory as the free heap remains the same.Has anyone faced similar issues?Any pointers is deeply appreciated.
Hello Everyone I am trying to make AzureRTOS USBX CDC ACM work on my Nucelo H7A3ZI I am thrilled that CubeIDE now allows to select Packages like AzureRTOS_H7. I was quite successful. ThreadX is running fine. I was able to enable USBX Device CDC ACM as well. Question: Is the CubeIDE 1.12 implementation incomplete at the moment? the feature in CubeIDE is only preliminary for now? I observe, that CubeIDE 1.12 does not generate all code necessary to make CDC-ACM work. A complete folder is missing here usbx_STM32_device_controllers In addition in the user application ux device thread there is no initialization of the Hardware driver It is missing this: static VOID app_ux_device_thread_entry(ULONG thread_input) { /* USER CODE BEGIN app_ux_device_thread_entry */ USBX_APP_Device_Init(); TX_PARAMETER_NOT_USED(thread_input); /* USER CODE END app_ux_device_thread_entry */ } and this: /* USER CODE BEGIN 1 */ VOID USBX_APP_Device_Init(VOID) { /* USER CODE BE
Dear ST Community, I'm drafting a "Wireless USB-C Displayport Alt-Mode System" that is primarily intended for detethering 3rd-party USB-C DP Alt-Mode devices. There are two distinct system scenarios, though I am mainly concerned with System Design 2 using a PC as the source device (Simpler starting point): *Note:As I understand it, we want to pass all USB-C DP Alt-Mode signals from the Source Device to the Sink Device, as we essentially want to be invisible to the original interface. Questions:- What solutions can ST provide to overcome this? - Will System Design 1/2 theoretically work? And if not, why not? Kindest regards, Jack
Hello guys, I have a stm32f767 board and I have just recently started my coding journey on stm32 boards. So now I am stuck on ethernet configuration with this board. Tried to find some reference on internet but there is not much resource available. So can anyone please explain what are the steps for interfacing ethernet communication with stm32f767zit6.
Custom HID class device based on the custom HID example.What I need:Control endpoint 0 INControl endpoint 0 OUTendpoint 1 IN (0x81)endpoint 2 OUT (0x02)endpoint 3 IN (0x83)endpoint 4 OUT (0x04)Page 2012 in RM0440: “For this reason, a dedicated feature called ‘double-buffering’ can be used with bulk endpoints.I want interrupt endpoints - not bulk endpoints. FS devices should support 64 bytes packets and this is what I transmit in my initial tests.I have set USE_USB_DOUBLE_BUFFER to 0 in stm32g4xx_ll_usb.h.I allocate 64 Bytes (0x40 bytes) to each endpoint buffer.The attached files are outputs with different combinations of pmaadress and endpoints conififured as seen below for each output.Output 1:In usbd_conf.c, USBD_LL_Init() function I set the following: /* USER CODE BEGIN EndPoint_Configuration */ HAL_PCDEx_PMAConfig((PCD_HandleTypeDef*)pdev->pData , 0x00 , PCD_SNG_BUF, 0x18); HAL_PCDEx_PMAConfig((PCD_HandleTypeDef*)pdev->pData , 0x80 , PCD_SNG_BUF, 0x58);&n
Hello,I am working on a rechargeable battery powered device that includes a STM32F405VGT6 and can communicate with a proprietary PC software using the internal USB HS Phy.To control the charging of the battery I included a BQ IC (BQ25882), this IC includes D+/- detection to implement BC1.2 DCD.I seem to have problems with the STM32F4 and the BQ living together on the same USB port. When the STM32F4's USB Phy (with its internal DP PU) is physically connected to the port - the DCD on the BQ is not preforming correctly. From my understanding this is due to the DP PU that interferes with the resistor divider.This seems like a common requirement for a device but I cant find any information about how to do this correctly. I may be missing something.If it matters - the STM32F4 is not connected to VBUS and not sensing it.Does anyone have any tips about including these two together?Thanks.
Currently using NUCLEO-STM32H723ZG board. I'm setting TIMER1 as a PWM output, TIMER2 set as Input Capture direct mode try to measrue the frequency output from TIMER1. Clock Configuration : APB1/ APB2 Timer Clocks 100 (MHZ)Timer 1 :Prescaler : 1-1Counter Period : 100-1PWM output Timer 2 :Input Capture direct modePrescaler : 0Counter Period: 4294967295Whenever I modify the TIMER1 output PWM over 200KHZ, I can't get the stable value or even zero from the HAL_TIM_ReadCapturedValue.I set the TIMER1 prescaler : 2-1Counter Period : 100-1 Which will generate the PWM to 100M / 2 / 100 = 500MHZ.But I got read back like this. Idealy TIMER2 run under 100MHZ( APB/PSC) should be able to capture up to 10MHZ signal. eventually I need to measure a signal up to 100MHZ, If i set the APB bus to Max frequency (137MHZ) will this method works? or is there any other way to measure it?#define TIMCLOCK 100000000 #define PRESCALER 1 uint32_t IC_Value1 = 0; uint32_t IC_Value2 = 0; uint32_t Difference
Hi All,Can somebody point me what is a reason for 2 sec delay at PHY driver for LAN8742?I mean code below at function LAN8742_Init() inside file lan8742.c.if(status == LAN8742_STATUS_OK) { tickstart = pObj->IO.GetTick(); /* Wait for 2s to perform initialization */ while((pObj->IO.GetTick() - tickstart) <= LAN8742_INIT_TO) { } pObj->Is_Initialized = 1; }I am working at project with STM32H735 and ThreadX+NetX Duo. As PHY I use KSZ8081RNA, but I found that same delay need be there as at LAN8742 driver. Without this delay Ethernet does not work. With 2 sec delay works auto-negotiation with 100MB switch, but not with 1GB switch. For 1GB switch need be there ~3 sec delay.I am not sure what is going on here. I didn't found anything related to this delay at KSZ8081 datasheet, IEEE spec for auto-negotiation or at STM32H735 errata. I will be gland for any comment.Thanks.Regards,Jan
I am wanting to sample the MP45DT02 microphone data. I am very much a beginner with this but I have cobbled together some code from some examples. Any input as to why I am not able to see any data through the DMA would be greatly appreciated. DMA_InitTypeDef DMA_InitStructure; GPIO_InitTypeDef GPIO_InitStructure; I2S_InitTypeDef I2S_InitStructure; SPI_InitTypeDef SPI_InitStructure; uint32_t ComponentsUsed; // Enable clocks ComponentsUsed = RCC_AHB1Periph_DMA1 | RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOC; RCC_AHB1PeriphClockCmd(ComponentsUsed, ENABLE); RCC_APB1PeriphClockCmd(RCC_APB1Periph_SP
STM32CubeID, Ver 1.12.0RM0454, Rev 5STM32Cube_FW_G0_V1.6.1 driversWe are using a new STM32G0B which requires we a shift to the new STM LL drivers and have come across a discrepancy with the USART ICR register drivers. RM0454 Pg 851 references bit 5 of the USART ICR register as RXFNE: RXFIFO not empty. The Low Level drivers v1.6.1 say that this bit is the TX FIFO empty flag. The drivers also declare a inline LL_USART_ClearFlag_TXFE() which uses this bit definition. Is the Reference manual correct or drivers? I'm guessing reference manual.Thanks.#define USART_ICR_TXFECF_Pos (5U) #define USART_ICR_TXFECF_Msk (0x1UL << USART_ICR_TXFECF_Pos) /*!< 0x00000020 */ #define USART_ICR_TXFECF USART_ICR_TXFECF_Msk /*!< TXFIFO Empty Clear Flag *//** * @brief Clear TX FIFO Empty Flag * @note Macro IS_UART_FIFO_INSTANCE(USARTx) can be used to check whether or not * FIFO mode feature is supported by the USARTx instance. * @rmtoll ICR TXFECF LL_USART_ClearFlag_TXFE * @param USARTx USART
Dear All:We have project based on the AMICAM1\UltrasoundFFT project and would like add algorithms in it.There are two major thread in the proect as below.First I use simulation data(different frequency tone) instead of real ADC data to test FFT algorithm in the AMICAM1\UltrasoundFFT project.The following code tell MCU to get sensor data before FFT algorithm(512 point) in AMICAM1_Thread.How to use simulation signal to replace these real ADC data in the function below.Best regards,sheng-hua
AN2606 in description of Pattern 11 entry combination appears to indicate, that there's one combination when BOOT_LOCK option bit is ignored:However, this contradicts the RM:Can ST please clarify.Thanks,JW
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.