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'm working on a setup with a STM32L452RE and want to use the USB as a CDC-Device. I want to use the internal PullUp for D+ and the VBUS-sensing. I only find very unspecific Information about what i got to do in software. Also which Pin to use (probably PA9) but i don't find any information about this in the reference manual or other documentation for the STM32L452.
I read some related topics on this community but none of them could fixes the issue.I'm currently trying to disable a USB OUT endpoint (following the steps from the Reference Manual) but the Global NAK Effective interrupt bit (GONAKEFF in USB_OTG_FS_GINTSTS) is never set, after I set the USB_OTG_DCTL_SGONAK bit in USB_OTG_FS_DEVICE_DCTL while the interrupt is masked (as it is supposed to be, according to the doc). Is there some thing I'm missing to disable properly the endpoint ? Thank you in advance
The CSTF bit definition for ETH_MACCR register is missing from all CMSIS header definition files for F7, F4 and F2 series MCUs with ETH peripheral. F1 series doesn't have this bit or at least it isn't documented in the reference manual. I guess for F1 it is not an error of the reference manual, SVD files and header files and the hardware actually doesn't have this feature?This bit enables a feature, which strips CRC from the received frames by hardware. Probably because the definitions of this bit are missing, but most likely because the HAL developers do not read the documentation, the HAL code does not use this feature. Instead the HAL code subtracts the size of CRC manually. This is done in the HAL_ETH_ReadData() function for the newer rewritten drivers and HAL_ETH_GetReceivedFrame() and HAL_ETH_GetReceivedFrame_IT() for the older drivers. Of course, this is also true for F7, F4 and F2 series.
Hi,I am looking to use the STM32U575CIT6Q in a USB project. The documentation everywhere mentions VDDUSB but that pin does not appear to be present on the LQFP48 package. Is it just tied to VDD internally? The data sheet appears to show that OTG FS is available on all of the different packages, so I'm not sure how the transceivers are powered.If the VDDUSB is internally tied to VDD then does this imply that VDD >= 3V?Thanks,TG
Hi, Why the task keep running and remain of infinite loop, and do not enter another function ?
I am using 9600 baud rate and even parity .Address bytes sent with checksum is 08 00 00 00 08 ACK Received
Hi,I'm having a STM32G474 with Bootloader block (0x0800 0000 - 0x0800 4FFF) and Application block (0x0800 5000 - 0x0807 FFFF).I need to update Bootloader from Application, by copying a new bootloader located on higher memory. Is it possible ?I'm using the same code of the bootloader to erase the pages 0 to 4 but no success. I can't even write on the bootloader block.So is it possible to erase the bootloader from the running application ?Thanks
Hi, I have to develope a system where an stm32 connected via ethernet handles files stored in a sdcard through an FTP connection from a PC.I know there is a sample from ST exactly about this but I can't get it to work on my nucleo H723 board, it seems that somehow the generated files from cubemx are totally scrambled, different content and placed in different locations.Infact if I try to setup a project using cubemx as found in an online blog the project is generated but I cannot find ethernetif.c under src folder for example...Could you please help me and show me the right directions?thanks
..
Hi,I am trying to activate the USB Audio as a microphone profile.This feature already implemented for STM32L4 family, and it works correctly.I am trying to run the same USB stack on EVB B-U585I-IOT02A board, I see that the device is detected as USB microphone, but the dataIn() callback is not called. When I am checking HAL_PCD_IRQHandler it is not called any more after the initialization process.I understand there are some differences in the USB module between the L4 to U5 family, but still I don’t the get reason why dataIn() is not called.I will appreciate your assistance on that issue.Avi
Hello Everyone,i am desperadely looking for help/guide on how to transfer data from a Windows PC to a controller using tcp / udp (via ethernet connection) and how to use the transferred data as an signed integer for some operations (for example setting some Output oft he controller). The transferred Data from the PC is only an intiger which ranges from -50 to 250. It doesnt matter if the controller has a fixed ip-adress or not. I have read some documents and guides regarding lwip and using webservers for the data transfer, but this isn’t what i am looking for.Excample: 1. Connecting the controller with a PC via Ethernet2. typing for example „50“ in the PC -> sending data to the controller3. Using this Information for some operations. I have a Nucleo-H753ZI Board. On how to configure my board for this process i found the followed link. Is this the right way for me?https://community.st.com/s/ar
Hi,I am using STM32H745BIT6 controller and wish to use the external flash memory as a mass storage device. The external flash memory is connected on QSPI.The application would be, user will connect the USB cable to PC and PC should be able to show the external QSPI flash as a drive on PC i.e. as a mass storage device. Is this possible with STM32H745BIT6 device?. Please point me to some examples which can be refered.ThanksAnuj.
Hello,I'm interfacing the KTD2026 RGB sensor.Writing to the device's registers works with normal HAL I2C functions.The problem i'm facing is reading the device's registers which from datasheet should be done the following way:I have tried both HAL_I2C_Master_Receive and HAL_I2C_Mem_Read but none of them produces this kind of I2C flow.HAL_I2C_Master_Receive does not provide any register address to read from and HAL_I2C_Mem_Read do a write operationen followed by a repeated start with a read which not works.Do i really need to make my own I2C driver for reading this device?
I'm attempting to enable the SRAM2 parity bits on an STM32L552, and any time I call HAL_FLASH_OB_Launch, the chip hangs. I've also tried directly setting the OBL_LAUNCH bit in the NCSR register with the same results.I've looked through some of the L5 examples, but none of them show a different order of operations than what I'm doing:HAL_FLASH_Unlock(); HAL_FLASH_OB_Unlock(); FLASH->OPTR &= ~((1 << 24) | (1 << 25)); HAL_FLASH_OB_Launch(); HAL_FLASH_OB_Lock(); HAL_FLASH_Lock();Is there something I'm missing?
why you have enabled crc for mp3 player in your examples ?What is its purpose?uint32_t Mp3Process_DecoderInit(uint8_t* pHeader, fnReadCallback_TypeDef* pReadCallback, fnSetPositionCallback_TypeDef* pSetPosCallback) { __IO uint16_t time_out = 1153; uint8_t tmpBuffer[10]; uint8_t nb_frame = 0; uint32_t i; /* Enable the CRC */ #ifdef STM32F10X_CL RCC_AHBPeriphClockCmd( RCC_AHBPeriph_CRC, ENABLE); #else RCC->AHB1ENR |= RCC_AHB1ENR_CRCEN; #endif /* STM32F10X_CL */
I am using an STM32H753I-EVAL2 and the STM32CubeIDE. I am able to set up the RTC and print out its counting time. I do it on a FreeRTOS thread. I have JP11 configured such that VBAT is connected to the battery. I set my RTC_TimeTypeDef globally:RTC_TimeTypeDef sTime = {0};My task made with FreeRTOS to always get the time and print it:void StartDefaultTask(void *argument) { for(;;) { HAL_RTC_GetTime(&hrtc, &sTime, RTC_FORMAT_BIN); uint16_t milliSec = 1000 - (sTime.SubSeconds * 1000) / sTime.SecondFraction; printf("-> Time Value: %.2d:%.2d:%.2d:%.3d\r\n", sTime.Hours, sTime.Minutes, sTime.Seconds, milliSec); } }When I have JP11 configured such that VBAT is connected to +3.3 V, and I unplug the primary power source and replug it back in, the time resets to 00:00:00:000. Yet when VBAT is connected to the coin battery, the time resumes from the time when it was unplugged.I want it to continue counting while the battery powers it. What do I need to change?Thank you,Jared
JW
/* Check if software trigger enabled */ if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_CR_TEN1)I think the if check is wrong - we should check if TEN and TSEL are set, but now we check for TSEL=111 and TEN=0
Hello.I developed UART by DMA method and it works normally, but I am posting because I have one question.In the case of the sites I found, most of the main function or initial HAL_UART_Receive_DMA function was called, and the HAL_UART_RxCpltCallback function also called HAL_UART_Receive_DMA. So I also wrote the same.I thought the reason for doing so was to make the DMA controller listen again. So I thought that the HAL_UART_RxCpltCallback function also calls the HAL_UART_Receive_DMA function.However, UART works normally without calling HAL_UART_Receive_DMA in HAL_UART_RxCpltCallback. Can you tell me why?The environment is:- STM32F407VE MCU- FreeRTOSThe referenced implementation is: Thank you
Heyho,I am really a little confused by ST's documentation vs. comments here and elsewhere, so in hope of finding someone with first hand experience:Which STM32H7 can use external memory-mapped Octo-/Quad-SPI RAM via DMA with the Ethernet and SAIs ?My "candidates": H723, H725, H733, H735H743 & friends has no Q/O-SPI SRAM interface, and if possible I want to avoid the 2-core H7s.I need this data flow:SAI (RX) -> DMA -> ext. Q/O-SPI-SRAM -> DMA -> ETHThanks in advance!
Setup:Windows 10STM32Cube_FW_F4_V1.27.1 - latestCubeIDE V1.11.0 - latestAzure RTOS - F4 - V1.1.0 - latestUSBX V6.1.10 - latestSTM32F469I-Discovery MB1189 - B03Ux_Host_HID_CDC_ACM - Example from repository - latestI want to connect an STM32F469I-Discovery board as USB host to different CDC_ACM devices equipped with the popular FT232 / CP210x / CH340 USB to serial bridge chips.None of these chips will be recognised by the USBX host in the example project.Strange enough, a Raspberry Pi-Pico board works well including data transfer in the same setup. Arduino Mega 2560 too - kind of.I'm aware that these chips might have some non standard descriptors.Any idea how to get this working?Thanks and regards
Stm32 usb host printer classIncluding main.c file and usb host printer class
Is anyone doing this (CI) ? any suggestions/ideas are welcomed.What i found so far:github's actions info page GitHub provides Linux, Windows, and macOS virtual machines to run your workflows, or you can host your own self-hosted runners in your own data center or cloud infrastructure. How to compile using makefiles@Community member here Same topic but different objective.In-house localy hosted runners, great to connect to test rigs, adding a localhosted runner to a repo.reddit post, they are having an interesting discussion about setting up the github's Docker-Created remote environmetQuoting wrhnks "The purpose of the continuous delivery is to update your production environment with the latest release. Regarding embedded systems this step is really hard because you need to at least have some way to deliver this new binary to your devices, and handle possible issues that may arise."What I have done in the past is to have a shell script that grabs all the dependencies
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.