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,I used DP83822 instead of LAN8742 as ethernet phy in our custom pcb. I saw some comments that people can use DP83822 with small change on LAN8742 driver which belog to STM HAL Library. But i am not sure if it is possible.All the settings are tried in development board which has LAN8742 phy and it was working. But when i try my firmware on pcb, the first fault was that DMAMR->SWR bit can not be reset. According to datasheet if clock arrangement can not be arranged properly, this problem is possible to happen.I am trying to use DP83822 as RMII mode. But 'its register settings for activating 50 Mhz clock for STM32 RMII Ref Clock' should be performed, then DMAMR->SWR bit can be cleared automatically. Otherwise it fall into error.I close the control of this bit, prevent system from falling into error and then set the DP83822 register. But it does not work. Do you have an idea? Thanks for in advance.
We're planning a design that uses the STM32U5 with built-in SMPS. Our device also uses USB, and the U5 packages we have are ones where VDDUSB is bonded to VDD so we must set VDD = 3.0-3.3V for the USB transceivers to work.We have other devices on our PCB that can operate at lower voltages to save power and I was wondering if instead of tying them to VDD if we could tie them to the SMPS output (which I think is on VDD11 and I think would be the same voltage as whatever VCORE is configured to in PWR_VOSR - so somewhere around 1V).Is this a really bad idea? My gut says this might be a really bad idea, but I am wondering if it is possible.Thanks,TG
What am I missing?Also I am not thrilled that in the Packs window at the bottom right corner the "Sh..." and "Re..." columns cannot be expanded to see all of what is in those columns, and in the Component Dependencies windows indicates that all conditions are met.In the Packs window under HAL Drivers shows the grey circle with an exclamation point for SDIO, SD, and MMC, but as can be seen in the snip taken for the pinout configuration tab, SDMMC1 is active.So what am I missing???
Hi. I am currently using the STM32756-EVAL board for some embedded programming. So far, for reference, I am using:PM0253 Programming manual - STM32F7 Series and STM32H7 Series Cortex®-M7 processor programming manualUM1905 - Description of STM32F7 HAL and low-layer drivers - User manualRM0385 - STM32F75xxx and STM32F74xxx advanced Arm®-based 32-bit MCUs - Reference manualThese are all decently useful for understanding the drivers, the capabilities and limitations of STM32756-EVAL. It is, however, less useful in explaining the C code. Take this code for example:uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len) { uint8_t result = USBD_OK; /* USER CODE BEGIN 7 */ USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData; //What is hUsbDeviceFS? How does it have pClassData? if (hcdc->TxState != 0){ //If TxState in hcdc is not 0, return USBD_BUSY. What is hcdc? return USBD_BUSY; } USBD_CDC_SetTxBuffer(&hUsbDeviceFS, Buf, Len); //What does SetTxBuffer mea
Hi. I'm looking at some code built for USB_FS communications on the STM32756-EVAL board. HAL_StatusTypeDef USB_WritePacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uint8_t ch_ep_num, uint16_t len, uint8_t dma) { uint32_t USBx_BASE = (uint32_t)USBx; uint8_t *pSrc = src; uint32_t count32b; uint32_t i; if (dma == 0U) { count32b = ((uint32_t)len + 3U) / 4U; for (i = 0U; i < count32b; i++) { USBx_DFIFO((uint32_t)ch_ep_num) = __UNALIGNED_UINT32_READ(pSrc); //What is USBx_DFIFO((uint32_t)ch_ep_num)? pSrc++; pSrc++; pSrc++; pSrc++; } } return HAL_OK; }I am trying to understand what USBx_DFIFO is and have relied on the following documents.PM0253 Programming manual - STM32F7 Series and STM32H7 Series Cortex®-M7 processor programming manualUM1905 - Description of STM32F7 HAL and low-layer drivers - User manualRM0385 - STM32F75xxx and STM32F74xxx advanced Arm®-based 32-bit MCUs - Reference manualI have not found anything on USBx_DFIFO on these manuals. In that
Hello,I have a doubdt and I haven't found the solution on the internet (probably I haven't asked properly or I have been missunderstood)The thing is that I have a peripheral driver,with a function to write and read to and from SPI, and between them, I have a delay.If I have a Task, and from this task I call that function, with the delay being osDelay(), will it work, as the normal behabiour of calling osDelay from the task itself (allowing other tasks to run during the delay).Thank you so much!
HiI have a STM32H747I-DISCO boardI want to test Audio codec ( WM8994ECS/R ) with SAII didnot find an example code for it.Can I get an example code for Audio Codec with IOC file
..
I just bought a STM32G071B-DISCO because I was looking at using an ST32 in my USB-C application and I'd hoped this could be an analyzer and a starting point. However it constantly disconnects and loses contact with the board. No refreshing brings it back. Only once did I get it to trace a USB-C PD connection but then a few minutes later it's back to no connect. Do these just not work well or is there some magic I'm missing? So far it's been a pretty disappointing start.
hello!USB Clock Not surport PLLI2SQ?
USBD_CUSTOM_HID_SendReport(...) returns USBD_OK but nothing being send when code is generated with firmware version 1.12.1, but this function works without any problem in firmware 1.12.0
Hi, I'm trying to output sound on my touchGFX application on STM32H747I-DISCO. I used the BSP example from STM32Cube_FW_H7_v1.11 ( wich work fine) to implement the same process in a thread in my main code.So as a first step, i expect to loop the example .bin sound of the exemple while my touchGFX app is running.-Initialisation of the SAI through BSP_AUDIO_OUT_Init() seems to work fine and return no error. -So i use ST-LINK utility to flash the .bin file.My probleme is, when calling BSP_AUDIO_OUT_Play(), a noise is loop on the jack output, and the debug enter in a infinite loop due to Unexpected Interrupt, so the TouchGFX app is block. My guess would be that i didn't register well the callback fonction of the DMA used to fill the SAI, so I tried to implement BSP_AUDIO_OUT_TransferComplete_CallBack(), BSP_AUDIO_OUT_HalfTransfer_CallBack() and DMA1_Stream0_IRQHandler(), but none of them seems to be called when using debugger. Would you have an advice or a hint ?Thanks, PE
Hello, I wonder if it exists a basic example or application note illustrating how to configure the USB_OTG peripheral (host mode) of Stm32u5xx mcu as virtual port."Device USB" is anymore available under Middleware in STM32CubeMx and the USBx stack is integrated with Azure that is excluded from my application as customer prefers FreeRTOS.Thank you for giving me some hints
Hi, I'm using STM32F429 to build a prototype. I found my board couldn't enter the USB bootloader mode. What I found was: Connect Boot0 to 3.3V via 100k ohm resistor, no pull down on Boot0. The MCU could enter USB bootloader mode properly. I can see a USB bootloader in the device manager (windows)Connect Boo0 to 3.3V via 1k ohm resistor, and add 100k pull down on Boot0. The MCU is stuck in a state where the USB bootloader is not enumerated on a machine. I couldn't really figure out the difference between these. Any thoughts?The issue was the BOOT1 pin is not terminated properly. Thanks,
Hi, I'm trying to write i2c ISR by myself with LL. But after START condition address don't transfer(I see it in my oscilloscope), although I write to I2C1->DR address of slave and read reference manual with attention for proper handling.I generate initialization code with CubeMX, so there should not be errors in this part.Here's my code of freertos task:oid i2cLCD(void *arg) { // just FreeRTOS task while (1) { // wait for button to be pressed xEventGroupWaitBits(btnE, BUTTON_TASK_BIT, pdTRUE, pdTRUE, portMAX_DELAY); //enable i2c event interrupt LL_I2C_EnableIT_EVT(I2C1); // generate start condition LL_I2C_GenerateStartCondition(I2C1); //wait for transfer to complete xEventGroupWaitBits(btnE, I2C_TASK_BIT, pdTRUE, pdTRUE, portMAX_DELAY); i2c_data = i2c_data ^ 0xff; } }Here's code of ISR:void I2C1_EV_IRQHandler(void) { static BaseType_t wake = pdFALSE; if (I2C1->SR1 & I2C_SR1_SB) { I2C1->DR = 0x4e; //address of pcf8574 return; } if (LL_I2C_IsActiveFla
Hi,I prototype the use the USB virtual com port on a STM32F407 Discovery board andit worked without any problem. I then repeated the exercise on our custom board(STM32L4P5VGT6), the first stage was just transmitting it worked without aproblem. Now adding the exactly the same code for receiving I used on theSTM32F407 board, when the USB cable is plugged in the USB is enumeratedcorrectly under Windows 10, but I cannot connect to it with my terminal program.It behaves same with different terminal programs and on different computers.After a couple minutes Windows 10 reports a problem with the USB device justplugged in.The receiver I added is:static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len){ /* USER CODE BEGIN 6 */ USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]); USBD_CDC_ReceivePacket(&hUsbDeviceFS); memset (USBrxbuffer, '\0', 64); // clear the buffer rxlen = (uint8_t)*Len; memcpy(USBrxbuffer, Buf, rxlen); // copy the data
I am working with several STM32, let's focus on the STM32L4P5. I wrote a windows utility which does a nice job of loading code with the bootloader, per the AN3155 documentation. It is nicely robust, and I've been using it for a couple months. I want to add the capability of selecting to protect or unprotect readout with a user selection. I send the 0x92+0x6D to unprotect, then write the code, and the code executes just fine, but hooking up the J-link re-erases everything, indicative of protection being set.Has anybody used this successfully?
Hello,I'm working on a NucleoF746ZG, for the past week i'm unable to communicate with board tought UART.The problem seems to be that HAL_UART_Init(&huartX) return 0 which means that the UART is not initialized.I tried to check if it was a hardware problem with a previous work and the UART is prefectly fine.So i tried to check with a brand new code generate with MX with no modification except the USART6 on pin PG14 & PG9 and the clock (i tested also the basic clock config did't work)There code send "Hello\r\n\0" to my board and blink the redled if the state return by HAL_UART_Transmit is 0There is the main:int main(void){ HAL_Init(); /* Configure the system clock */ SystemClock_Config(); MX_GPIO_Init(); MX_ETH_Init(); MX_USART3_UART_Init(); MX_USB_OTG_FS_PCD_Init(); MX_USART6_UART_Init(); HAL_UART_StateTypeDef uartState = HAL_UART_GetState(&huart6); uint8_t * ping = "Hello\r\n\0"; uint16_t len = strlen((char*) ping); while (1
I have an ADC+DMA read that can performs at 4Mbytes/second.The conv is 12 bit, clock division is 1_of5. On the callback DMS interruptsI send half data's to USB using CDC_Transmit_HS. The ADC buffer is 1K. I Also tried 2, 4, 8, 16k. I played with the clock division for ADC andconversion cycles to tweak the ADC speed up to the point the . CDC_Transmit_HS returns USB_BUSY. The maximum rate I could achieve was 592896 bytes /second, (no send errors) I guess with division 1 and 3conv_5 cycles. The host was Linux and Windows (same cutt of speed)My target is 1M bytes/second as the USB can go up to 40Mbits /second -> 3Mbytes/second.Where I am wrong here ?void HAL_PCD_MspInit(PCD_HandleTypeDef* pcdHandle) { GPIO_InitTypeDef GPIO_InitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; if(pcdHandle->Instance==USB_OTG_HS) { /* USER CODE BEGIN USB_OTG_HS_MspInit 0 */ /* USER CODE END USB_OTG_HS_MspInit 0 */ /** Initializes the peripherals clock */ PeriphClk
Hello,We are designing a board with an STM32H7B0VBT6 and USB3320 USB HS-transceiver. The MCU will run at VDD=1.8V. In AN5307, p. 11 it is written:"On some packages neither the VDD33USB pin, nor the VDD50USB pin are available, it is the VDD pin which supplies the VDD33USB through an internal connection. In this case, VDD is constrained by VDD33USB and must range between 3.0 V and 3.6 V."The package that we use does not have these pins. However, I expect that the statement above only applies when using the internal FS transceiver, which we are not: We are using an external HS-transceiver through ULPI.Is it correct to assume then that in our situation we can use VDD=1.8V?
Has anyone been able to convert a TouchGFX project from FreeRTOS to Azure RTOS by simply using the freeRTOS compatiblity module provided, then changing the oswrapper files to use non-CMSIS calls (pure FreeRTOS API) and no other changes? This would be good for our multi-CPU project that has FreeRTOS but not CMSIS.See: https://github.com/azure-rtos/threadx/tree/master/utility/rtos_compatibility_layers/FreeRTOS
Hello all. If I create a threadX build for say STM32L496QGI3Will I be able to use the same build in the entire STM32 line? Or just SMT32L's ?At what point do I need to build again?thanks
Hi,I'm trying to understand the purpose of CDC_RNDIS_Itf_Process in usbd_cdc_rndis_if_template.c. The @brief for this function is the same as CDC_RNDIS_Itf_Receive function, which I think is incorrect. I can't find any calls to this function ( USB_CDC_RNDIS_ItfTypdef -> Process(...) ) in any of the library code, so I'm not sure about it's purpose.What is the purpose of this function?from:STM32_USB_Device_Libarary / Class / CDC_RNDIS / Src / usbd_cdc_rndis_if_template.c/** * @brief CDC_RNDIS_Itf_Receive * Data received over USB OUT endpoint are sent over CDC_RNDIS interface * through this function./** * @brief CDC_RNDIS_Itf_Process * Data received over USB OUT endpoint are sent over CDC_RNDIS interface * through this function.
I can invoke the ROM bootloader on the STM32U575ZI both by pulling PH3 to 3v3 at boot and I can then connect STM32CubeProgrammer using USART1 PA9, PA10 as described in AN2606. However the STM32U5 does not enumerate via the USB-C connector on the Nucleo board.I have verified that VDDUSB is supplied (DVM measures 3v3 on SB30).Does anyone have any ideas why the ROM bootloader will not enumerate with my PC ? Thanks.I should add that the STM32U575 Nucleo enumerates with my PC just fine via the USB-C connector when my application is running on it - so I don't think that there is a fundamental electrical problem.
Greetings !I am working on STM32H743 and I could able to up Ethernet using LwIP. But I am not able to enable and ping Ethernet with ThreadX (Trying sample TCP echo server application). Requesting procedures / suggestions to achieve the same.Thanks in Advance
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.